* [PATCH] arm: mach-kirkwood: add led in sheevaplug-setup.c
@ 2011-03-12 15:32 Robin Becker
2011-03-12 21:46 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Robin Becker @ 2011-03-12 15:32 UTC (permalink / raw)
To: Lennert Buytenhek, Nicolas Pitre, Russell King, linux-arm-kernel,
linux-kernel
Cc: Robin Becker, Robin Becker
From: Robin Becker <replabrobin@gmail.com>
This patch adds a second, red, led for the standard sheevaplug.
The sheeva_esata mpp config is left unchanged.
Tested on a standard sheevaplug
Signed-off-by: Robin Becker <robin@reportlab.com>
---
arch/arm/mach-kirkwood/sheevaplug-setup.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-kirkwood/sheevaplug-setup.c b/arch/arm/mach-kirkwood/sheevaplug-setup.c
index d2eec35..247aa92 100644
--- a/arch/arm/mach-kirkwood/sheevaplug-setup.c
+++ b/arch/arm/mach-kirkwood/sheevaplug-setup.c
@@ -58,6 +58,12 @@ static struct mvsdio_platform_data sheeva_esata_mvsdio_data = {
static struct gpio_led sheevaplug_led_pins[] = {
{
+ .name = "plug:red:misc",
+ .default_trigger = "none",
+ .gpio = 46,
+ .active_low = 1,
+ },
+ {
.name = "plug:green:health",
.default_trigger = "default-on",
.gpio = 49,
@@ -80,6 +86,7 @@ static struct platform_device sheevaplug_leds = {
static unsigned int sheevaplug_mpp_config[] __initdata = {
MPP29_GPIO, /* USB Power Enable */
+ MPP46_GPIO, /* LED Red */
MPP49_GPIO, /* LED */
0
};
--
1.7.4.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] arm: mach-kirkwood: add led in sheevaplug-setup.c
2011-03-12 15:32 [PATCH] arm: mach-kirkwood: add led in sheevaplug-setup.c Robin Becker
@ 2011-03-12 21:46 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2011-03-12 21:46 UTC (permalink / raw)
To: Robin Becker
Cc: Lennert Buytenhek, Nicolas Pitre, Russell King, linux-arm-kernel,
linux-kernel, Robin Becker
>>>>> "Robin" == Robin Becker <replabrobin@gmail.com> writes:
Robin> From: Robin Becker <replabrobin@gmail.com>
Robin> This patch adds a second, red, led for the standard sheevaplug.
Robin> The sheeva_esata mpp config is left unchanged.
Robin> Tested on a standard sheevaplug
Robin> Signed-off-by: Robin Becker <robin@reportlab.com>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
I had a look at this 2nd LED just the other week and was going to send a
patch to add it.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-12 21:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-12 15:32 [PATCH] arm: mach-kirkwood: add led in sheevaplug-setup.c Robin Becker
2011-03-12 21:46 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome