Skip to contentSkip to conversation

sh: enable sleep state LEDs on Ecovec24

PATCH New Magnus Damm 1 participant 1 message Oct 7, 2009 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: enable sleep state LEDs on Ecovec24

From: Magnus Damm <[email protected]>

Extend the ecovec24 board code to enable Power Management LEDs showing the current sh7724 sleep state.

---

 arch/sh/boards/mach-ecovec24/setup.c |    5 +++++
 1 file changed, 5 insertions(+)
arch/sh/boards/mach-ecovec24/setup.c +5 -0
@@ -460,6 +460,11 @@ static void __init sh_eth_init(void)
 #define IODRIVEA  0xA405018A
 static int __init arch_setup(void)
 {
+	/* enable STATUS0, STATUS2 and PDSTATUS */
+	gpio_request(GPIO_FN_STATUS0, NULL);
+	gpio_request(GPIO_FN_STATUS2, NULL);
+	gpio_request(GPIO_FN_PDSTATUS, NULL);
+
 	/* enable SCIFA0 */
 	gpio_request(GPIO_FN_SCIF0_TXD, NULL);
 	gpio_request(GPIO_FN_SCIF0_RXD, NULL);