Skip to content

Commit

Permalink
ARM: OMAP: pandora: add support for backlight and poweroff
Browse files Browse the repository at this point in the history
Add platform data for drivers that recently appeared in kernel:
backlight and TWL4030 poweroff support.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Grazvydas Ignotas authored and Tony Lindgren committed Mar 5, 2012
1 parent 2534b4a commit 7846e16
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions arch/arm/mach-omap2/board-omap3pandora.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ static struct platform_device pandora_leds_gpio = {
},
};

static struct platform_device pandora_backlight = {
.name = "pandora-backlight",
.id = -1,
};

#define GPIO_BUTTON(gpio_num, ev_type, ev_code, act_low, descr) \
{ \
.gpio = gpio_num, \
Expand Down Expand Up @@ -476,6 +481,10 @@ static struct platform_device pandora_vwlan_device = {

static struct twl4030_bci_platform_data pandora_bci_data;

static struct twl4030_power_data pandora_power_data = {
.use_poweroff = true,
};

static struct twl4030_platform_data omap3pandora_twldata = {
.gpio = &omap3pandora_gpio_data,
.vmmc1 = &pandora_vmmc1,
Expand All @@ -486,6 +495,7 @@ static struct twl4030_platform_data omap3pandora_twldata = {
.vsim = &pandora_vsim,
.keypad = &pandora_kp_data,
.bci = &pandora_bci_data,
.power = &pandora_power_data,
};

static struct i2c_board_info __initdata omap3pandora_i2c3_boardinfo[] = {
Expand Down Expand Up @@ -557,6 +567,7 @@ static struct platform_device *omap3pandora_devices[] __initdata = {
&pandora_leds_gpio,
&pandora_keys_gpio,
&pandora_vwlan_device,
&pandora_backlight,
};

static const struct usbhs_omap_board_data usbhs_bdata __initconst = {
Expand Down

0 comments on commit 7846e16

Please sign in to comment.