
config FB_MSM
	tristate "MSM Framebuffer support"
	depends on FB && ARCH_MSM
	select NEW_LEDS
	select LEDS_CLASS
	select FB_CFB_FILLRECT
	select FB_CFB_COPYAREA
	select FB_CFB_IMAGEBLIT
	---help---
	  Support for MSM Framebuffer.

if FB_MSM

config FB_MSM_BACKLIGHT
	bool "Support for backlight control"
	default y
	---help---
	  Say Y here if you want to control the backlight of your display.

config FB_MSM_LCDC_HW
	bool
	default n

config FB_MSM_TRIPLE_BUFFER
	bool "Support for triple frame buffer"
	default n

config FB_MSM_MDP_HW
	bool
	default n

choice
	prompt "MDP HW version"
	default FB_MSM_MDP22

config FB_MSM_MDP22
	select FB_MSM_MDP_HW
	bool "MDP HW ver2.2"
	---help---
	  Support for MSM MDP HW revision 2.2
	  Say Y here if this is msm7201 variant platform.

config FB_MSM_MDP30
	select FB_MSM_LCDC_HW
	bool "MDP HW ver3.0"
	---help---
	  Support for MSM MDP HW revision 3.0
	  Say Y here if this is msm7x25 variant platform.

config FB_MSM_MDP31
	select FB_MSM_LCDC_HW
	select FB_MSM_MDP_HW
	bool "MDP HW ver3.1"
	---help---
	  Support for MSM MDP HW revision 3.1
	  Say Y here if this is msm8x50 variant platform.

config FB_MSM_MDP40
	select FB_MSM_LCDC_HW
	select FB_MSM_MDP_HW
	bool "MDP HW ver4.0"
	---help---
	  Support for MSM MDP HW revision 4.0
	  Say Y here if this is msm7x30 variant platform.

config FB_MSM_MDP_NONE
	bool "MDP HW None"
	---help---
	  Say Y here if this is mdm platform.

endchoice

config FB_MSM_MDDI
	bool
	default n

config FB_MSM_MIPI_DSI
	bool
	default n

config FB_MSM_OVERLAY
	depends on FB_MSM_MDP40 && ANDROID_PMEM
	bool "MDP4 overlay support"
	default n

config FB_MSM_DTV
	depends on FB_MSM_OVERLAY
	bool
	default n

config FB_MSM_EXTMDDI
	bool
	default n

config FB_MSM_MDDI_AUTO_DETECT
	bool
	select FB_MSM_MDDI
	default n

config FB_MSM_LCDC_AUTO_DETECT
	bool
	default n

config FB_MSM_MIPI_DSI_LGIT
	bool
	select FB_MSM_MIPI_DSI
	default n

config FB_MSM_LCDC_ST15_PANEL
    depends on FB_MSM_LCDC_HW
    bool "LCDC ST1.5 Panel"
    ---help---
      Support for ST1.5 WXGA (1366x768) panel

config FB_MSM_LCDC_TRULY_HVGA_IPS3P2335_PT_PANEL
        depends on FB_MSM_LCDC_HW
        bool "LCDC Truly HVGA PT Panel"
        default n
        ---help---
        Support for LCDC Truly HVGA PT panel


config FB_MSM_MIPI_LGIT_VIDEO_WXGA_PT
	bool
	select FB_MSM_MIPI_DSI_LGIT
	default n

config FB_MSM_NO_MDP_PIPE_CTRL
	depends on FB_MSM_OVERLAY
	bool "Do not use mdp_pipe_ctrl"
	---help---
	  Saying 'Y' here obsoletes the mdp_pipe_ctrl function,
	  which was used to control mdp-related clocks. MDP4 vsync-driven
	  screen updates will use a different clock control mechanism if
	  this is selected.

config FB_MSM_OVERLAY0_WRITEBACK
	depends on FB_MSM_OVERLAY
        bool "MDP overlay0 write back mode enable"
	---help---
	  Support for MDP4 OVERLAY0 write back mode


config FB_MSM_OVERLAY1_WRITEBACK
        depends on FB_MSM_OVERLAY
        bool "MDP overlay1 write back mode enable"
        ---help---
          Support for MDP4 OVERLAY1 write back mode

config FB_MSM_WRITEBACK_MSM_PANEL
	depends on FB_MSM_OVERLAY
        bool "MDP overlay write back panel enable"
	---help---
	  Support for MDP4 OVERLAY write back mode
choice
	prompt "LCD Panel"
	default FB_MSM_MDDI_AUTO_DETECT

