Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313825
b: refs/heads/master
c: bbca5c6
h: refs/heads/master
i:
  313823: 35cfb71
v: v3
  • Loading branch information
Steven Miao authored and Bob Liu committed Jul 24, 2012
1 parent fe24cf6 commit 105d8fb
Show file tree
Hide file tree
Showing 2 changed files with 23 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: 6b6c37bf9d9295228b63a06b34fea91a02317bce
refs/heads/master: bbca5c6d9e7d0b0cdecd70766b7f4698462a53e0
22 changes: 22 additions & 0 deletions trunk/arch/blackfin/mach-bf609/boards/ezkit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,28 @@ static const struct ad7877_platform_data bfin_ad7877_ts_info = {
};
#endif

#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
#include <linux/input.h>
#include <linux/gpio_keys.h>

static struct gpio_keys_button bfin_gpio_keys_table[] = {
{BTN_0, GPIO_PB10, 1, "gpio-keys: BTN0"},
{BTN_1, GPIO_PE1, 1, "gpio-keys: BTN1"},
};

static struct gpio_keys_platform_data bfin_gpio_keys_data = {
.buttons = bfin_gpio_keys_table,
.nbuttons = ARRAY_SIZE(bfin_gpio_keys_table),
};

static struct platform_device bfin_device_gpiokeys = {
.name = "gpio-keys",
.dev = {
.platform_data = &bfin_gpio_keys_data,
},
};
#endif

static struct spi_board_info bfin_spi_board_info[] __initdata = {
#if defined(CONFIG_MTD_M25P80) \
|| defined(CONFIG_MTD_M25P80_MODULE)
Expand Down

0 comments on commit 105d8fb

Please sign in to comment.