diff mbox

OMAP3: RX51: support sleep indicator LEDs

Message ID 1254497755-1822-1-git-send-email-khilman@deeprootsystems.com (mailing list archive)
State Accepted
Delegated to: Kevin Hilman
Headers show

Commit Message

Kevin Hilman Oct. 2, 2009, 3:35 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/board-rx51.c b/arch/arm/mach-omap2/board-rx51.c
index f9196c3..6ad44d8 100644
--- a/arch/arm/mach-omap2/board-rx51.c
+++ b/arch/arm/mach-omap2/board-rx51.c
@@ -31,6 +31,8 @@ 
 #include <mach/gpmc.h>
 #include <mach/usb.h>
 
+#define RX51_GPIO_SLEEP_IND 162
+
 static struct omap_lcd_config rx51_lcd_config = {
 	.ctrl_name	= "internal",
 };
@@ -74,6 +76,11 @@  static void __init rx51_init(void)
 	/* Ensure SDRC pins are mux'd for self-refresh */
 	omap_cfg_reg(H16_34XX_SDRC_CKE0);
 	omap_cfg_reg(H17_34XX_SDRC_CKE1);
+
+	if (!(gpio_request(RX51_GPIO_SLEEP_IND, "SLEEP_IND"))) {
+		gpio_direction_output(RX51_GPIO_SLEEP_IND, 0);
+		gpio_export(RX51_GPIO_SLEEP_IND, 1);
+	}
 }
 
 static void __init rx51_map_io(void)