#
# Video configuration for sunxi platform
#

menu "Video support for sunxi"
	depends on FB

config FB_CONSOLE_SUNXI
	bool "Framebuffer Console Support(sunxi)"
	select FB_CFB_FILLRECT
	select FB_CFB_COPYAREA
	select FB_CFB_IMAGEBLIT
	default n
	---help---
	  Frame buffer driver for sunxi based boards.

config DISP2_SUNXI
	tristate "DISP Driver Support(sunxi-disp2)"
	depends on (ARCH_SUNXI)
	default n
	select DMA_SHARED_BUFFER
	---help---
	  Display driver for sunxi based boards.

config DISP2_SUNXI_ION
	bool "DISP Driver ION Support"
	depends on (DISP2_SUNXI)
	depends on ION
	default n
	---help---
	  Enable DISP driver ION support.

choice
    prompt "DISP2 Framebuffer rotation support"
	default SUNXI_DISP2_FB_DISABLE_ROTATE

config SUNXI_DISP2_FB_DISABLE_ROTATE
	bool "Disable rotation"
	depends on (DISP2_SUNXI)
	---help---
	  Do not use framebuffer rotation

config SUNXI_DISP2_FB_ROTATION_SUPPORT
	bool "Software rotation support"
	depends on (DISP2_SUNXI)
	---help---
	  Framebuffer software rotation on the top of disp2.

config SUNXI_DISP2_FB_HW_ROTATION_SUPPORT
	bool "Hardware(G2D) rotation support"
	depends on (DISP2_SUNXI && SUNXI_G2D)
	---help---
	  Framebuffer hardware(G2D) rotation on the top of disp2.

endchoice

config SUNXI_DISP2_FB_DECOMPRESS_LZMA
	bool "Framebuffer show bootlogo from lzma file"
	depends on (DISP2_SUNXI)
	default n
	select DECOMPRESS_LZMA
	---help---
	  Show bootlogo from lzma file.

config HDMI_DISP2_SUNXI
	tristate "HDMI Driver Support(sunxi-disp2)"
	depends on (DISP2_SUNXI)
	depends on DISP2_SUNXI_SUPPORT_HDMI
	default n
	---help---
	  Hdmi driver for sunxi based boards.

menuconfig HDMI2_DISP2_SUNXI
  tristate "HDMI2.0 Driver Support(sunxi-disp2)"
  depends on (DISP2_SUNXI)
  depends on DISP2_SUNXI_SUPPORT_HDMI
  default n
  ---help---
  Say Y here if you want to have support for HDMI2.0 controller
  on the sunxi based boards. The HDMI2.0 controller include edid,
  hdcp1.4,hdcp2.2,cec feature and is compatible with hdmi1.4,support
  HDR,4k@60Hz. If unsure, say N.

choice
	prompt "HDMI2.0 PHY SELECT."
config AW_PHY
	bool "Allwinner PHY"
	depends on HDMI2_DISP2_SUNXI
	help
	Use sunxi self phy to show
config DEFAULT_PHY
	bool "Synopsys PHY"
	depends on HDMI2_DISP2_SUNXI
	help
	Use original phy to show
endchoice

config HDMI_EP952_DISP2_SUNXI
	tristate "HDMI EP952 Driver Support(sunxi-disp2)"
	depends on (DISP2_SUNXI)
	depends on DISP2_SUNXI_SUPPORT_HDMI
	default n
	---help---
	  Hdmi ep952 driver for sunxi based boards.

menuconfig HDMI2_HDCP_SUNXI
  bool "HDMI2.0 HDCP"
  depends on (HDMI2_DISP2_SUNXI)
  default n
  ---help---
  Say Y here if you want to handle the cec message by User Space.
  Say N here if you want to handle the cec message by Kernel.
  If unsure, say N.

config HDMI2_HDCP22_SUNXI
  bool "HDMI2.0 HDCP2.2"
  depends on (HDMI2_HDCP_SUNXI && HDMI2_DISP2_SUNXI)
  default n
  ---help---
  Say Y here if you want to handle the cec message by User Space.
  Say N here if you want to handle the cec message by Kernel.
  If unsure, say N.

menuconfig HDMI2_CEC_SUNXI
  bool "HDMI2.0 CEC"
  depends on (HDMI2_DISP2_SUNXI)
  default n
  ---help---
  Say Y here if you want to handle the cec message by User Space.
  Say N here if you want to handle the cec message by Kernel.
  If unsure, say N.

config HDMI2_CEC_USER
  tristate "HDMI2.0 CEC handled by user space"
  depends on (HDMI2_CEC_SUNXI && HDMI2_DISP2_SUNXI)
  default n
  ---help---
  Say Y here if you want to handle the cec message by User Space.
  Say N here if you want to handle the cec message by Kernel.
  If unsure, say N.

