Skip to contentSkip to conversation

ARM: OMAP: 2430SDP: turn off secondary LCD backlight on boot

PATCH In review Kevin Hilman 2 participants 2 messages Jul 30, 2007 – Aug 10, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/arm/mach-omap2/board-2430sdp.c |    5 +++++
 1 file changed, 5 insertions(+)
arch/arm/mach-omap2/board-2430sdp.c +5 -0
Index: linux-2.6.21/arch/arm/mach-omap2/board-2430sdp.c
===================================================================
@@ -55,6 +55,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 */
@@ -466,6 +467,10 @@ static void __init omap_2430sdp_init(voi
 	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)

--

maintainer
#1 lore raw
Quoted 21 lines · Kevin Hilman

There is not yet any driver for the secondary LCD, so turn off the backlight on boot.

---
 arch/arm/mach-omap2/board-2430sdp.c |    5 +++++
 1 file changed, 5 insertions(+)

Index: linux-2.6.21/arch/arm/mach-omap2/board-2430sdp.c
===================================================================

arch/arm/mach-omap2/board-2430sdp.c +1 -0
@@ -55,6 +55,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 */

arch/arm/mach-omap2/board-2430sdp.c static void __init omap_2430sdp_init(voi · line 476

Quoted 10 lines
arch/arm/mach-omap2/board-2430sdp.c +4 -0
@@ -466,6 +467,10 @@ static void __init omap_2430sdp_init(voi
 	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)

Pushing today.

Tony