config FB_MSM_LCDC_PRISM_WVGA_PANEL
	depends on FB_MSM_LCDC_HW
	bool "LCDC Prism WVGA Panel"
	---help---
	  Support for LCDC Prism WVGA (800x480) panel

config FB_MSM_LCDC_SAMSUNG_WSVGA_PANEL
	depends on FB_MSM_LCDC_HW
	bool "LCDC Samsung WSVGA Panel"
	---help---
	  Support for LCDC Samsung WSVGA (1024x600) panel

config FB_MSM_LCDC_CHIMEI_WXGA_PANEL
	depends on FB_MSM_LCDC_HW
	bool "LCDC Chimei WXGA Panel"
	---help---
	  Support for LCDC Chimei WXGA (1366x768) panel

config FB_MSM_LCDC_GORDON_VGA_PANEL
	depends on FB_MSM_LCDC_HW
	bool "LCDC Gordon VGA Panel"
	---help---
	  Support for LCDC Gordon VGA (480x640) panel

config FB_MSM_LCDC_TOSHIBA_WVGA_PT_PANEL
	depends on FB_MSM_LCDC_HW
	bool "LCDC Toshiba WVGA PT Panel"
	---help---
	  Support for LCDC Toshiba WVGA PT (480x800) panel

config FB_MSM_LCDC_TOSHIBA_FWVGA_PT_PANEL
	depends on FB_MSM_LCDC_HW
	bool "LCDC Toshiba FWVGA PT Panel"
	---help---
	  Support for LCDC Toshiba FWVGA PT (480x864) panel. This
	  configuration has to be selected to support the Toshiba
	  FWVGA (480x864) portrait panel.

config FB_MSM_LCDC_SHARP_WVGA_PT_PANEL
	depends on FB_MSM_LCDC_HW
	bool "LCDC Sharp WVGA PT Panel"
	---help---
	  Support for LCDC Sharp WVGA PT (480x800) panel

config FB_MSM_LCDC_AUO_WVGA_PANEL
	depends on FB_MSM_LCDC_HW
	bool "LCDC AUO WVGA Panel"
	---help---
	  Support for LCDC AUO WVGA(480x800) panel

config FB_MSM_LCDC_NT35582_PANEL
	depends on FB_MSM_LCDC_HW
	bool "LCDC NT35582 WVGA Panel"
	---help---
	  Support for LCDC NT35582 WVGA(480x800) panel

config FB_MSM_LCDC_SAMSUNG_OLED_PT_PANEL
	depends on FB_MSM_LCDC_HW
	bool "LCDC Samsung OLED PT Panel"
	---help---
	  Support for LCDC Samsung OLED PT (480x800) panel

config FB_MSM_LVDS_CHIMEI_WXGA_PANEL
        bool "LVDS Chimei WXGA Panel"
        ---help---
          Support for LVDS Chimei WXGA(1366x768) panel

config FB_MSM_LVDS_FRC_FHD_PANEL
	bool "LVDS FRC FHD Panel"
	---help---
	  Support for LVDS Frc FHD(1920x1080) panel
	  FRC(Frame Rate Converter) uses LVDS as input
	  interface. It is treated as a HDMI panel with
	  1920x1080 resolution.

config FB_MSM_TRY_MDDI_CATCH_LCDC_PRISM
	depends on FB_MSM_LCDC_HW
	bool "MDDI Panel Auto Detect + LCDC Prism WVGA"
	select FB_MSM_MDDI_AUTO_DETECT
	---help---
	  Support for MDDI panel auto detect.
	  If it can't find any MDDI panel, it will load an LCDC panel.

config FB_MSM_MIPI_PANEL_DETECT
	bool "MIPI Panel Detect"
	---help---
	  Support for MIPI panel auto detect

config FB_MSM_MDDI_PANEL_AUTO_DETECT
	bool "MDDI Panel Auto Detect"
	select FB_MSM_MDDI_AUTO_DETECT
	---help---
	  Support for MDDI panel auto detect

config FB_MSM_LCDC_PANEL_AUTO_DETECT
	bool "LCDC Panel Auto Detect"
	select FB_MSM_LCDC_AUTO_DETECT
	---help---
	  Support for LCDC panel auto detect

config FB_MSM_LCDC_MIPI_PANEL_AUTO_DETECT
	bool "LCDC + MIPI Panel Auto Detect"
	select FB_MSM_LCDC_AUTO_DETECT
	select FM_MSM_MIPI_NT35516_CMD_QHD_PT
	select FM_MSM_MIPI_NT35590_CMD_720P_PT
	select FM_MSM_MIPI_NT35590_VIDEO_720P_PT
	---help---
	  Support for LCDC + MIPI panel auto detect

