Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 1 | /* |
Uwe Zeisberger | f30c226 | 2006-10-03 23:01:26 +0200 | [diff] [blame] | 2 | * linux/arch/arm/mach-omap2/board-h4.c |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 3 | * |
| 4 | * Copyright (C) 2005 Nokia Corporation |
| 5 | * Author: Paul Mundt <paul.mundt@nokia.com> |
| 6 | * |
| 7 | * Modified from mach-omap/omap1/board-generic.c |
| 8 | * |
| 9 | * This program is free software; you can redistribute it and/or modify |
| 10 | * it under the terms of the GNU General Public License version 2 as |
| 11 | * published by the Free Software Foundation. |
| 12 | */ |
Russell King | 2f8163b | 2011-07-26 10:53:52 +0100 | [diff] [blame] | 13 | #include <linux/gpio.h> |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 14 | #include <linux/kernel.h> |
| 15 | #include <linux/init.h> |
| 16 | #include <linux/platform_device.h> |
| 17 | #include <linux/mtd/mtd.h> |
| 18 | #include <linux/mtd/partitions.h> |
Ladislav Michl | 561b036 | 2010-02-15 10:03:32 -0800 | [diff] [blame] | 19 | #include <linux/mtd/physmap.h> |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 20 | #include <linux/delay.h> |
Tony Lindgren | 9b6553c | 2006-04-02 17:46:30 +0100 | [diff] [blame] | 21 | #include <linux/workqueue.h> |
Jean Delvare | 9df013b | 2008-10-14 17:30:02 +0200 | [diff] [blame] | 22 | #include <linux/i2c.h> |
David Brownell | 6a769ed | 2008-12-10 17:36:33 -0800 | [diff] [blame] | 23 | #include <linux/i2c/at24.h> |
Tony Lindgren | 9b6553c | 2006-04-02 17:46:30 +0100 | [diff] [blame] | 24 | #include <linux/input.h> |
Paul Walmsley | 4459598 | 2008-03-18 10:04:51 +0200 | [diff] [blame] | 25 | #include <linux/err.h> |
| 26 | #include <linux/clk.h> |
Russell King | fced80c | 2008-09-06 12:10:45 +0100 | [diff] [blame] | 27 | #include <linux/io.h> |
Tony Lindgren | 41eb2d8 | 2011-10-06 15:43:00 -0700 | [diff] [blame] | 28 | #include <linux/input/matrix_keypad.h> |
Tony Lindgren | 7bd3b61 | 2012-10-15 13:53:41 -0700 | [diff] [blame] | 29 | #include <linux/mfd/menelaus.h> |
Jon Hunter | 86c3596 | 2012-11-13 16:02:19 -0600 | [diff] [blame] | 30 | #include <linux/omap-dma.h> |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 31 | |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 32 | #include <asm/mach-types.h> |
| 33 | #include <asm/mach/arch.h> |
| 34 | #include <asm/mach/map.h> |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 35 | |
Tomi Valkeinen | cbf1455 | 2011-05-09 10:12:42 +0300 | [diff] [blame] | 36 | #include <video/omapdss.h> |
Archit Taneja | a0d8dde | 2013-02-12 16:46:46 +0530 | [diff] [blame] | 37 | #include <video/omap-panel-data.h> |
Tomi Valkeinen | cbf1455 | 2011-05-09 10:12:42 +0300 | [diff] [blame] | 38 | |
Tony Lindgren | dbc0416 | 2012-08-31 10:59:07 -0700 | [diff] [blame] | 39 | #include "common.h" |
Tony Lindgren | 23275d4 | 2010-07-05 16:31:37 +0300 | [diff] [blame] | 40 | #include "mux.h" |
Paul Walmsley | 4814ced | 2010-10-08 11:40:20 -0600 | [diff] [blame] | 41 | #include "control.h" |
Afzal Mohammed | 3ef5d00 | 2012-10-05 10:37:27 +0530 | [diff] [blame] | 42 | #include "gpmc.h" |
Jon Hunter | 86c3596 | 2012-11-13 16:02:19 -0600 | [diff] [blame] | 43 | #include "gpmc-smc91x.h" |
Tony Lindgren | 23275d4 | 2010-07-05 16:31:37 +0300 | [diff] [blame] | 44 | |
Paul Walmsley | 4459598 | 2008-03-18 10:04:51 +0200 | [diff] [blame] | 45 | #define H4_FLASH_CS 0 |
Tony Lindgren | 40662d77 | 2009-03-23 18:07:36 -0700 | [diff] [blame] | 46 | |
Tony Lindgren | 41eb2d8 | 2011-10-06 15:43:00 -0700 | [diff] [blame] | 47 | #if defined(CONFIG_KEYBOARD_MATRIX) || defined(CONFIG_KEYBOARD_MATRIX_MODULE) |
| 48 | static const uint32_t board_matrix_keys[] = { |
Tony Lindgren | 9b6553c | 2006-04-02 17:46:30 +0100 | [diff] [blame] | 49 | KEY(0, 0, KEY_LEFT), |
Janusz Krzysztofik | da1f026 | 2010-12-20 21:09:22 +0000 | [diff] [blame] | 50 | KEY(1, 0, KEY_RIGHT), |
| 51 | KEY(2, 0, KEY_A), |
| 52 | KEY(3, 0, KEY_B), |
| 53 | KEY(4, 0, KEY_C), |
| 54 | KEY(0, 1, KEY_DOWN), |
Tony Lindgren | 9b6553c | 2006-04-02 17:46:30 +0100 | [diff] [blame] | 55 | KEY(1, 1, KEY_UP), |
Janusz Krzysztofik | da1f026 | 2010-12-20 21:09:22 +0000 | [diff] [blame] | 56 | KEY(2, 1, KEY_E), |
| 57 | KEY(3, 1, KEY_F), |
| 58 | KEY(4, 1, KEY_G), |
| 59 | KEY(0, 2, KEY_ENTER), |
| 60 | KEY(1, 2, KEY_I), |
Tony Lindgren | 9b6553c | 2006-04-02 17:46:30 +0100 | [diff] [blame] | 61 | KEY(2, 2, KEY_J), |
Janusz Krzysztofik | da1f026 | 2010-12-20 21:09:22 +0000 | [diff] [blame] | 62 | KEY(3, 2, KEY_K), |
| 63 | KEY(4, 2, KEY_3), |
| 64 | KEY(0, 3, KEY_M), |
| 65 | KEY(1, 3, KEY_N), |
| 66 | KEY(2, 3, KEY_O), |
Tony Lindgren | 9b6553c | 2006-04-02 17:46:30 +0100 | [diff] [blame] | 67 | KEY(3, 3, KEY_P), |
Janusz Krzysztofik | da1f026 | 2010-12-20 21:09:22 +0000 | [diff] [blame] | 68 | KEY(4, 3, KEY_Q), |
| 69 | KEY(0, 4, KEY_R), |
| 70 | KEY(1, 4, KEY_4), |
| 71 | KEY(2, 4, KEY_T), |
| 72 | KEY(3, 4, KEY_U), |
Tony Lindgren | 9b6553c | 2006-04-02 17:46:30 +0100 | [diff] [blame] | 73 | KEY(4, 4, KEY_ENTER), |
Janusz Krzysztofik | da1f026 | 2010-12-20 21:09:22 +0000 | [diff] [blame] | 74 | KEY(0, 5, KEY_V), |
| 75 | KEY(1, 5, KEY_W), |
| 76 | KEY(2, 5, KEY_L), |
| 77 | KEY(3, 5, KEY_S), |
| 78 | KEY(4, 5, KEY_ENTER), |
Tony Lindgren | 9b6553c | 2006-04-02 17:46:30 +0100 | [diff] [blame] | 79 | }; |
| 80 | |
Tony Lindgren | 41eb2d8 | 2011-10-06 15:43:00 -0700 | [diff] [blame] | 81 | static const struct matrix_keymap_data board_keymap_data = { |
| 82 | .keymap = board_matrix_keys, |
| 83 | .keymap_size = ARRAY_SIZE(board_matrix_keys), |
| 84 | }; |
| 85 | |
| 86 | static unsigned int board_keypad_row_gpios[] = { |
| 87 | 88, 89, 124, 11, 6, 96 |
| 88 | }; |
| 89 | |
| 90 | static unsigned int board_keypad_col_gpios[] = { |
| 91 | 90, 91, 100, 36, 12, 97, 98 |
| 92 | }; |
| 93 | |
| 94 | static struct matrix_keypad_platform_data board_keypad_platform_data = { |
| 95 | .keymap_data = &board_keymap_data, |
| 96 | .row_gpios = board_keypad_row_gpios, |
| 97 | .num_row_gpios = ARRAY_SIZE(board_keypad_row_gpios), |
| 98 | .col_gpios = board_keypad_col_gpios, |
| 99 | .num_col_gpios = ARRAY_SIZE(board_keypad_col_gpios), |
| 100 | .active_low = 1, |
| 101 | |
| 102 | .debounce_ms = 20, |
| 103 | .col_scan_delay_us = 5, |
| 104 | }; |
| 105 | |
| 106 | static struct platform_device board_keyboard = { |
| 107 | .name = "matrix-keypad", |
| 108 | .id = -1, |
| 109 | .dev = { |
| 110 | .platform_data = &board_keypad_platform_data, |
| 111 | }, |
| 112 | }; |
| 113 | static void __init board_mkp_init(void) |
| 114 | { |
| 115 | omap_mux_init_gpio(88, OMAP_PULL_ENA | OMAP_PULL_UP); |
| 116 | omap_mux_init_gpio(89, OMAP_PULL_ENA | OMAP_PULL_UP); |
| 117 | omap_mux_init_gpio(124, OMAP_PULL_ENA | OMAP_PULL_UP); |
| 118 | omap_mux_init_signal("mcbsp2_dr.gpio_11", OMAP_PULL_ENA | OMAP_PULL_UP); |
| 119 | if (omap_has_menelaus()) { |
| 120 | omap_mux_init_signal("sdrc_a14.gpio0", |
| 121 | OMAP_PULL_ENA | OMAP_PULL_UP); |
| 122 | omap_mux_init_signal("vlynq_rx0.gpio_15", 0); |
| 123 | omap_mux_init_signal("gpio_98", 0); |
| 124 | board_keypad_row_gpios[5] = 0; |
| 125 | board_keypad_col_gpios[2] = 15; |
| 126 | board_keypad_col_gpios[6] = 18; |
| 127 | } else { |
| 128 | omap_mux_init_signal("gpio_96", OMAP_PULL_ENA | OMAP_PULL_UP); |
| 129 | omap_mux_init_signal("gpio_100", 0); |
| 130 | omap_mux_init_signal("gpio_98", 0); |
| 131 | } |
| 132 | omap_mux_init_signal("gpio_90", 0); |
| 133 | omap_mux_init_signal("gpio_91", 0); |
| 134 | omap_mux_init_signal("gpio_36", 0); |
| 135 | omap_mux_init_signal("mcbsp2_clkx.gpio_12", 0); |
| 136 | omap_mux_init_signal("gpio_97", 0); |
| 137 | |
| 138 | platform_device_register(&board_keyboard); |
| 139 | } |
| 140 | #else |
| 141 | static inline void board_mkp_init(void) |
| 142 | { |
| 143 | } |
| 144 | #endif |
| 145 | |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 146 | static struct mtd_partition h4_partitions[] = { |
| 147 | /* bootloader (U-Boot, etc) in first sector */ |
| 148 | { |
| 149 | .name = "bootloader", |
| 150 | .offset = 0, |
| 151 | .size = SZ_128K, |
| 152 | .mask_flags = MTD_WRITEABLE, /* force read-only */ |
| 153 | }, |
| 154 | /* bootloader params in the next sector */ |
| 155 | { |
| 156 | .name = "params", |
| 157 | .offset = MTDPART_OFS_APPEND, |
| 158 | .size = SZ_128K, |
| 159 | .mask_flags = 0, |
| 160 | }, |
| 161 | /* kernel */ |
| 162 | { |
| 163 | .name = "kernel", |
| 164 | .offset = MTDPART_OFS_APPEND, |
| 165 | .size = SZ_2M, |
| 166 | .mask_flags = 0 |
| 167 | }, |
| 168 | /* file system */ |
| 169 | { |
| 170 | .name = "filesystem", |
| 171 | .offset = MTDPART_OFS_APPEND, |
| 172 | .size = MTDPART_SIZ_FULL, |
| 173 | .mask_flags = 0 |
| 174 | } |
| 175 | }; |
| 176 | |
Ladislav Michl | 561b036 | 2010-02-15 10:03:32 -0800 | [diff] [blame] | 177 | static struct physmap_flash_data h4_flash_data = { |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 178 | .width = 2, |
| 179 | .parts = h4_partitions, |
| 180 | .nr_parts = ARRAY_SIZE(h4_partitions), |
| 181 | }; |
| 182 | |
| 183 | static struct resource h4_flash_resource = { |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 184 | .flags = IORESOURCE_MEM, |
| 185 | }; |
| 186 | |
| 187 | static struct platform_device h4_flash_device = { |
Ladislav Michl | 561b036 | 2010-02-15 10:03:32 -0800 | [diff] [blame] | 188 | .name = "physmap-flash", |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 189 | .id = 0, |
| 190 | .dev = { |
| 191 | .platform_data = &h4_flash_data, |
| 192 | }, |
| 193 | .num_resources = 1, |
| 194 | .resource = &h4_flash_resource, |
| 195 | }; |
| 196 | |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 197 | static struct platform_device *h4_devices[] __initdata = { |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 198 | &h4_flash_device, |
Tomi Valkeinen | cbf1455 | 2011-05-09 10:12:42 +0300 | [diff] [blame] | 199 | }; |
| 200 | |
| 201 | static struct panel_generic_dpi_data h4_panel_data = { |
| 202 | .name = "h4", |
| 203 | }; |
| 204 | |
| 205 | static struct omap_dss_device h4_lcd_device = { |
| 206 | .name = "lcd", |
| 207 | .driver_name = "generic_dpi_panel", |
| 208 | .type = OMAP_DISPLAY_TYPE_DPI, |
| 209 | .phy.dpi.data_lines = 16, |
| 210 | .data = &h4_panel_data, |
| 211 | }; |
| 212 | |
| 213 | static struct omap_dss_device *h4_dss_devices[] = { |
Tony Lindgren | 9b6553c | 2006-04-02 17:46:30 +0100 | [diff] [blame] | 214 | &h4_lcd_device, |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 215 | }; |
| 216 | |
Tomi Valkeinen | cbf1455 | 2011-05-09 10:12:42 +0300 | [diff] [blame] | 217 | static struct omap_dss_board_info h4_dss_data = { |
| 218 | .num_devices = ARRAY_SIZE(h4_dss_devices), |
| 219 | .devices = h4_dss_devices, |
| 220 | .default_device = &h4_lcd_device, |
| 221 | }; |
| 222 | |
Paul Walmsley | 4459598 | 2008-03-18 10:04:51 +0200 | [diff] [blame] | 223 | /* 2420 Sysboot setup (2430 is different) */ |
| 224 | static u32 get_sysboot_value(void) |
| 225 | { |
| 226 | return (omap_ctrl_readl(OMAP24XX_CONTROL_STATUS) & |
| 227 | (OMAP2_SYSBOOT_5_MASK | OMAP2_SYSBOOT_4_MASK | |
| 228 | OMAP2_SYSBOOT_3_MASK | OMAP2_SYSBOOT_2_MASK | |
| 229 | OMAP2_SYSBOOT_1_MASK | OMAP2_SYSBOOT_0_MASK)); |
| 230 | } |
| 231 | |
| 232 | /* H4-2420's always used muxed mode, H4-2422's always use non-muxed |
| 233 | * |
| 234 | * Note: OMAP-GIT doesn't correctly do is_cpu_omap2422 and is_cpu_omap2423 |
| 235 | * correctly. The macro needs to look at production_id not just hawkeye. |
| 236 | */ |
| 237 | static u32 is_gpmc_muxed(void) |
| 238 | { |
| 239 | u32 mux; |
| 240 | mux = get_sysboot_value(); |
| 241 | if ((mux & 0xF) == 0xd) |
| 242 | return 1; /* NAND config (could be either) */ |
| 243 | if (mux & 0x2) /* if mux'ed */ |
| 244 | return 1; |
| 245 | else |
| 246 | return 0; |
| 247 | } |
| 248 | |
Paul Bolle | 5b6513d | 2013-03-08 13:06:37 +0100 | [diff] [blame] | 249 | #if IS_ENABLED(CONFIG_SMC91X) |
Jon Hunter | 86c3596 | 2012-11-13 16:02:19 -0600 | [diff] [blame] | 250 | |
| 251 | static struct omap_smc91x_platform_data board_smc91x_data = { |
| 252 | .cs = 1, |
| 253 | .gpio_irq = 92, |
| 254 | .flags = GPMC_TIMINGS_SMC91C96 | IORESOURCE_IRQ_LOWLEVEL, |
| 255 | }; |
| 256 | |
| 257 | static void __init board_smc91x_init(void) |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 258 | { |
Paul Walmsley | 4459598 | 2008-03-18 10:04:51 +0200 | [diff] [blame] | 259 | if (is_gpmc_muxed()) |
Jon Hunter | 86c3596 | 2012-11-13 16:02:19 -0600 | [diff] [blame] | 260 | board_smc91x_data.flags |= GPMC_MUX_ADD_DATA; |
Paul Walmsley | 4459598 | 2008-03-18 10:04:51 +0200 | [diff] [blame] | 261 | |
Jon Hunter | 86c3596 | 2012-11-13 16:02:19 -0600 | [diff] [blame] | 262 | omap_mux_init_gpio(board_smc91x_data.gpio_irq, OMAP_PIN_INPUT); |
| 263 | gpmc_smc91x_init(&board_smc91x_data); |
Paul Walmsley | 4459598 | 2008-03-18 10:04:51 +0200 | [diff] [blame] | 264 | } |
| 265 | |
Jon Hunter | 86c3596 | 2012-11-13 16:02:19 -0600 | [diff] [blame] | 266 | #else |
| 267 | |
| 268 | static inline void board_smc91x_init(void) |
| 269 | { |
| 270 | } |
| 271 | |
| 272 | #endif |
| 273 | |
Paul Walmsley | 4459598 | 2008-03-18 10:04:51 +0200 | [diff] [blame] | 274 | static void __init h4_init_flash(void) |
| 275 | { |
| 276 | unsigned long base; |
| 277 | |
| 278 | if (gpmc_cs_request(H4_FLASH_CS, SZ_64M, &base) < 0) { |
| 279 | printk("Can't request GPMC CS for flash\n"); |
| 280 | return; |
| 281 | } |
| 282 | h4_flash_resource.start = base; |
| 283 | h4_flash_resource.end = base + SZ_64M - 1; |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 284 | } |
| 285 | |
David Brownell | 6a769ed | 2008-12-10 17:36:33 -0800 | [diff] [blame] | 286 | static struct at24_platform_data m24c01 = { |
| 287 | .byte_len = SZ_1K / 8, |
| 288 | .page_size = 16, |
| 289 | }; |
| 290 | |
Jean Delvare | 9df013b | 2008-10-14 17:30:02 +0200 | [diff] [blame] | 291 | static struct i2c_board_info __initdata h4_i2c_board_info[] = { |
| 292 | { |
| 293 | I2C_BOARD_INFO("isp1301_omap", 0x2d), |
Jean Delvare | 9df013b | 2008-10-14 17:30:02 +0200 | [diff] [blame] | 294 | }, |
David Brownell | 6a769ed | 2008-12-10 17:36:33 -0800 | [diff] [blame] | 295 | { /* EEPROM on mainboard */ |
| 296 | I2C_BOARD_INFO("24c01", 0x52), |
| 297 | .platform_data = &m24c01, |
| 298 | }, |
| 299 | { /* EEPROM on cpu card */ |
| 300 | I2C_BOARD_INFO("24c01", 0x57), |
| 301 | .platform_data = &m24c01, |
| 302 | }, |
Jean Delvare | 9df013b | 2008-10-14 17:30:02 +0200 | [diff] [blame] | 303 | }; |
| 304 | |
Tony Lindgren | 23275d4 | 2010-07-05 16:31:37 +0300 | [diff] [blame] | 305 | #ifdef CONFIG_OMAP_MUX |
| 306 | static struct omap_board_mux board_mux[] __initdata = { |
| 307 | { .reg_offset = OMAP_MUX_TERMINATOR }, |
| 308 | }; |
Tony Lindgren | 23275d4 | 2010-07-05 16:31:37 +0300 | [diff] [blame] | 309 | #endif |
| 310 | |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 311 | static void __init omap_h4_init(void) |
| 312 | { |
Tony Lindgren | 23275d4 | 2010-07-05 16:31:37 +0300 | [diff] [blame] | 313 | omap2420_mux_init(board_mux, OMAP_PACKAGE_ZAF); |
| 314 | |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 315 | /* |
| 316 | * Make sure the serial ports are muxed on at this point. |
| 317 | * You have to mux them off in device drivers later on |
| 318 | * if not needed. |
| 319 | */ |
Tony Lindgren | 9b6553c | 2006-04-02 17:46:30 +0100 | [diff] [blame] | 320 | |
Tony Lindgren | 41eb2d8 | 2011-10-06 15:43:00 -0700 | [diff] [blame] | 321 | board_mkp_init(); |
Tarun Kanti DebBarma | 46a0a54 | 2012-03-29 08:41:01 -0700 | [diff] [blame] | 322 | h4_i2c_board_info[0].irq = gpio_to_irq(125); |
Jean Delvare | 9df013b | 2008-10-14 17:30:02 +0200 | [diff] [blame] | 323 | i2c_register_board_info(1, h4_i2c_board_info, |
| 324 | ARRAY_SIZE(h4_i2c_board_info)); |
| 325 | |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 326 | platform_add_devices(h4_devices, ARRAY_SIZE(h4_devices)); |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 327 | omap_serial_init(); |
Tony Lindgren | a4ca9db | 2011-08-22 23:57:23 -0700 | [diff] [blame] | 328 | omap_sdrc_init(NULL, NULL); |
Tony Lindgren | 4292435 | 2011-03-10 09:51:29 -0800 | [diff] [blame] | 329 | h4_init_flash(); |
Jon Hunter | 86c3596 | 2012-11-13 16:02:19 -0600 | [diff] [blame] | 330 | board_smc91x_init(); |
Tomi Valkeinen | cbf1455 | 2011-05-09 10:12:42 +0300 | [diff] [blame] | 331 | |
| 332 | omap_display_init(&h4_dss_data); |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 333 | } |
| 334 | |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 335 | MACHINE_START(OMAP_H4, "OMAP2420 H4 board") |
| 336 | /* Maintainer: Paul Mundt <paul.mundt@nokia.com> */ |
Nicolas Pitre | 5e52b43 | 2011-07-05 22:38:15 -0400 | [diff] [blame] | 337 | .atag_offset = 0x100, |
Russell King | 71ee7da | 2010-05-23 10:18:16 +0100 | [diff] [blame] | 338 | .reserve = omap_reserve, |
Tony Lindgren | e990a40 | 2011-09-26 14:52:55 -0700 | [diff] [blame] | 339 | .map_io = omap242x_map_io, |
Tony Lindgren | 8f5b5a4 | 2011-08-22 23:57:24 -0700 | [diff] [blame] | 340 | .init_early = omap2420_init_early, |
Tony Lindgren | be73246 | 2011-09-26 15:25:22 -0700 | [diff] [blame] | 341 | .init_irq = omap2_init_irq, |
Marc Zyngier | 6b2f55d | 2011-09-06 10:23:45 +0100 | [diff] [blame] | 342 | .handle_irq = omap2_intc_handle_irq, |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 343 | .init_machine = omap_h4_init, |
Shawn Guo | bbd707a | 2012-04-26 16:06:50 +0800 | [diff] [blame] | 344 | .init_late = omap2420_init_late, |
Stephen Warren | 6bb27d7 | 2012-11-08 12:40:59 -0700 | [diff] [blame] | 345 | .init_time = omap2_sync32k_timer_init, |
Paul Walmsley | 187e3e0 | 2012-10-29 20:56:12 -0600 | [diff] [blame] | 346 | .restart = omap2xxx_restart, |
Tony Lindgren | 1dbae81 | 2005-11-10 14:26:51 +0000 | [diff] [blame] | 347 | MACHINE_END |