diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-zoom2.c')
-rw-r--r-- | arch/arm/mach-omap2/board-zoom2.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/board-zoom2.c b/arch/arm/mach-omap2/board-zoom2.c index 324009edbd53..fd3369d5e5cb 100644 --- a/arch/arm/mach-omap2/board-zoom2.c +++ b/arch/arm/mach-omap2/board-zoom2.c | |||
@@ -25,9 +25,10 @@ | |||
25 | #include <mach/keypad.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 zoom2_twl4030_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(1, 0, KEY_R), |
33 | KEY(2, 0, KEY_T), | 34 | KEY(2, 0, KEY_T), |
@@ -82,11 +83,15 @@ static int zoom2_twl4030_keymap[] = { | |||
82 | 0 | 83 | 0 |
83 | }; | 84 | }; |
84 | 85 | ||
86 | static struct matrix_keymap_data board_map_data = { | ||
87 | .keymap = board_keymap, | ||
88 | .keymap_size = ARRAY_SIZE(board_keymap), | ||
89 | }; | ||
90 | |||
85 | static struct twl4030_keypad_data zoom2_kp_twl4030_data = { | 91 | static struct twl4030_keypad_data zoom2_kp_twl4030_data = { |
92 | .keymap_data = &board_map_data, | ||
86 | .rows = 8, | 93 | .rows = 8, |
87 | .cols = 8, | 94 | .cols = 8, |
88 | .keymap = zoom2_twl4030_keymap, | ||
89 | .keymapsize = ARRAY_SIZE(zoom2_twl4030_keymap), | ||
90 | .rep = 1, | 95 | .rep = 1, |
91 | }; | 96 | }; |
92 | 97 | ||
@@ -209,7 +214,8 @@ static void __init omap_zoom2_init_irq(void) | |||
209 | { | 214 | { |
210 | omap_board_config = zoom2_config; | 215 | omap_board_config = zoom2_config; |
211 | omap_board_config_size = ARRAY_SIZE(zoom2_config); | 216 | omap_board_config_size = ARRAY_SIZE(zoom2_config); |
212 | omap2_init_common_hw(NULL, NULL); | 217 | omap2_init_common_hw(mt46h32m32lf6_sdrc_params, |
218 | mt46h32m32lf6_sdrc_params); | ||
213 | omap_init_irq(); | 219 | omap_init_irq(); |
214 | omap_gpio_init(); | 220 | omap_gpio_init(); |
215 | } | 221 | } |