diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-14 16:13:07 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-14 16:13:07 -0500 |
commit | ec08bdb148767f1193f5f3028749ed865ac27181 (patch) | |
tree | 03effeb02aaa21a21eaa70cd438ae301566af740 /arch/arm/mach-omap2/board-igep0020.c | |
parent | 9cefa17e196beab300d4faf09d242de77e5900d5 (diff) | |
parent | 7d4ca85a53bab1f6f9911411be38e0486a11187a (diff) |
Merge branch 'omap-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6
* 'omap-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6: (27 commits)
omap4: Fix ULPI PHY init for ES1.0 SDP
omap3: beaglexm: fix power on of DVI
omap3: igep3: Add omap_reserve functionality
omap3: beaglexm: fix DVI reset GPIO
omap3: beaglexm: fix EHCI power up GPIO dir
omap3: igep2: Add keypad support
omap3: igep3: Fix IGEP module second MMC channel power supply
omap3: igep3: Add USB EHCI support for IGEP module
omap3: clocks: Fix build error 'CK_3430ES2' undeclared here
arm: omap4: pandaboard: turn on PHY reference clock at init
omap2plus: prm: Trvial build break fix for undefined reference to 'omap2_prm_read_mod_reg'
omap2plus: voltage: Trivial linking fix for 'EINVAL' undeclared
omap2plus: voltage: Trivial linking fix 'undefined reference'
omap2plus: voltage: Trivial warning fix 'no return statement'
omap2plus: clockdomain: Trivial fix for build break because of clktrctrl_mask
arm: omap: gpio: don't access irq_desc array directly
omap2+: pm_bus: make functions used as pointers as static
OMAP: GPIO: fix _set_gpio_triggering() for OMAP2+
OMAP2+: TWL: include pm header for init protos
OMAP2+: TWL: make conversion routines static
...
Fix up conflicts in arch/arm/mach-omap2/board-omap3beagle.c ("DVI reset
GPIO" vs "use generic DPI panel driver")
Diffstat (limited to 'arch/arm/mach-omap2/board-igep0020.c')
-rw-r--r-- | arch/arm/mach-omap2/board-igep0020.c | 33 |
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 ebaa230e67ed..3be85a1f55f4 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 | ||
545 | static 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 | |||
564 | static struct matrix_keymap_data igep2_keymap_data = { | ||
565 | .keymap = igep2_keymap, | ||
566 | .keymap_size = ARRAY_SIZE(igep2_keymap), | ||
567 | }; | ||
568 | |||
569 | static struct twl4030_keypad_data igep2_keypad_pdata = { | ||
570 | .keymap_data = &igep2_keymap_data, | ||
571 | .rows = 4, | ||
572 | .cols = 4, | ||
573 | .rep = 1, | ||
574 | }; | ||
575 | |||
544 | static struct twl4030_platform_data igep2_twldata = { | 576 | static 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, |