mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-11-16 17:01:59 +00:00
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:
@@ -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__ */
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user