aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-igep0020.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/board-igep0020.c')
-rw-r--r--arch/arm/mach-omap2/board-igep0020.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c
index ebaa230e67e..3be85a1f55f 100644
--- a/arch/arm/mach-omap2/board-igep0020.c
+++ b/arch/arm/mach-omap2/board-igep0020.c
@@ -17,6 +17,7 @@
17#include <linux/io.h> 17#include <linux/io.h>
18#include <linux/gpio.h> 18#include <linux/gpio.h>
19#include <linux/interrupt.h> 19#include <linux/interrupt.h>
20#include <linux/input.h>
20 21
21#include <linux/regulator/machine.h> 22#include <linux/regulator/machine.h>
22#include <linux/regulator/fixed.h> 23#include <linux/regulator/fixed.h>
@@ -541,6 +542,37 @@ static struct twl4030_codec_data igep2_codec_data = {
541 .audio = &igep2_audio_data, 542 .audio = &igep2_audio_data,
542}; 543};
543 544
545static int igep2_keymap[] = {
546 KEY(0, 0, KEY_LEFT),
547 KEY(0, 1, KEY_RIGHT),
548 KEY(0, 2, KEY_A),
549 KEY(0, 3, KEY_B),
550 KEY(1, 0, KEY_DOWN),
551 KEY(1, 1, KEY_UP),
552 KEY(1, 2, KEY_E),
553 KEY(1, 3, KEY_F),
554 KEY(2, 0, KEY_ENTER),
555 KEY(2, 1, KEY_I),
556 KEY(2, 2, KEY_J),
557 KEY(2, 3, KEY_K),
558 KEY(3, 0, KEY_M),
559 KEY(3, 1, KEY_N),
560 KEY(3, 2, KEY_O),
561 KEY(3, 3, KEY_P)
562};
563
564static struct matrix_keymap_data igep2_keymap_data = {
565 .keymap = igep2_keymap,
566 .keymap_size = ARRAY_SIZE(igep2_keymap),
567};
568
569static struct twl4030_keypad_data igep2_keypad_pdata = {
570 .keymap_data = &igep2_keymap_data,
571 .rows = 4,
572 .cols = 4,
573 .rep = 1,
574};
575
544static struct twl4030_platform_data igep2_twldata = { 576static struct twl4030_platform_data igep2_twldata = {
545 .irq_base = TWL4030_IRQ_BASE, 577 .irq_base = TWL4030_IRQ_BASE,
546 .irq_end = TWL4030_IRQ_END, 578 .irq_end = TWL4030_IRQ_END,
@@ -549,6 +581,7 @@ static struct twl4030_platform_data igep2_twldata = {
549 .usb = &igep2_usb_data, 581 .usb = &igep2_usb_data,
550 .codec = &igep2_codec_data, 582 .codec = &igep2_codec_data,
551 .gpio = &igep2_twl4030_gpio_pdata, 583 .gpio = &igep2_twl4030_gpio_pdata,
584 .keypad = &igep2_keypad_pdata,
552 .vmmc1 = &igep2_vmmc1, 585 .vmmc1 = &igep2_vmmc1,
553 .vpll2 = &igep2_vpll2, 586 .vpll2 = &igep2_vpll2,
554 .vio = &igep2_vio, 587 .vio = &igep2_vio,