aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2009-08-06 11:03:43 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-08-06 14:55:38 -0400
commit7766e16beec3363516306754c9c51a85747d734d (patch)
tree822e87a991a38af7965048f92bb2b24d8d11efb9 /arch/sh
parent33893d7aa00057d067527e0d8c210190efade8f1 (diff)
sh: LED9, LED10 and LED11 support for Solution Engine 7724
This patch adds support for LED9, LED10 and LED11 on the Solution Engine 7724 board. If CONFIG_PM is enabled then these LEDs are used to show the hardware sleep mode used by the processor. Useful to debug cpuidle. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/boards/mach-se/7724/setup.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c
index 957ed176ea2c..36a4ca3a9000 100644
--- a/arch/sh/boards/mach-se/7724/setup.c
+++ b/arch/sh/boards/mach-se/7724/setup.c
@@ -429,6 +429,32 @@ static int __init devices_setup(void)
429 /* turn on USB clocks, use external clock */ 429 /* turn on USB clocks, use external clock */
430 ctrl_outw((ctrl_inw(PORT_MSELCRB) & ~0xc000) | 0x8000, PORT_MSELCRB); 430 ctrl_outw((ctrl_inw(PORT_MSELCRB) & ~0xc000) | 0x8000, PORT_MSELCRB);
431 431
432#ifdef CONFIG_PM
433 /* Let LED9 show STATUS2 */
434 gpio_request(GPIO_FN_STATUS2, NULL);
435
436 /* Lit LED10 show STATUS0 */
437 gpio_request(GPIO_FN_STATUS0, NULL);
438
439 /* Lit LED11 show PDSTATUS */
440 gpio_request(GPIO_FN_PDSTATUS, NULL);
441#else
442 /* Lit LED9 */
443 gpio_request(GPIO_PTJ6, NULL);
444 gpio_direction_output(GPIO_PTJ6, 1);
445 gpio_export(GPIO_PTJ6, 0);
446
447 /* Lit LED10 */
448 gpio_request(GPIO_PTJ5, NULL);
449 gpio_direction_output(GPIO_PTJ5, 1);
450 gpio_export(GPIO_PTJ5, 0);
451
452 /* Lit LED11 */
453 gpio_request(GPIO_PTJ7, NULL);
454 gpio_direction_output(GPIO_PTJ7, 1);
455 gpio_export(GPIO_PTJ7, 0);
456#endif
457
432 /* enable USB0 port */ 458 /* enable USB0 port */
433 ctrl_outw(0x0600, 0xa40501d4); 459 ctrl_outw(0x0600, 0xa40501d4);
434 460