Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91232
b: refs/heads/master
c: 450d287
h: refs/heads/master
v: v3
  • Loading branch information
eric miao authored and Russell King committed Apr 19, 2008
1 parent ea23f1d commit 76fbc21
Show file tree
Hide file tree
Showing 2 changed files with 27 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: c0a596d6a138ea281bed4ff3018c07c45dd245a2
refs/heads/master: 450d28749c9bf2cc6d274695fe454bb53456428d
26 changes: 26 additions & 0 deletions trunk/arch/arm/mach-pxa/mainstone.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/backlight.h>
#include <linux/input.h>
#include <linux/gpio_keys.h>

#include <asm/types.h>
#include <asm/setup.h>
Expand Down Expand Up @@ -500,11 +502,35 @@ static struct pxaficp_platform_data mainstone_ficp_platform_data = {
.transceiver_mode = mainstone_irda_transceiver_mode,
};

static struct gpio_keys_button gpio_keys_button[] = {
[0] = {
.desc = "wakeup",
.code = KEY_SUSPEND,
.type = EV_KEY,
.gpio = 1,
.wakeup = 1,
},
};

static struct gpio_keys_platform_data mainstone_gpio_keys = {
.buttons = gpio_keys_button,
.nbuttons = 1,
};

static struct platform_device mst_gpio_keys_device = {
.name = "gpio-keys",
.id = -1,
.dev = {
.platform_data = &mainstone_gpio_keys,
},
};

static struct platform_device *platform_devices[] __initdata = {
&smc91x_device,
&mst_audio_device,
&mst_flash_device[0],
&mst_flash_device[1],
&mst_gpio_keys_device,
};

static int mainstone_ohci_init(struct device *dev)
Expand Down

0 comments on commit 76fbc21

Please sign in to comment.