Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 216908
b: refs/heads/master
c: 3da434a
h: refs/heads/master
v: v3
  • Loading branch information
Ricardo Salveti de Araujo authored and Tony Lindgren committed Sep 25, 2010
1 parent 327e85b commit 996c91e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 94ce7a6628ccaa71f0a5f26f6ff7dc7b0f0f65b7
refs/heads/master: 3da434acd4f7c7f5aeebd44fed42bf5ed9adfc44
32 changes: 32 additions & 0 deletions trunk/arch/arm/mach-omap2/board-omap4panda.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/leds.h>
#include <linux/gpio.h>
#include <linux/usb/otg.h>
#include <linux/i2c/twl.h>
Expand All @@ -40,6 +41,36 @@
#include "hsmmc.h"


static struct gpio_led gpio_leds[] = {
{
.name = "pandaboard::status1",
.default_trigger = "heartbeat",
.gpio = 7,
},
{
.name = "pandaboard::status2",
.default_trigger = "mmc0",
.gpio = 8,
},
};

static struct gpio_led_platform_data gpio_led_info = {
.leds = gpio_leds,
.num_leds = ARRAY_SIZE(gpio_leds),
};

static struct platform_device leds_gpio = {
.name = "leds-gpio",
.id = -1,
.dev = {
.platform_data = &gpio_led_info,
},
};

static struct platform_device *panda_devices[] __initdata = {
&leds_gpio,
};

static void __init omap4_panda_init_irq(void)
{
omap2_init_common_hw(NULL, NULL);
Expand Down Expand Up @@ -277,6 +308,7 @@ static void __init omap4_panda_init(void)
int status;

omap4_panda_i2c_init();
platform_add_devices(panda_devices, ARRAY_SIZE(panda_devices));
omap_serial_init();
omap4_twl6030_hsmmc_init(mmc);
/* OMAP4 Panda uses internal transceiver so register nop transceiver */
Expand Down

0 comments on commit 996c91e

Please sign in to comment.