Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184780
b: refs/heads/master
c: a4b41d8
h: refs/heads/master
v: v3
  • Loading branch information
Kevin Hilman committed Feb 23, 2010
1 parent 703e958 commit 5a248ce
Show file tree
Hide file tree
Showing 2 changed files with 26 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: 709731bb369b562586ee4c60f3f0393eb94dd9d6
refs/heads/master: a4b41d8ed805e90bd855ac572eaeb13901d4af32
25 changes: 25 additions & 0 deletions trunk/arch/arm/mach-omap2/board-rx51.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/gpio.h>
#include <linux/leds.h>

#include <mach/hardware.h>
#include <asm/mach-types.h>
Expand All @@ -31,8 +32,30 @@

#include "mux.h"

#define RX51_GPIO_SLEEP_IND 162

struct omap_sdrc_params *rx51_get_sdram_timings(void);

static struct gpio_led gpio_leds[] = {
{
.name = "sleep_ind",
.gpio = RX51_GPIO_SLEEP_IND,
},
};

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 omap_lcd_config rx51_lcd_config = {
.ctrl_name = "internal",
};
Expand Down Expand Up @@ -88,6 +111,8 @@ static void __init rx51_init(void)
/* Ensure SDRC pins are mux'd for self-refresh */
omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);

platform_device_register(&leds_gpio);
}

static void __init rx51_map_io(void)
Expand Down

0 comments on commit 5a248ce

Please sign in to comment.