Nishant Kamat | 4926565 | 2008-10-10 11:28:23 +0300 | [diff] [blame] | 1 | /* |
| 2 | * linux/arch/arm/mach-omap2/board-ldp.c |
| 3 | * |
| 4 | * Copyright (C) 2008 Texas Instruments Inc. |
| 5 | * Nishant Kamat <nskamat@ti.com> |
| 6 | * |
| 7 | * Modified from mach-omap2/board-3430sdp.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 | */ |
| 13 | |
| 14 | #include <linux/kernel.h> |
| 15 | #include <linux/init.h> |
| 16 | #include <linux/platform_device.h> |
| 17 | #include <linux/delay.h> |
| 18 | #include <linux/input.h> |
Tony Lindgren | 4a899d5 | 2009-05-28 14:04:00 -0700 | [diff] [blame] | 19 | #include <linux/gpio_keys.h> |
Nishant Kamat | 4926565 | 2008-10-10 11:28:23 +0300 | [diff] [blame] | 20 | #include <linux/workqueue.h> |
| 21 | #include <linux/err.h> |
| 22 | #include <linux/clk.h> |
| 23 | #include <linux/spi/spi.h> |
| 24 | #include <linux/spi/ads7846.h> |
Tony Lindgren | 4a899d5 | 2009-05-28 14:04:00 -0700 | [diff] [blame] | 25 | #include <linux/regulator/machine.h> |
Tony Lindgren | 90c62bf | 2008-12-10 17:37:17 -0800 | [diff] [blame] | 26 | #include <linux/i2c/twl4030.h> |
Russell King | 9973022 | 2009-03-25 10:21:35 +0000 | [diff] [blame] | 27 | #include <linux/io.h> |
Steve Glendinning | 1c0e147 | 2009-01-23 17:09:13 +0000 | [diff] [blame] | 28 | #include <linux/smsc911x.h> |
Nishant Kamat | 4926565 | 2008-10-10 11:28:23 +0300 | [diff] [blame] | 29 | |
| 30 | #include <mach/hardware.h> |
| 31 | #include <asm/mach-types.h> |
| 32 | #include <asm/mach/arch.h> |
| 33 | #include <asm/mach/map.h> |
| 34 | |
Nishant Kamat | 4926565 | 2008-10-10 11:28:23 +0300 | [diff] [blame] | 35 | #include <mach/mcspi.h> |
| 36 | #include <mach/gpio.h> |
| 37 | #include <mach/board.h> |
| 38 | #include <mach/common.h> |
| 39 | #include <mach/gpmc.h> |
| 40 | |
Nishant Kamat | 4926565 | 2008-10-10 11:28:23 +0300 | [diff] [blame] | 41 | #include <asm/delay.h> |
| 42 | #include <mach/control.h> |
Felipe Balbi | 18cb7ac | 2009-03-23 18:34:06 -0700 | [diff] [blame] | 43 | #include <mach/usb.h> |
Tony Lindgren | 4a899d5 | 2009-05-28 14:04:00 -0700 | [diff] [blame] | 44 | #include <mach/keypad.h> |
Nishant Kamat | 4926565 | 2008-10-10 11:28:23 +0300 | [diff] [blame] | 45 | |
Tony Lindgren | 90c62bf | 2008-12-10 17:37:17 -0800 | [diff] [blame] | 46 | #include "mmc-twl4030.h" |
| 47 | |
Steve Glendinning | 1c0e147 | 2009-01-23 17:09:13 +0000 | [diff] [blame] | 48 | #define LDP_SMSC911X_CS 1 |
| 49 | #define LDP_SMSC911X_GPIO 152 |
Tony Lindgren | ec7558a | 2009-03-23 18:07:37 -0700 | [diff] [blame] | 50 | #define DEBUG_BASE 0x08000000 |
| 51 | #define LDP_ETHR_START DEBUG_BASE |
Stanley.Miao | b1c056d | 2008-12-10 17:36:53 -0800 | [diff] [blame] | 52 | |
Steve Glendinning | 1c0e147 | 2009-01-23 17:09:13 +0000 | [diff] [blame] | 53 | static struct resource ldp_smsc911x_resources[] = { |
Stanley.Miao | b1c056d | 2008-12-10 17:36:53 -0800 | [diff] [blame] | 54 | [0] = { |
Tony Lindgren | ec7558a | 2009-03-23 18:07:37 -0700 | [diff] [blame] | 55 | .start = LDP_ETHR_START, |
| 56 | .end = LDP_ETHR_START + SZ_4K, |
Stanley.Miao | b1c056d | 2008-12-10 17:36:53 -0800 | [diff] [blame] | 57 | .flags = IORESOURCE_MEM, |
| 58 | }, |
| 59 | [1] = { |
| 60 | .start = 0, |
| 61 | .end = 0, |
| 62 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL, |
| 63 | }, |
| 64 | }; |
| 65 | |
Steve Glendinning | 1c0e147 | 2009-01-23 17:09:13 +0000 | [diff] [blame] | 66 | static struct smsc911x_platform_config ldp_smsc911x_config = { |
| 67 | .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, |
| 68 | .irq_type = SMSC911X_IRQ_TYPE_OPEN_DRAIN, |
| 69 | .flags = SMSC911X_USE_32BIT, |
| 70 | .phy_interface = PHY_INTERFACE_MODE_MII, |
| 71 | }; |
| 72 | |
| 73 | static struct platform_device ldp_smsc911x_device = { |
| 74 | .name = "smsc911x", |
Stanley.Miao | b1c056d | 2008-12-10 17:36:53 -0800 | [diff] [blame] | 75 | .id = -1, |
Steve Glendinning | 1c0e147 | 2009-01-23 17:09:13 +0000 | [diff] [blame] | 76 | .num_resources = ARRAY_SIZE(ldp_smsc911x_resources), |
| 77 | .resource = ldp_smsc911x_resources, |
| 78 | .dev = { |
| 79 | .platform_data = &ldp_smsc911x_config, |
| 80 | }, |
Stanley.Miao | b1c056d | 2008-12-10 17:36:53 -0800 | [diff] [blame] | 81 | }; |
| 82 | |
Tony Lindgren | 4a899d5 | 2009-05-28 14:04:00 -0700 | [diff] [blame] | 83 | static int ldp_twl4030_keymap[] = { |
| 84 | KEY(0, 0, KEY_1), |
| 85 | KEY(1, 0, KEY_2), |
| 86 | KEY(2, 0, KEY_3), |
| 87 | KEY(0, 1, KEY_4), |
| 88 | KEY(1, 1, KEY_5), |
| 89 | KEY(2, 1, KEY_6), |
| 90 | KEY(3, 1, KEY_F5), |
| 91 | KEY(0, 2, KEY_7), |
| 92 | KEY(1, 2, KEY_8), |
| 93 | KEY(2, 2, KEY_9), |
| 94 | KEY(3, 2, KEY_F6), |
| 95 | KEY(0, 3, KEY_F7), |
| 96 | KEY(1, 3, KEY_0), |
| 97 | KEY(2, 3, KEY_F8), |
| 98 | PERSISTENT_KEY(4, 5), |
| 99 | KEY(4, 4, KEY_VOLUMEUP), |
| 100 | KEY(5, 5, KEY_VOLUMEDOWN), |
| 101 | 0 |
| 102 | }; |
| 103 | |
| 104 | static struct twl4030_keypad_data ldp_kp_twl4030_data = { |
| 105 | .rows = 6, |
| 106 | .cols = 6, |
| 107 | .keymap = ldp_twl4030_keymap, |
| 108 | .keymapsize = ARRAY_SIZE(ldp_twl4030_keymap), |
| 109 | .rep = 1, |
| 110 | }; |
| 111 | |
| 112 | static struct gpio_keys_button ldp_gpio_keys_buttons[] = { |
| 113 | [0] = { |
| 114 | .code = KEY_ENTER, |
| 115 | .gpio = 101, |
| 116 | .desc = "enter sw", |
| 117 | .active_low = 1, |
| 118 | .debounce_interval = 30, |
| 119 | }, |
| 120 | [1] = { |
| 121 | .code = KEY_F1, |
| 122 | .gpio = 102, |
| 123 | .desc = "func 1", |
| 124 | .active_low = 1, |
| 125 | .debounce_interval = 30, |
| 126 | }, |
| 127 | [2] = { |
| 128 | .code = KEY_F2, |
| 129 | .gpio = 103, |
| 130 | .desc = "func 2", |
| 131 | .active_low = 1, |
| 132 | .debounce_interval = 30, |
| 133 | }, |
| 134 | [3] = { |
| 135 | .code = KEY_F3, |
| 136 | .gpio = 104, |
| 137 | .desc = "func 3", |
| 138 | .active_low = 1, |
| 139 | .debounce_interval = 30, |
| 140 | }, |
| 141 | [4] = { |
| 142 | .code = KEY_F4, |
| 143 | .gpio = 105, |
| 144 | .desc = "func 4", |
| 145 | .active_low = 1, |
| 146 | .debounce_interval = 30, |
| 147 | }, |
| 148 | [5] = { |
| 149 | .code = KEY_LEFT, |
| 150 | .gpio = 106, |
| 151 | .desc = "left sw", |
| 152 | .active_low = 1, |
| 153 | .debounce_interval = 30, |
| 154 | }, |
| 155 | [6] = { |
| 156 | .code = KEY_RIGHT, |
| 157 | .gpio = 107, |
| 158 | .desc = "right sw", |
| 159 | .active_low = 1, |
| 160 | .debounce_interval = 30, |
| 161 | }, |
| 162 | [7] = { |
| 163 | .code = KEY_UP, |
| 164 | .gpio = 108, |
| 165 | .desc = "up sw", |
| 166 | .active_low = 1, |
| 167 | .debounce_interval = 30, |
| 168 | }, |
| 169 | [8] = { |
| 170 | .code = KEY_DOWN, |
| 171 | .gpio = 109, |
| 172 | .desc = "down sw", |
| 173 | .active_low = 1, |
| 174 | .debounce_interval = 30, |
| 175 | }, |
| 176 | }; |
| 177 | |
| 178 | static struct gpio_keys_platform_data ldp_gpio_keys = { |
| 179 | .buttons = ldp_gpio_keys_buttons, |
| 180 | .nbuttons = ARRAY_SIZE(ldp_gpio_keys_buttons), |
| 181 | .rep = 1, |
| 182 | }; |
| 183 | |
| 184 | static struct platform_device ldp_gpio_keys_device = { |
| 185 | .name = "gpio-keys", |
| 186 | .id = -1, |
| 187 | .dev = { |
| 188 | .platform_data = &ldp_gpio_keys, |
| 189 | }, |
| 190 | }; |
| 191 | |
| 192 | static int ts_gpio; |
| 193 | |
| 194 | /** |
| 195 | * @brief ads7846_dev_init : Requests & sets GPIO line for pen-irq |
| 196 | * |
| 197 | * @return - void. If request gpio fails then Flag KERN_ERR. |
| 198 | */ |
| 199 | static void ads7846_dev_init(void) |
| 200 | { |
| 201 | if (gpio_request(ts_gpio, "ads7846 irq") < 0) { |
| 202 | printk(KERN_ERR "can't get ads746 pen down GPIO\n"); |
| 203 | return; |
| 204 | } |
| 205 | |
| 206 | gpio_direction_input(ts_gpio); |
| 207 | omap_set_gpio_debounce(ts_gpio, 1); |
| 208 | omap_set_gpio_debounce_time(ts_gpio, 0xa); |
| 209 | } |
| 210 | |
| 211 | static int ads7846_get_pendown_state(void) |
| 212 | { |
| 213 | return !gpio_get_value(ts_gpio); |
| 214 | } |
| 215 | |
| 216 | static struct ads7846_platform_data tsc2046_config __initdata = { |
| 217 | .get_pendown_state = ads7846_get_pendown_state, |
| 218 | .keep_vref_on = 1, |
| 219 | }; |
| 220 | |
| 221 | static struct omap2_mcspi_device_config tsc2046_mcspi_config = { |
| 222 | .turbo_mode = 0, |
| 223 | .single_channel = 1, /* 0: slave, 1: master */ |
| 224 | }; |
| 225 | |
| 226 | static struct spi_board_info ldp_spi_board_info[] __initdata = { |
| 227 | [0] = { |
| 228 | /* |
| 229 | * TSC2046 operates at a max freqency of 2MHz, so |
| 230 | * operate slightly below at 1.5MHz |
| 231 | */ |
| 232 | .modalias = "ads7846", |
| 233 | .bus_num = 1, |
| 234 | .chip_select = 0, |
| 235 | .max_speed_hz = 1500000, |
| 236 | .controller_data = &tsc2046_mcspi_config, |
| 237 | .irq = 0, |
| 238 | .platform_data = &tsc2046_config, |
| 239 | }, |
| 240 | }; |
| 241 | |
Steve Glendinning | 1c0e147 | 2009-01-23 17:09:13 +0000 | [diff] [blame] | 242 | static inline void __init ldp_init_smsc911x(void) |
Stanley.Miao | b1c056d | 2008-12-10 17:36:53 -0800 | [diff] [blame] | 243 | { |
| 244 | int eth_cs; |
| 245 | unsigned long cs_mem_base; |
| 246 | int eth_gpio = 0; |
| 247 | |
Steve Glendinning | 1c0e147 | 2009-01-23 17:09:13 +0000 | [diff] [blame] | 248 | eth_cs = LDP_SMSC911X_CS; |
Stanley.Miao | b1c056d | 2008-12-10 17:36:53 -0800 | [diff] [blame] | 249 | |
| 250 | if (gpmc_cs_request(eth_cs, SZ_16M, &cs_mem_base) < 0) { |
Steve Glendinning | 1c0e147 | 2009-01-23 17:09:13 +0000 | [diff] [blame] | 251 | printk(KERN_ERR "Failed to request GPMC mem for smsc911x\n"); |
Stanley.Miao | b1c056d | 2008-12-10 17:36:53 -0800 | [diff] [blame] | 252 | return; |
| 253 | } |
| 254 | |
Steve Glendinning | 1c0e147 | 2009-01-23 17:09:13 +0000 | [diff] [blame] | 255 | ldp_smsc911x_resources[0].start = cs_mem_base + 0x0; |
| 256 | ldp_smsc911x_resources[0].end = cs_mem_base + 0xff; |
Stanley.Miao | b1c056d | 2008-12-10 17:36:53 -0800 | [diff] [blame] | 257 | udelay(100); |
| 258 | |
Steve Glendinning | 1c0e147 | 2009-01-23 17:09:13 +0000 | [diff] [blame] | 259 | eth_gpio = LDP_SMSC911X_GPIO; |
Stanley.Miao | b1c056d | 2008-12-10 17:36:53 -0800 | [diff] [blame] | 260 | |
Steve Glendinning | 1c0e147 | 2009-01-23 17:09:13 +0000 | [diff] [blame] | 261 | ldp_smsc911x_resources[1].start = OMAP_GPIO_IRQ(eth_gpio); |
Stanley.Miao | b1c056d | 2008-12-10 17:36:53 -0800 | [diff] [blame] | 262 | |
Steve Glendinning | 1c0e147 | 2009-01-23 17:09:13 +0000 | [diff] [blame] | 263 | if (gpio_request(eth_gpio, "smsc911x irq") < 0) { |
| 264 | printk(KERN_ERR "Failed to request GPIO%d for smsc911x IRQ\n", |
Stanley.Miao | b1c056d | 2008-12-10 17:36:53 -0800 | [diff] [blame] | 265 | eth_gpio); |
| 266 | return; |
| 267 | } |
| 268 | gpio_direction_input(eth_gpio); |
| 269 | } |
| 270 | |
Imre Deak | 49adf46 | 2009-05-28 14:04:00 -0700 | [diff] [blame] | 271 | static struct platform_device ldp_lcd_device = { |
| 272 | .name = "ldp_lcd", |
| 273 | .id = -1, |
| 274 | }; |
| 275 | |
| 276 | static struct omap_lcd_config ldp_lcd_config __initdata = { |
| 277 | .ctrl_name = "internal", |
| 278 | }; |
| 279 | |
Nishant Kamat | 4926565 | 2008-10-10 11:28:23 +0300 | [diff] [blame] | 280 | static struct omap_board_config_kernel ldp_config[] __initdata = { |
Imre Deak | 49adf46 | 2009-05-28 14:04:00 -0700 | [diff] [blame] | 281 | { OMAP_TAG_LCD, &ldp_lcd_config }, |
Nishant Kamat | 4926565 | 2008-10-10 11:28:23 +0300 | [diff] [blame] | 282 | }; |
| 283 | |
Paul Walmsley | b3c6df3 | 2009-09-03 20:14:02 +0300 | [diff] [blame^] | 284 | static void __init omap_ldp_init_irq(void) |
| 285 | { |
| 286 | omap_board_config = ldp_config; |
| 287 | omap_board_config_size = ARRAY_SIZE(ldp_config); |
| 288 | omap2_init_common_hw(NULL, NULL); |
| 289 | omap_init_irq(); |
| 290 | omap_gpio_init(); |
| 291 | ldp_init_smsc911x(); |
| 292 | } |
| 293 | |
Tony Lindgren | 4a899d5 | 2009-05-28 14:04:00 -0700 | [diff] [blame] | 294 | static struct twl4030_usb_data ldp_usb_data = { |
| 295 | .usb_mode = T2_USB_MODE_ULPI, |
| 296 | }; |
| 297 | |
Tony Lindgren | 90c62bf | 2008-12-10 17:37:17 -0800 | [diff] [blame] | 298 | static struct twl4030_gpio_platform_data ldp_gpio_data = { |
| 299 | .gpio_base = OMAP_MAX_GPIO_LINES, |
| 300 | .irq_base = TWL4030_GPIO_IRQ_BASE, |
| 301 | .irq_end = TWL4030_GPIO_IRQ_END, |
| 302 | }; |
| 303 | |
Tony Lindgren | 4a899d5 | 2009-05-28 14:04:00 -0700 | [diff] [blame] | 304 | static struct twl4030_madc_platform_data ldp_madc_data = { |
| 305 | .irq_line = 1, |
| 306 | }; |
| 307 | |
| 308 | static struct regulator_consumer_supply ldp_vmmc1_supply = { |
| 309 | .supply = "vmmc", |
| 310 | }; |
| 311 | |
| 312 | /* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */ |
| 313 | static struct regulator_init_data ldp_vmmc1 = { |
| 314 | .constraints = { |
| 315 | .min_uV = 1850000, |
| 316 | .max_uV = 3150000, |
| 317 | .valid_modes_mask = REGULATOR_MODE_NORMAL |
| 318 | | REGULATOR_MODE_STANDBY, |
| 319 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
| 320 | | REGULATOR_CHANGE_MODE |
| 321 | | REGULATOR_CHANGE_STATUS, |
| 322 | }, |
| 323 | .num_consumer_supplies = 1, |
| 324 | .consumer_supplies = &ldp_vmmc1_supply, |
| 325 | }; |
| 326 | |
Tony Lindgren | 90c62bf | 2008-12-10 17:37:17 -0800 | [diff] [blame] | 327 | static struct twl4030_platform_data ldp_twldata = { |
| 328 | .irq_base = TWL4030_IRQ_BASE, |
| 329 | .irq_end = TWL4030_IRQ_END, |
| 330 | |
| 331 | /* platform_data for children goes here */ |
Tony Lindgren | 4a899d5 | 2009-05-28 14:04:00 -0700 | [diff] [blame] | 332 | .madc = &ldp_madc_data, |
| 333 | .usb = &ldp_usb_data, |
| 334 | .vmmc1 = &ldp_vmmc1, |
Tony Lindgren | 90c62bf | 2008-12-10 17:37:17 -0800 | [diff] [blame] | 335 | .gpio = &ldp_gpio_data, |
Tony Lindgren | 4a899d5 | 2009-05-28 14:04:00 -0700 | [diff] [blame] | 336 | .keypad = &ldp_kp_twl4030_data, |
Tony Lindgren | 90c62bf | 2008-12-10 17:37:17 -0800 | [diff] [blame] | 337 | }; |
| 338 | |
| 339 | static struct i2c_board_info __initdata ldp_i2c_boardinfo[] = { |
| 340 | { |
| 341 | I2C_BOARD_INFO("twl4030", 0x48), |
| 342 | .flags = I2C_CLIENT_WAKE, |
| 343 | .irq = INT_34XX_SYS_NIRQ, |
| 344 | .platform_data = &ldp_twldata, |
| 345 | }, |
| 346 | }; |
| 347 | |
Nishant Kamat | 4926565 | 2008-10-10 11:28:23 +0300 | [diff] [blame] | 348 | static int __init omap_i2c_init(void) |
| 349 | { |
Tony Lindgren | 90c62bf | 2008-12-10 17:37:17 -0800 | [diff] [blame] | 350 | omap_register_i2c_bus(1, 2600, ldp_i2c_boardinfo, |
| 351 | ARRAY_SIZE(ldp_i2c_boardinfo)); |
Nishant Kamat | 4926565 | 2008-10-10 11:28:23 +0300 | [diff] [blame] | 352 | omap_register_i2c_bus(2, 400, NULL, 0); |
| 353 | omap_register_i2c_bus(3, 400, NULL, 0); |
| 354 | return 0; |
| 355 | } |
| 356 | |
Tony Lindgren | 90c62bf | 2008-12-10 17:37:17 -0800 | [diff] [blame] | 357 | static struct twl4030_hsmmc_info mmc[] __initdata = { |
| 358 | { |
| 359 | .mmc = 1, |
| 360 | .wires = 4, |
| 361 | .gpio_cd = -EINVAL, |
| 362 | .gpio_wp = -EINVAL, |
| 363 | }, |
| 364 | {} /* Terminator */ |
| 365 | }; |
| 366 | |
Imre Deak | 49adf46 | 2009-05-28 14:04:00 -0700 | [diff] [blame] | 367 | static struct platform_device *ldp_devices[] __initdata = { |
| 368 | &ldp_smsc911x_device, |
| 369 | &ldp_lcd_device, |
Tony Lindgren | 4a899d5 | 2009-05-28 14:04:00 -0700 | [diff] [blame] | 370 | &ldp_gpio_keys_device, |
Imre Deak | 49adf46 | 2009-05-28 14:04:00 -0700 | [diff] [blame] | 371 | }; |
| 372 | |
Nishant Kamat | 4926565 | 2008-10-10 11:28:23 +0300 | [diff] [blame] | 373 | static void __init omap_ldp_init(void) |
| 374 | { |
| 375 | omap_i2c_init(); |
Stanley.Miao | b1c056d | 2008-12-10 17:36:53 -0800 | [diff] [blame] | 376 | platform_add_devices(ldp_devices, ARRAY_SIZE(ldp_devices)); |
Tony Lindgren | 4a899d5 | 2009-05-28 14:04:00 -0700 | [diff] [blame] | 377 | ts_gpio = 54; |
| 378 | ldp_spi_board_info[0].irq = gpio_to_irq(ts_gpio); |
| 379 | spi_register_board_info(ldp_spi_board_info, |
| 380 | ARRAY_SIZE(ldp_spi_board_info)); |
| 381 | ads7846_dev_init(); |
Nishant Kamat | 4926565 | 2008-10-10 11:28:23 +0300 | [diff] [blame] | 382 | omap_serial_init(); |
Felipe Balbi | 18cb7ac | 2009-03-23 18:34:06 -0700 | [diff] [blame] | 383 | usb_musb_init(); |
Tony Lindgren | 4a899d5 | 2009-05-28 14:04:00 -0700 | [diff] [blame] | 384 | |
| 385 | twl4030_mmc_init(mmc); |
| 386 | /* link regulators to MMC adapters */ |
| 387 | ldp_vmmc1_supply.dev = mmc[0].dev; |
Nishant Kamat | 4926565 | 2008-10-10 11:28:23 +0300 | [diff] [blame] | 388 | } |
| 389 | |
| 390 | static void __init omap_ldp_map_io(void) |
| 391 | { |
| 392 | omap2_set_globals_343x(); |
| 393 | omap2_map_common_io(); |
| 394 | } |
| 395 | |
| 396 | MACHINE_START(OMAP_LDP, "OMAP LDP board") |
| 397 | .phys_io = 0x48000000, |
| 398 | .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc, |
| 399 | .boot_params = 0x80000100, |
| 400 | .map_io = omap_ldp_map_io, |
| 401 | .init_irq = omap_ldp_init_irq, |
| 402 | .init_machine = omap_ldp_init, |
| 403 | .timer = &omap_timer, |
| 404 | MACHINE_END |