# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

menu "Graphic devices support"
depends on ADK_TARGET_WITH_VGA \
	|| ADK_TARGET_QEMU \
	|| ADK_TARGET_VBOX \
	|| ADK_TARGET_GENERIC

config ADK_KERNEL_VT
	bool
	default y if ADK_TARGET_WITH_VGA
	default n

config ADK_KERNEL_VT_CONSOLE
	bool
	default y if ADK_TARGET_WITH_VGA
	default n

config ADK_KERNEL_VGA_CONSOLE
	bool
	default y if ADK_TARGET_WITH_VGA
	default n

config ADK_KERNEL_FONTS
	bool

config ADK_KERNEL_FONT_8x16
	bool
	select ADK_KERNEL_FONTS

config ADK_KERNEL_FB
	bool
	select ADK_KERNEL_VT
	select ADK_KERNEL_VT_CONSOLE

config ADK_KERNEL_FB_SBUS
	bool

config ADK_KERNEL_DUMMY_CONSOLE
	bool
 
config ADK_KERNEL_FRAMEBUFFER_CONSOLE
	bool
	default y if ADK_TARGET_SYSTEM_ARANYM_M68K
	default n

config ADK_KERNEL_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY
	bool

config ADK_KERNEL_FRAMEBUFFER_CONSOLE_ROTATION
	bool

config ADK_KERNEL_VIDEO_CODA
	bool
	select ADK_KERNEL_MEDIA_SUPPORT

config ADK_KERNEL_FB_MXC
 	bool

config ADK_KERNEL_FB_MXC_LDB
 	bool

config ADK_KERNEL_FB_MXC_SYNC_PANEL
	bool

config ADK_KERNEL_FB_MXC_HDMI
 	bool

config ADK_KERNEL_FB_MXC_EDID
 	bool

config ADK_KERNEL_MXC_IPU
 	bool

config ADK_KERNEL_MXC_IPU_V3
 	bool

config ADK_KERNEL_MXC_VPU
 	bool

config ADK_KERNEL_MXC_GPU_VIV
 	bool

config ADK_KERNEL_MXC_GPU_VIV_V4
 	bool

config ADK_KERNEL_MXC_ASRC
 	bool

config ADK_KERNEL_MXC_HDMI_CEC
 	bool

config ADK_KERNEL_MXC_MIPI_CSI2
 	bool

config ADK_KERNEL_MXC_MLB
 	bool

config ADK_KERNEL_MXC_MLB150
 	bool
	select ADK_KERNEL_SND
	select ADK_KERNEL_SND_PCM

config ADK_KERNEL_V4L_MEM2MEM_DRIVERS
	bool

config ADK_KERNEL_IMX_IPUV3_CORE
	bool

config ADK_KERNEL_DRM_PANEL_SIMPLE
	bool

config ADK_KERNEL_DRM_IMX
	bool

config ADK_KERNEL_DRM_IMX_PARALLEL_DISPLAY
	bool

config ADK_KERNEL_DRM_IMX_TVE
	bool

config ADK_KERNEL_DRM_IMX_LDB
	bool

config ADK_KERNEL_DRM_IMX_HDMI
	bool

config ADK_KERNEL_FB_MXS
	bool

config ADK_KERNEL_MFD_SM501
	bool

config ADK_KERNEL_FB_ATARI
	bool
	select ADK_KERNEL_FB
	default y if ADK_TARGET_SYSTEM_ARANYM_M68K
	default n

config ADK_KERNEL_FB_ARMCLCD
	bool

config ADK_KERNEL_PLAT_VERSATILE_CLCD
	bool
	select ADK_KERNEL_FB_ARMCLCD

config ADK_KERNEL_FB_CIRRUS
	bool

config ADK_KERNEL_FB_GEODE
	bool

config ADK_KERNEL_FB_SM501
	bool
	select ADK_KERNEL_MFD_SM501

config ADK_KERNEL_DRM
	bool

config ADK_KERNEL_DRM_VC4
	bool

config ADK_KERNEL_DRM_I915
	bool

