summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorLiu Ying <Ying.Liu@freescale.com>2012-08-14 18:36:38 +0800
committerLiu Ying <Ying.liu@freescale.com>2012-08-16 09:15:34 +0800
commit692b4ca63b17df45af386b89ad6a31cf11fc17cb (patch)
treeb36bfec806ecf272f68dd0cc711be24827e6bb6b /arch
parent6198efbd51dd326018d7c0bd2a92cdd6d45d5f30 (diff)
ENGR00219872-2 MX6Q SabreSD:Disable LVDS CABC function
This patch sets CABC_EN0/1 to low to disable LVDS panel CABC function so that LVDS backlight will not be turned by the LVDS panel automatically so that we may avoid annoying unstable backlight issue. Signed-off-by: Rong Dian <b38775@freescale.com> Signed-off-by: Liu Ying <Ying.Liu@freescale.com> (cherry picked from commit a169940fb39216e644018304e3a3bdaca61ea88a)
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx6/board-mx6q_sabresd.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-mx6/board-mx6q_sabresd.c b/arch/arm/mach-mx6/board-mx6q_sabresd.c
index 429cffc6806a..b6b3be93196d 100644
--- a/arch/arm/mach-mx6/board-mx6q_sabresd.c
+++ b/arch/arm/mach-mx6/board-mx6q_sabresd.c
@@ -1779,6 +1779,17 @@ static void __init mx6_sabresd_board_init(void)
imx_asrc_data.asrc_audio_clk = clk_get(NULL, "asrc_serial_clk");
imx6q_add_asrc(&imx_asrc_data);
+ /*
+ * Disable HannStar touch panel CABC function,
+ * this function turns the panel's backlight automatically
+ * according to the content shown on the panel which
+ * may cause annoying unstable backlight issue.
+ */
+ gpio_request(SABRESD_CABC_EN0, "cabc-en0");
+ gpio_direction_output(SABRESD_CABC_EN0, 0);
+ gpio_request(SABRESD_CABC_EN1, "cabc-en1");
+ gpio_direction_output(SABRESD_CABC_EN1, 0);
+
imx6q_add_mxc_pwm(0);
imx6q_add_mxc_pwm(1);
imx6q_add_mxc_pwm(2);