diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-zoom2.c')
-rw-r--r-- | arch/arm/mach-omap2/board-zoom2.c | 93 |
1 files changed, 47 insertions, 46 deletions
diff --git a/arch/arm/mach-omap2/board-zoom2.c b/arch/arm/mach-omap2/board-zoom2.c index b7b32208ced7..51e0b3ba5f3a 100644 --- a/arch/arm/mach-omap2/board-zoom2.c +++ b/arch/arm/mach-omap2/board-zoom2.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <linux/platform_device.h> | 14 | #include <linux/platform_device.h> |
15 | #include <linux/input.h> | 15 | #include <linux/input.h> |
16 | #include <linux/input/matrix_keypad.h> | ||
16 | #include <linux/gpio.h> | 17 | #include <linux/gpio.h> |
17 | #include <linux/i2c/twl4030.h> | 18 | #include <linux/i2c/twl4030.h> |
18 | #include <linux/regulator/machine.h> | 19 | #include <linux/regulator/machine.h> |
@@ -22,64 +23,63 @@ | |||
22 | 23 | ||
23 | #include <mach/common.h> | 24 | #include <mach/common.h> |
24 | #include <mach/usb.h> | 25 | #include <mach/usb.h> |
25 | #include <mach/keypad.h> | ||
26 | 26 | ||
27 | #include "mmc-twl4030.h" | 27 | #include "mmc-twl4030.h" |
28 | #include "sdram-micron-mt46h32m32lf-6.h" | ||
28 | 29 | ||
29 | /* Zoom2 has Qwerty keyboard*/ | 30 | /* Zoom2 has Qwerty keyboard*/ |
30 | static int board_keymap[] = { | 31 | static int board_keymap[] = { |
31 | KEY(0, 0, KEY_E), | 32 | KEY(0, 0, KEY_E), |
32 | KEY(1, 0, KEY_R), | 33 | KEY(0, 1, KEY_R), |
33 | KEY(2, 0, KEY_T), | 34 | KEY(0, 2, KEY_T), |
34 | KEY(3, 0, KEY_HOME), | 35 | KEY(0, 3, KEY_HOME), |
35 | KEY(6, 0, KEY_I), | 36 | KEY(0, 6, KEY_I), |
36 | KEY(7, 0, KEY_LEFTSHIFT), | 37 | KEY(0, 7, KEY_LEFTSHIFT), |
37 | KEY(0, 1, KEY_D), | 38 | KEY(1, 0, KEY_D), |
38 | KEY(1, 1, KEY_F), | 39 | KEY(1, 1, KEY_F), |
39 | KEY(2, 1, KEY_G), | 40 | KEY(1, 2, KEY_G), |
40 | KEY(3, 1, KEY_SEND), | 41 | KEY(1, 3, KEY_SEND), |
41 | KEY(6, 1, KEY_K), | 42 | KEY(1, 6, KEY_K), |
42 | KEY(7, 1, KEY_ENTER), | 43 | KEY(1, 7, KEY_ENTER), |
43 | KEY(0, 2, KEY_X), | 44 | KEY(2, 0, KEY_X), |
44 | KEY(1, 2, KEY_C), | 45 | KEY(2, 1, KEY_C), |
45 | KEY(2, 2, KEY_V), | 46 | KEY(2, 2, KEY_V), |
46 | KEY(3, 2, KEY_END), | 47 | KEY(2, 3, KEY_END), |
47 | KEY(6, 2, KEY_DOT), | 48 | KEY(2, 6, KEY_DOT), |
48 | KEY(7, 2, KEY_CAPSLOCK), | 49 | KEY(2, 7, KEY_CAPSLOCK), |
49 | KEY(0, 3, KEY_Z), | 50 | KEY(3, 0, KEY_Z), |
50 | KEY(1, 3, KEY_KPPLUS), | 51 | KEY(3, 1, KEY_KPPLUS), |
51 | KEY(2, 3, KEY_B), | 52 | KEY(3, 2, KEY_B), |
52 | KEY(3, 3, KEY_F1), | 53 | KEY(3, 3, KEY_F1), |
53 | KEY(6, 3, KEY_O), | 54 | KEY(3, 6, KEY_O), |
54 | KEY(7, 3, KEY_SPACE), | 55 | KEY(3, 7, KEY_SPACE), |
55 | KEY(0, 4, KEY_W), | 56 | KEY(4, 0, KEY_W), |
56 | KEY(1, 4, KEY_Y), | 57 | KEY(4, 1, KEY_Y), |
57 | KEY(2, 4, KEY_U), | 58 | KEY(4, 2, KEY_U), |
58 | KEY(3, 4, KEY_F2), | 59 | KEY(4, 3, KEY_F2), |
59 | KEY(4, 4, KEY_VOLUMEUP), | 60 | KEY(4, 4, KEY_VOLUMEUP), |
60 | KEY(6, 4, KEY_L), | 61 | KEY(4, 6, KEY_L), |
61 | KEY(7, 4, KEY_LEFT), | 62 | KEY(4, 7, KEY_LEFT), |
62 | KEY(0, 5, KEY_S), | 63 | KEY(5, 0, KEY_S), |
63 | KEY(1, 5, KEY_H), | 64 | KEY(5, 1, KEY_H), |
64 | KEY(2, 5, KEY_J), | 65 | KEY(5, 2, KEY_J), |
65 | KEY(3, 5, KEY_F3), | 66 | KEY(5, 3, KEY_F3), |
66 | KEY(5, 5, KEY_VOLUMEDOWN), | 67 | KEY(5, 5, KEY_VOLUMEDOWN), |
67 | KEY(6, 5, KEY_M), | 68 | KEY(5, 6, KEY_M), |
68 | KEY(4, 5, KEY_ENTER), | 69 | KEY(5, 7, KEY_ENTER), |
69 | KEY(7, 5, KEY_RIGHT), | 70 | KEY(6, 0, KEY_Q), |
70 | KEY(0, 6, KEY_Q), | 71 | KEY(6, 1, KEY_A), |
71 | KEY(1, 6, KEY_A), | 72 | KEY(6, 2, KEY_N), |
72 | KEY(2, 6, KEY_N), | 73 | KEY(6, 3, KEY_BACKSPACE), |
73 | KEY(3, 6, KEY_BACKSPACE), | ||
74 | KEY(6, 6, KEY_P), | 74 | KEY(6, 6, KEY_P), |
75 | KEY(7, 6, KEY_UP), | ||
76 | KEY(6, 7, KEY_SELECT), | 75 | KEY(6, 7, KEY_SELECT), |
77 | KEY(7, 7, KEY_DOWN), | 76 | KEY(7, 0, KEY_PROG1), /*MACRO 1 <User defined> */ |
78 | KEY(0, 7, KEY_PROG1), /*MACRO 1 <User defined> */ | 77 | KEY(7, 1, KEY_PROG2), /*MACRO 2 <User defined> */ |
79 | KEY(1, 7, KEY_PROG2), /*MACRO 2 <User defined> */ | 78 | KEY(7, 2, KEY_PROG3), /*MACRO 3 <User defined> */ |
80 | KEY(2, 7, KEY_PROG3), /*MACRO 3 <User defined> */ | 79 | KEY(7, 3, KEY_PROG4), /*MACRO 4 <User defined> */ |
81 | KEY(3, 7, KEY_PROG4), /*MACRO 4 <User defined> */ | 80 | KEY(7, 5, KEY_RIGHT), |
82 | 0 | 81 | KEY(7, 6, KEY_UP), |
82 | KEY(7, 7, KEY_DOWN) | ||
83 | }; | 83 | }; |
84 | 84 | ||
85 | static struct matrix_keymap_data board_map_data = { | 85 | static struct matrix_keymap_data board_map_data = { |
@@ -213,7 +213,8 @@ static void __init omap_zoom2_init_irq(void) | |||
213 | { | 213 | { |
214 | omap_board_config = zoom2_config; | 214 | omap_board_config = zoom2_config; |
215 | omap_board_config_size = ARRAY_SIZE(zoom2_config); | 215 | omap_board_config_size = ARRAY_SIZE(zoom2_config); |
216 | omap2_init_common_hw(NULL, NULL); | 216 | omap2_init_common_hw(mt46h32m32lf6_sdrc_params, |
217 | mt46h32m32lf6_sdrc_params); | ||
217 | omap_init_irq(); | 218 | omap_init_irq(); |
218 | omap_gpio_init(); | 219 | omap_gpio_init(); |
219 | } | 220 | } |