config ADK_KERNEL_DRM_KMS_HELPER
	bool

config ADK_KERNEL_DRM_FBDEV_EMULATION
	bool

config ADK_KERNEL_INTEL_GTT
	bool

config ADK_KERNEL_AGP
	bool

config ADK_KERNEL_AGP_INTEL
	bool

config ADK_KERNEL_LOGO
	bool
 
config ADK_KERNEL_LOGO_LINUX_CLUT224
	bool "Enable Linux penguin boot logo"
	select ADK_KERNEL_LOGO

config ADK_KERNEL_FB_CON_DECOR
	bool "Enable fullscreen boot logo"
	select ADK_PACKAGE_FBSPLASH
	depends on ADK_TARGET_KERNEL_VERSION_3_18 || \
		   ADK_TARGET_KERNEL_VERSION_3_14

config ADK_KERNEL_FB_SIMPLE
	bool "Simple Framebuffer"
	select ADK_KERNEL_FB
	select ADK_KERNEL_FRAMEBUFFER_CONSOLE
	default y if ADK_TARGET_SYSTEM_BANANA_PRO
	default n
	help
	  Simple Framebuffer driver.

config ADK_KERNEL_FB_VESA
	bool "Framebuffer support for VESA"
	select ADK_KERNEL_FB
	select ADK_KERNEL_FRAMEBUFFER_CONSOLE
	default y if ADK_TARGET_VBOX
	default y if ADK_TARGET_SYSTEM_ASUS_P5BVM
 	default n
 	help
	  Generic VESA Framebuffer support.

config ADK_KERNEL_DRM_ETNAVIV
	bool "DRM support for Vivante chips (Cubox-i/Hummingboard)"
	select ADK_KERNEL_DRM
	select ADK_KERNEL_FB
	select ADK_KERNEL_IMX_IPUV3_CORE
	select ADK_KERNEL_DRM_IMX
	select ADK_KERNEL_DRM_IMX_PARALLEL_DISPLAY
	select ADK_KERNEL_DRM_IMX_TVE
	select ADK_KERNEL_DRM_IMX_LDB
	select ADK_KERNEL_DRM_IMX_HDMI
	select ADK_KERNEL_DRM_PANEL_SIMPLE
	select ADK_KERNEL_FB_MXS
	select ADK_KERNEL_MEDIA_CAMERA_SUPPORT
	select ADK_KERNEL_V4L_MEM2MEM_DRIVERS
	select ADK_KERNEL_VIDEO_CODA
	select ADK_KERNEL_FRAMEBUFFER_CONSOLE
	select ADK_KERNEL_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY
	depends on ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
	default y if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
 	default n
 	help
	  Framebuffer support for Cubox-i/Hummingboard (Vivante)
	
config ADK_KERNEL_FB_PXA
	bool "Framebuffer support for PXA boards (Sharp Zaurus)"
	select ADK_KERNEL_FB
	select ADK_KERNEL_DUMMY_CONSOLE
	select ADK_KERNEL_FRAMEBUFFER_CONSOLE
	select ADK_KERNEL_FRAMEBUFFER_CONSOLE_ROTATION
	depends on ADK_TARGET_SYSTEM_SHARP_ZAURUS \
		|| ADK_TARGET_SYSTEM_QEMU_ARM_TERRIER \
		|| ADK_TARGET_SYSTEM_QEMU_ARM_SPITZ
	default y if ADK_TARGET_SYSTEM_SHARP_ZAURUS
	default y if ADK_TARGET_SYSTEM_QEMU_ARM_TERRIER
	default y if ADK_TARGET_SYSTEM_QEMU_ARM_SPITZ
 	default n
 	help
	  Framebuffer support for Sharp Zaurus CL Series.

config ADK_KERNEL_FB_GEODE_LX
	bool "Framebuffer support for GEODE LX (PC Engines Alix1c)"
	select ADK_KERNEL_FB
	select ADK_KERNEL_FRAMEBUFFER_CONSOLE
	select ADK_KERNEL_FB_GEODE
	depends on ADK_TARGET_MODEL_PCENGINES_ALIX1C
	default y if ADK_TARGET_MODEL_PCENGINES_ALIX1C
 	default n
 	help
	  Framebuffer support for ALIX boards with VGA.