config FB_MSM_LVDS_MIPI_PANEL_DETECT
	bool "LVDS + MIPI Panel Auto Detect"
	---help---
	  Support for LVDS + MIPI panel auto detect

config FB_MSM_MDDI_TOSHIBA_VGA
	bool "MDDI Toshiba VGA Panel"
	---help---
	  Support for MDDI Toshiba VGA (480x640) and QCIF (176x220) panel

config FB_MSM_MIPI_LGIT_VIDEO_WXGA_PT_PANEL
	bool "MIPI LG Display WXGA PT Panel"
	select FB_MSM_MIPI_LGIT_VIDEO_WXGA_PT

config FB_MSM_MIPI_TOSHIBA_VIDEO_WVGA_PT_PANEL
	bool "MIPI Toshiba WVGA PT Panel"

config FB_MSM_MIPI_TOSHIBA_VIDEO_WSVGA_PT_PANEL
	bool "MIPI Toshiba WSVGA PT Panel"

config FB_MSM_MIPI_TOSHIBA_VIDEO_WUXGA_PANEL
	bool "MIPI Toshiba WUXGA (1920x1200) Panel"

config FB_MSM_MIPI_NOVATEK_VIDEO_QHD_PT_PANEL
	bool "MIPI NOVATEK VIDEO QHD PT Panel"

config FB_MSM_MIPI_NOVATEK_CMD_QHD_PT_PANEL
	bool "MIPI NOVATEK CMD QHD PT Panel"

config FB_MSM_MIPI_ORISE_VIDEO_720P_PT_PANEL
	bool "MIPI ORISE VIDEO 720P PT Panel"

config FB_MSM_MIPI_ORISE_CMD_720P_PT_PANEL
	bool "MIPI ORISE CMD 720P PT Panel"

config FB_MSM_MIPI_RENESAS_VIDEO_FWVGA_PT_PANEL
	bool "MIPI Renesas Video FWVGA PT Panel"

config FB_MSM_MIPI_RENESAS_CMD_FWVGA_PT_PANEL
	bool "MIPI Renesas Command FWVGA PT Panel"

config FB_MSM_MIPI_CHIMEI_WXGA_PANEL
	bool "MIPI Chimei WXGA PT Panel"

config FB_MSM_MIPI_CHIMEI_WUXGA_PANEL
	bool "MIPI Chimei WUXGA Panel"

config FB_MSM_MIPI_TRULY_VIDEO_WVGA_PT_PANEL
	bool "MIPI Truly Video WVGA PT Panel"

config FB_MSM_MIPI_NT35510_VIDEO_WVGA_PT_PANEL
	bool "MIPI NT35510 Video WVGA PT Panel"

config FB_MSM_MIPI_NT35510_CMD_WVGA_PT_PANEL
	bool "MIPI NT35510 Command WVGA PT Panel"

config FB_MSM_MIPI_NT35516_VIDEO_QHD_PT_PANEL
        bool "MIPI NT35516 Video qHD PT Panel"

config FB_MSM_MIPI_NT35516_CMD_QHD_PT_PANEL
        bool "MIPI NT35516 Command qHD PT Panel"

config FB_MSM_MIPI_NT35590_CMD_720P_PT_PANEL
        bool "MIPI NT35590 Command 720p PT Panel"
	---help---
	Support for Truly NT35590 panel. This
	panel supports MIPI DSI interface in
	Command mode. The panel resolution is
	720p (720x1280).

config FB_MSM_MIPI_NT35590_VIDEO_720P_PT_PANEL
        bool "MIPI NT35590 Video 720p PT Panel"
	---help---
	Support for Truly NT35590 panel. This
	panel supports MIPI DSI interface in
	Video mode. The panel resolution is
	720p (720x1280).

config FB_MSM_MIPI_SIMULATOR_VIDEO_PANEL
	bool "MIPI Simulator Video Panel"

config FB_MSM_HDMI_AS_PRIMARY
	depends on FB_MSM_HDMI_COMMON
	bool "Use HDMI as primary panel"
	---help---
	Support for using HDMI as primary

config FB_MSM_PANEL_NONE
	bool "NONE"
	---help---
	  This will disable LCD panel
endchoice

config LGIT_VIDEO_WXGA_CABC
	bool "Content Adaptive Backlight Control on LGIT WXGA Panel"
	default y
	depends on FB_MSM_MIPI_LGIT_VIDEO_WXGA_PT_PANEL
	help
	  Enable CABC(Content Apaptive Backlight Control) on LGIT Panel
	  to reduce power consumption

