From f1990b40def783397245995150a9d3c110dc2aab Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Mon, 30 Jul 2007 15:55:28 -0700 Subject: [PATCH] ARM: OMAP: 2430SDP: turn off secondary LCD backlight on boot There is not yet any driver for the secondary LCD, so turn off the backlight on boot. Signed-off-by: Kevin Hilman Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/board-2430sdp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index 047a4e6a656..9e6592c3b66 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c @@ -52,6 +52,7 @@ #define TS_GPIO 24 #define TWL4030_MSECURE_GPIO 118 +#define SECONDARY_LCD_GPIO 147 static struct mtd_partition sdp2430_partitions[] = { /* bootloader (U-Boot, etc) in first sector */ @@ -441,6 +442,10 @@ static void __init omap_2430sdp_init(void) spi_register_board_info(sdp2430_spi_board_info, ARRAY_SIZE(sdp2430_spi_board_info)); ads7846_dev_init(); + + /* turn off secondary LCD backlight */ + omap_set_gpio_direction(SECONDARY_LCD_GPIO, 0); + omap_set_gpio_dataout(SECONDARY_LCD_GPIO, 0); } static void __init omap_2430sdp_map_io(void) -- 2.41.1