config ADK_KERNEL_FB_SM712
	bool "Framebuffer support for Silicon Motion 7xx (Lemote Yeelong)"
	select ADK_KERNEL_FB
	select ADK_KERNEL_FRAMEBUFFER_CONSOLE
	select ADK_KERNEL_FONT_8x16
	default y if ADK_TARGET_SYSTEM_LEMOTE_YEELONG
 	default n
	depends on ADK_TARGET_SYSTEM_LEMOTE_YEELONG
 	help
	  Framebuffer support for Lemote Yeelong.

config ADK_KERNEL_FB_BCM2708
	bool "Framebuffer support for BCM28XX boards (Raspberry PI)"
	select ADK_KERNEL_FB
	select ADK_KERNEL_FRAMEBUFFER_CONSOLE
	select ADK_KERNEL_FONT_8x16
	default y if ADK_TARGET_BOARD_BCM28XX
 	default n
	depends on ADK_TARGET_BOARD_BCM28XX
 	help
	  Framebuffer support for BCM28XX boards.

config ADK_KERNEL_FB_CGSIX
	bool "Framebuffer support for CGSIX cards (Sun Voyager)"
	select ADK_KERNEL_FB
	select ADK_KERNEL_FB_SBUS
	default y if ADK_TARGET_SYSTEM_SUN_VOYAGER
	default n
	depends on ADK_TARGET_SYSTEM_SUN_VOYAGER
	help
	  Framebuffer support for Sun Voyager.

config ADK_KERNEL_FB_RADEON
	bool "Framebuffer support for RADEON chips"
	select ADK_KERNEL_FB
	select ADK_KERNEL_FRAMEBUFFER_CONSOLE
	select ADK_KERNEL_FONT_8x16
 	help
	  Framebuffer support for RADEON chips.

config ADK_KERNEL_DRM_I915
	bool "Support for Intel graphic cards"
	select ADK_KERNEL_FB
	select ADK_KERNEL_DRM
	select ADK_KERNEL_INTEL_GTT
	select ADK_KERNEL_FRAMEBUFFER_CONSOLE
	select ADK_KERNEL_DRM_KMS_HELPER
	select ADK_KERNEL_DRM_FBDEV_EMULATION
	default y if ADK_TARGET_SYSTEM_IBM_X40
	default n
	help
          Support for Intel chipsets.

config ADK_KERNEL_DRM_BOCHS
	bool "Support for QEMU STD VGA emulation"
	select ADK_KERNEL_DRM
	select ADK_KERNEL_FRAMEBUFFER_CONSOLE
	depends on ADK_TARGET_SYSTEM_QEMU_X86 || ADK_TARGET_SYSTEM_QEMU_X86_64
	help
	  Support for Qemu STD VGA emulation.

config ADK_KERNEL_DRM_CIRRUS_QEMU
	bool "Support for QEMU cirrus VGA emulation"
	select ADK_KERNEL_DRM
	select ADK_KERNEL_FRAMEBUFFER_CONSOLE
	depends on ADK_TARGET_SYSTEM_QEMU_X86 || ADK_TARGET_SYSTEM_QEMU_X86_64
	help
	  Support for Qemu cirrus VGA emulation.

config ADK_KERNEL_DRM_RADEON
	bool "Support for Radeon graphic cards"
	select ADK_KERNEL_DRM
	select ADK_KERNEL_FB_CFB_FILLRECT
	select ADK_KERNEL_FB_CFB_COPYAREA
	select ADK_KERNEL_FB_CFB_IMAGEBLIT
	select ADK_KERNEL_FW_LOADER
	select ADK_KERNEL_DRM_KMS_HELPER
	select ADK_KERNEL_DRM_KMS_FB_HELPER
	select ADK_KERNEL_DRM_TTM
	help
	  Support for Radeon chips.
	
endmenu