config HDMI2_FREQ_SPREAD_SPECTRUM
  bool "new frequency spread spectrum(hershey) of sunxi"
  depends on HDMI2_DISP2_SUNXI
  default n
  ---help---
  Say Y here if you want to use new frequency spread spectrum(hershey) of sunxi.
  Say N here if you do NOT want to new frequency spread spectrum of sunxi.
  If unsure, say N

config TV_DISP2_SUNXI
	 tristate "TV Driver Support(sunxi-disp2)"
	 depends on (DISP2_SUNXI)
	 depends on DISP2_SUNXI_SUPPORT_TV
	 default n
	 ---help---
	  TV driver for sunxi based boards.
config VDPO_DISP2_SUNXI
	 tristate "VDPO Driver Support(sunxi-disp2)"
	 depends on (DISP2_SUNXI)
	 default n
	 ---help---
	  VDPO driver for sunxi based boards.
config DISP2_TV_GM7121
	tristate "GM7121 TV module Support(sunxi-disp2)"
 	depends on (DISP2_SUNXI && TV_DISP2_SUNXI)
	default n
	---help---
	  TV GM7121 support for Allwinner platforms.

config EDP_DISP2_SUNXI
	tristate "EDP Driver Support(sunxi-disp2)"
	depends on (DISP2_SUNXI)
	depends on DISP2_SUNXI_SUPPORT_EDP
	default n
	---help---
      EDP 1.2 driver for sunxi. Embedded Display Port is
      a high speed display interface for embedded device.
      DisplayPort can be used to transmit audio and video
      simultaneously, but each one is optional and can be
      transmitted without the other.

config DISP2_TV_AC200
	tristate "AC200 TV module Support(sunxi-disp2)"
	depends on (DISP2_SUNXI && MFD_ACX00)
	depends on DISP2_SUNXI_SUPPORT_TV
	default n
	---help---
	  TV AC200 support for Allwinner platforms.

config EINK_PANEL_USED
	bool "Eink panel used"
	depends on (DISP2_SUNXI && (ARCH_SUN8IW10 || ARCH_SUN8IW15))
	default n
	---help---
	  EINK panel support for Allwinner platforms.

config EINK200_SUNXI
	tristate "Eink Driver Version 2.0 Support"
	depends on (DISP2_SUNXI && ARCH_SUN50IW10)
	default n
	---help---
	  EINK200 support for Allwinner platforms.

config DISP2_SUNXI_BOOT_COLORBAR
	bool "boot colorbar Support for disp driver(sunxi-disp2)"
	depends on DISP2_SUNXI
	default n
	---help---
	  If true, the framebuffer will be filled by specified data
	  to display vertical colorbar.

config DISP2_SUNXI_DEBUG
	bool "debugfs support for disp driver(sunxi-disp2)"
	depends on DISP2_SUNXI
	default n
	---help---
	  This enable debugfs support for display driver. You can
	  get debug info or debug the driver via debugfs interface.

config DISP2_SUNXI_COMPOSER
	bool "composer support for disp driver(sunxi-disp2)"
	depends on DISP2_SUNXI
	select SYNC_FILE
	default n
	---help---
	  This enable composer support for display driver. The composer
	  will serve hwc only.
config DISP2_LCD_ESD_DETECT
	bool "ESD detect support for LCD panel"
	depends on DISP2_SUNXI
	default n
	---help---
	  This enable lcd  esd detect and panel reset for display driver. User must
	  define panel_reset and esd_check function.

config LCD_FB
	tristate "Framebuffer implementaion without display hardware of AW"
	depends on (ARCH_SUNXI)
	select FB_CFB_FILLRECT
	select FB_CFB_COPYAREA
	select FB_CFB_IMAGEBLIT
	select BACKLIGHT_CLASS_DEVICE
	default n
	---help---
	  Framebuffer implementaion for LCD panel without DE and tcon

config LCD_FB_ENABLE_DEFERRED_IO
	bool "Enable LCD_FB FB_DEFERRED_IO"
	select FB_DEFERRED_IO
	default n
	---help---
	  Enable linux framebuffer FB_DEFERRED_IO for LCD_FB

menu "LCD panels select"
	depends on DISP2_SUNXI
	depends on DISP2_SUNXI_SUPPORT_LCD

source "drivers/video/fbdev/sunxi/disp2/disp/lcd/Kconfig"
endmenu

menu "LCD fb panels select"
	depends on LCD_FB

source "drivers/video/fbdev/sunxi/lcd_fb/panels/Kconfig"
endmenu

menu "Display engine feature select"
	depends on DISP2_SUNXI

source "drivers/video/fbdev/sunxi/disp2/disp/Kconfig"
endmenu

endmenu