choice
	prompt "Secondary LCD Panel"
	depends on  FB_MSM_MDP31
	default FB_MSM_SECONDARY_PANEL_NONE

config FB_MSM_SECONDARY_PANEL_NONE
	bool "NONE"
	---help---
	  No secondary panel
endchoice

config FB_MSM_LCDC_DSUB
	depends on FB_MSM_LCDC_SAMSUNG_WSVGA && FB_MSM_MDP40 && FB_MSM_LCDC_HW
	bool "External DSUB support"
	default n
	---help---
	  Support for external DSUB (VGA) display up to 1440x900.  The DSUB
	  display shares the same video bus as the primary LCDC attached display.
	  Typically only one of the two displays can be used at one time.

config FB_MSM_HDMI_COMMON
	bool
	default n

config FB_MSM_HDMI_3D
	bool
	default n

config FB_MSM_HDMI_ADV7520_PANEL_HDCP_SUPPORT
        depends on FB_MSM_HDMI_ADV7520_PANEL
        bool "Use HDCP mode"
        default y
        ---help---
          Support for HDCP mode for ADV7520 HDMI 720p Panel
          Choose to enable HDCP


config FB_MSM_HDMI_MSM_PANEL_DVI_SUPPORT
	depends on FB_MSM_HDMI_MSM_PANEL
	bool "Use DVI mode"
	default n
	---help---
	  Support for DVI mode for MSM HDMI 1080p Panel

config FB_MSM_HDMI_MSM_PANEL_CEC_SUPPORT
	depends on FB_MSM_HDMI_MSM_PANEL
	bool "Enable CEC"
	default n
	---help---
	  Support for HDMI CEC Feature
	  Choose to enable CEC

config FB_MSM_HDMI_MHL_9244
	depends on FB_MSM_HDMI_MSM_PANEL
	bool 'SI_MHL 9244 support'
	default n
	---help---
	  Support the HDMI to MHL conversion.
	  MHL (Mobile High-Definition Link) technology
	  uses USB connector to output HDMI content

config FB_MSM_HDMI_MHL_8334
	depends on FB_MSM_HDMI_MSM_PANEL
	bool 'SI_MHL 8334 support '
	default n
	---help---
	  Support the HDMI to MHL conversion.
	  MHL (Mobile High-Definition Link) technology
	  uses USB connector to output HDMI content

choice
	depends on  (FB_MSM_MDP22 || FB_MSM_MDP31 || FB_MSM_MDP40)
	prompt "TVOut Region"
	default FB_MSM_TVOUT_NONE

config FB_MSM_TVOUT_NTSC_M
	bool "NTSC M"
	---help---
	  Support for NTSC M region (North American and Korea)

config FB_MSM_TVOUT_NTSC_J
	bool "NTSC J"
	---help---
	  Support for NTSC J region (Japan)

config FB_MSM_TVOUT_PAL_BDGHIN
	bool "PAL BDGHIN"
	---help---
	  Support for PAL BDGHIN region (Non-argentina PAL-N)

config FB_MSM_TVOUT_PAL_M
	bool "PAL M"
	---help---
	  Support for PAL M region

config FB_MSM_TVOUT_PAL_N
	bool "PAL N"
	---help---
	  Support for PAL N region (Argentina PAL-N)

config FB_MSM_TVOUT_NONE
	bool "NONE"
	---help---
	  This will disable TV Out functionality.
endchoice

config FB_MSM_TVOUT_SVIDEO
	bool "TVOut on S-video"
	depends on FB_MSM_TVOUT
	default n
	---help---
	  Selects whether the TVOut signal uses S-video.
	  Choose n for composite output.

choice
	depends on  FB_MSM_MDP22
	prompt "External MDDI"
	default FB_MSM_EXTMDDI_SVGA

config FB_MSM_EXTMDDI_NONE
	bool "NONE"
	---help---
	  This will disable External MDDI functionality.
endchoice

choice
	prompt "Default framebuffer color depth"
	depends on FB_MSM_MDP40 || FB_MSM_MDP31 || FB_MSM_MDP303
	default FB_MSM_DEFAULT_DEPTH_RGBA8888

config FB_MSM_DEFAULT_DEPTH_RGB565
	bool "16 bits per pixel (RGB565)"

config FB_MSM_DEFAULT_DEPTH_ARGB8888
	bool "32 bits per pixel (ARGB8888)"

config FB_MSM_DEFAULT_DEPTH_RGBA8888
	bool "32 bits per pixel (RGBA8888)"

endchoice

config FB_MSM_EBI2_PANEL_DETECT
	bool "EBI2 Panel Detect"
	default n
	---help---
	  Support for EBI2 panel auto detect

endif
