ENGR00120880-2 MX25: Disable/Enable HSYNC bit per LCD power status

Disable/Enable HSYNC bit per LCD power status

Signed-off-by: Sammy He <r62914@freescale.com>
This commit is contained in:
Sammy He
2010-02-09 13:35:19 +08:00
committed by Matt Sealey
parent 01cd0bc688
commit 975ada7e30
2 changed files with 9 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2008-2009 Freescale Semiconductor, Inc. All Rights Reserved.
* Copyright 2008-2010 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
@@ -168,6 +168,7 @@ extern void gpio_can_inactive(int id);
extern struct flexcan_platform_data flexcan_data[];
extern void mx2fb_set_brightness(uint8_t);
extern int __init mx25_3stack_init_mc34704(void);
extern void imx_adc_set_hsync(int on);
#endif /* CONFIG_MACH_MX25_3DS */
#endif /* __ASM_ARCH_MXC_BOARD_MX25_3STACK_H__ */

View File

@@ -209,10 +209,15 @@ static struct platform_device mxc_fb_device = {
*/
void board_power_lcd(int on)
{
if (on)
if (on) {
/* Enable HSYNC bit of touch screen */
imx_adc_set_hsync(1);
mx2fb_set_brightness(MXC_DEFAULT_INTENSITY);
else
} else {
/* disable HSYNC bit of touchscreen */
imx_adc_set_hsync(0);
mx2fb_set_brightness(MXC_INTENSITY_OFF);
}
}
EXPORT_SYMBOL_GPL(board_power_lcd);