summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy.green@linaro.org>2012-02-16 02:34:09 +0800
committerAndy Green <andy.green@linaro.org>2012-02-16 02:34:09 +0800
commit122c7b737e36145d8a19c0b8808d7ab27dad0785 (patch)
treee9e178f96bbdd53bc197ff210ff8b54da877d0f4
parent99dba4143117c920d61bc0d5b83b531574e095a2 (diff)
reintroduce panda_leds_initold-tree-cam
Signed-off-by: Andy Green <andy.green@linaro.org>
-rw-r--r--arch/arm/mach-omap2/board-omap4panda.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c
index a8ce24c579e..d8fc37df400 100644
--- a/arch/arm/mach-omap2/board-omap4panda.c
+++ b/arch/arm/mach-omap2/board-omap4panda.c
@@ -208,6 +208,19 @@ static struct platform_device panda_v1v8 = {
};
+static void __init panda_leds_init(void)
+{
+ if (cpu_is_omap443x()) {
+ gpio_leds[0].gpio = 7;
+ gpio_leds[1].gpio = 8;
+ } else {
+ gpio_leds[0].gpio = 110;
+ gpio_leds[1].gpio = 8;
+ }
+
+ platform_device_register(&leds_gpio);
+}
+
static struct platform_device *panda_devices[] __initdata = {
&wl1271_device,
&btwilink_device,