From 128e0f68607b99df6d4e4e79cf29368727d078a2 Mon Sep 17 00:00:00 2001 From: Magnus Damm Date: Tue, 10 Mar 2009 06:13:22 +0000 Subject: [PATCH] --- yaml --- r: 133311 b: refs/heads/master c: 508407149a7f927c4b65a20e0a08a2a94dc769c6 h: refs/heads/master i: 133309: 22bea92fd37d7ff051cf050f393607543f2f9957 133307: 00f3d65f6e48c5b30b874bd903a63931a3a7d3ec 133303: 61bfd2330bd3c5e2ac061a1bcf88865639218fcc 133295: 4d43f1bbd82311cd0ac9595a04505c975c3f9ab0 133279: be421facb9931dae3d427c660eb68fc13f2d7b5a 133247: cdcff019ff3ebeb8bc4e7dd30138f651c01fbdb9 v: v3 --- [refs] | 2 +- trunk/arch/sh/boards/mach-migor/setup.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index e9473638b30e..f680d09d38d6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 74aaf024c9a4def24f3eb91a675e4712142d3c87 +refs/heads/master: 508407149a7f927c4b65a20e0a08a2a94dc769c6 diff --git a/trunk/arch/sh/boards/mach-migor/setup.c b/trunk/arch/sh/boards/mach-migor/setup.c index 28e56c5809a2..bc35b4cae6b3 100644 --- a/trunk/arch/sh/boards/mach-migor/setup.c +++ b/trunk/arch/sh/boards/mach-migor/setup.c @@ -450,6 +450,14 @@ static struct spi_board_info migor_spi_devices[] = { static int __init migor_devices_setup(void) { + +#ifdef CONFIG_PM + /* Let D11 LED show STATUS0 */ + gpio_request(GPIO_FN_STATUS0, NULL); + + /* Lit D12 LED show PDSTATUS */ + gpio_request(GPIO_FN_PDSTATUS, NULL); +#else /* Lit D11 LED */ gpio_request(GPIO_PTJ7, NULL); gpio_direction_output(GPIO_PTJ7, 1); @@ -459,6 +467,7 @@ static int __init migor_devices_setup(void) gpio_request(GPIO_PTJ5, NULL); gpio_direction_output(GPIO_PTJ5, 1); gpio_export(GPIO_PTJ5, 0); +#endif /* SMC91C111 - Enable IRQ0, Setup CS4 for 16-bit fast access */ gpio_request(GPIO_FN_IRQ0, NULL);