Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 1 | /* |
| 2 | * linux/arch/arm/mach-omap1/board-fsample.c |
| 3 | * |
| 4 | * Modified from board-perseus2.c |
| 5 | * |
| 6 | * Original OMAP730 support by Jean Pihet <j-pihet@ti.com> |
| 7 | * Updated for 2.6 by Kevin Hilman <kjh@hilman.org> |
| 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> |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 14 | #include <linux/kernel.h> |
| 15 | #include <linux/init.h> |
| 16 | #include <linux/platform_device.h> |
| 17 | #include <linux/delay.h> |
| 18 | #include <linux/mtd/mtd.h> |
| 19 | #include <linux/mtd/nand.h> |
| 20 | #include <linux/mtd/partitions.h> |
Ladislav Michl | 561b036 | 2010-02-15 10:03:32 -0800 | [diff] [blame] | 21 | #include <linux/mtd/physmap.h> |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 22 | #include <linux/input.h> |
Ladislav Michl | 3bc4801 | 2009-12-11 16:16:33 -0800 | [diff] [blame] | 23 | #include <linux/smc91x.h> |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 24 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 25 | #include <mach/hardware.h> |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 26 | #include <asm/mach-types.h> |
| 27 | #include <asm/mach/arch.h> |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 28 | #include <asm/mach/map.h> |
| 29 | |
Tony Lindgren | ce491cf | 2009-10-20 09:40:47 -0700 | [diff] [blame] | 30 | #include <plat/tc.h> |
Tony Lindgren | ce491cf | 2009-10-20 09:40:47 -0700 | [diff] [blame] | 31 | #include <plat/mux.h> |
Ladislav Michl | 561b036 | 2010-02-15 10:03:32 -0800 | [diff] [blame] | 32 | #include <plat/flash.h> |
Tony Lindgren | ce491cf | 2009-10-20 09:40:47 -0700 | [diff] [blame] | 33 | #include <plat/fpga.h> |
Tony Lindgren | ce491cf | 2009-10-20 09:40:47 -0700 | [diff] [blame] | 34 | #include <plat/keypad.h> |
| 35 | #include <plat/common.h> |
| 36 | #include <plat/board.h> |
Tony Lindgren | d9558b1 | 2009-03-23 18:07:32 -0700 | [diff] [blame] | 37 | |
| 38 | /* fsample is pretty close to p2-sample */ |
| 39 | |
| 40 | #define fsample_cpld_read(reg) __raw_readb(reg) |
| 41 | #define fsample_cpld_write(val, reg) __raw_writeb(val, reg) |
| 42 | |
| 43 | #define FSAMPLE_CPLD_BASE 0xE8100000 |
| 44 | #define FSAMPLE_CPLD_SIZE SZ_4K |
| 45 | #define FSAMPLE_CPLD_START 0x05080000 |
| 46 | |
| 47 | #define FSAMPLE_CPLD_REG_A (FSAMPLE_CPLD_BASE + 0x00) |
| 48 | #define FSAMPLE_CPLD_SWITCH (FSAMPLE_CPLD_BASE + 0x02) |
| 49 | #define FSAMPLE_CPLD_UART (FSAMPLE_CPLD_BASE + 0x02) |
| 50 | #define FSAMPLE_CPLD_REG_B (FSAMPLE_CPLD_BASE + 0x04) |
| 51 | #define FSAMPLE_CPLD_VERSION (FSAMPLE_CPLD_BASE + 0x06) |
| 52 | #define FSAMPLE_CPLD_SET_CLR (FSAMPLE_CPLD_BASE + 0x06) |
| 53 | |
| 54 | #define FSAMPLE_CPLD_BIT_BT_RESET 0 |
| 55 | #define FSAMPLE_CPLD_BIT_LCD_RESET 1 |
| 56 | #define FSAMPLE_CPLD_BIT_CAM_PWDN 2 |
| 57 | #define FSAMPLE_CPLD_BIT_CHARGER_ENABLE 3 |
| 58 | #define FSAMPLE_CPLD_BIT_SD_MMC_EN 4 |
| 59 | #define FSAMPLE_CPLD_BIT_aGPS_PWREN 5 |
| 60 | #define FSAMPLE_CPLD_BIT_BACKLIGHT 6 |
| 61 | #define FSAMPLE_CPLD_BIT_aGPS_EN_RESET 7 |
| 62 | #define FSAMPLE_CPLD_BIT_aGPS_SLEEPx_N 8 |
| 63 | #define FSAMPLE_CPLD_BIT_OTG_RESET 9 |
| 64 | |
| 65 | #define fsample_cpld_set(bit) \ |
| 66 | fsample_cpld_write((((bit) & 15) << 4) | 0x0f, FSAMPLE_CPLD_SET_CLR) |
| 67 | |
| 68 | #define fsample_cpld_clear(bit) \ |
| 69 | fsample_cpld_write(0xf0 | ((bit) & 15), FSAMPLE_CPLD_SET_CLR) |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 70 | |
Janusz Krzysztofik | da1f026 | 2010-12-20 21:09:22 +0000 | [diff] [blame] | 71 | static const unsigned int fsample_keymap[] = { |
| 72 | KEY(0, 0, KEY_UP), |
| 73 | KEY(1, 0, KEY_RIGHT), |
| 74 | KEY(2, 0, KEY_LEFT), |
| 75 | KEY(3, 0, KEY_DOWN), |
| 76 | KEY(4, 0, KEY_ENTER), |
| 77 | KEY(0, 1, KEY_F10), |
| 78 | KEY(1, 1, KEY_SEND), |
| 79 | KEY(2, 1, KEY_END), |
| 80 | KEY(3, 1, KEY_VOLUMEDOWN), |
| 81 | KEY(4, 1, KEY_VOLUMEUP), |
| 82 | KEY(5, 1, KEY_RECORD), |
| 83 | KEY(0, 2, KEY_F9), |
| 84 | KEY(1, 2, KEY_3), |
| 85 | KEY(2, 2, KEY_6), |
| 86 | KEY(3, 2, KEY_9), |
| 87 | KEY(4, 2, KEY_KPDOT), |
| 88 | KEY(0, 3, KEY_BACK), |
| 89 | KEY(1, 3, KEY_2), |
| 90 | KEY(2, 3, KEY_5), |
| 91 | KEY(3, 3, KEY_8), |
| 92 | KEY(4, 3, KEY_0), |
| 93 | KEY(5, 3, KEY_KPSLASH), |
| 94 | KEY(0, 4, KEY_HOME), |
| 95 | KEY(1, 4, KEY_1), |
| 96 | KEY(2, 4, KEY_4), |
| 97 | KEY(3, 4, KEY_7), |
| 98 | KEY(4, 4, KEY_KPASTERISK), |
| 99 | KEY(5, 4, KEY_POWER), |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 100 | }; |
| 101 | |
Ladislav Michl | 3bc4801 | 2009-12-11 16:16:33 -0800 | [diff] [blame] | 102 | static struct smc91x_platdata smc91x_info = { |
| 103 | .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT, |
| 104 | .leda = RPC_LED_100_10, |
| 105 | .ledb = RPC_LED_TX_RX, |
| 106 | }; |
| 107 | |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 108 | static struct resource smc91x_resources[] = { |
| 109 | [0] = { |
| 110 | .start = H2P2_DBG_FPGA_ETHR_START, /* Physical */ |
| 111 | .end = H2P2_DBG_FPGA_ETHR_START + 0xf, |
| 112 | .flags = IORESOURCE_MEM, |
| 113 | }, |
| 114 | [1] = { |
Alistair Buxton | 372b1c3 | 2009-09-18 04:09:39 +0100 | [diff] [blame] | 115 | .start = INT_7XX_MPU_EXT_NIRQ, |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 116 | .end = 0, |
Russell King | e7b3dc7 | 2008-01-14 22:30:10 +0000 | [diff] [blame] | 117 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE, |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 118 | }, |
| 119 | }; |
| 120 | |
Tony Lindgren | c2cdaff | 2010-12-07 16:26:55 -0800 | [diff] [blame] | 121 | static void __init fsample_init_smc91x(void) |
| 122 | { |
| 123 | fpga_write(1, H2P2_DBG_FPGA_LAN_RESET); |
| 124 | mdelay(50); |
| 125 | fpga_write(fpga_read(H2P2_DBG_FPGA_LAN_RESET) & ~1, |
| 126 | H2P2_DBG_FPGA_LAN_RESET); |
| 127 | mdelay(50); |
| 128 | } |
| 129 | |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 130 | static struct mtd_partition nor_partitions[] = { |
| 131 | /* bootloader (U-Boot, etc) in first sector */ |
| 132 | { |
| 133 | .name = "bootloader", |
| 134 | .offset = 0, |
| 135 | .size = SZ_128K, |
| 136 | .mask_flags = MTD_WRITEABLE, /* force read-only */ |
| 137 | }, |
| 138 | /* bootloader params in the next sector */ |
| 139 | { |
| 140 | .name = "params", |
| 141 | .offset = MTDPART_OFS_APPEND, |
| 142 | .size = SZ_128K, |
| 143 | .mask_flags = 0, |
| 144 | }, |
| 145 | /* kernel */ |
| 146 | { |
| 147 | .name = "kernel", |
| 148 | .offset = MTDPART_OFS_APPEND, |
| 149 | .size = SZ_2M, |
| 150 | .mask_flags = 0 |
| 151 | }, |
| 152 | /* rest of flash is a file system */ |
| 153 | { |
| 154 | .name = "rootfs", |
| 155 | .offset = MTDPART_OFS_APPEND, |
| 156 | .size = MTDPART_SIZ_FULL, |
| 157 | .mask_flags = 0 |
| 158 | }, |
| 159 | }; |
| 160 | |
Ladislav Michl | 561b036 | 2010-02-15 10:03:32 -0800 | [diff] [blame] | 161 | static struct physmap_flash_data nor_data = { |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 162 | .width = 2, |
Ladislav Michl | 561b036 | 2010-02-15 10:03:32 -0800 | [diff] [blame] | 163 | .set_vpp = omap1_set_vpp, |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 164 | .parts = nor_partitions, |
| 165 | .nr_parts = ARRAY_SIZE(nor_partitions), |
| 166 | }; |
| 167 | |
| 168 | static struct resource nor_resource = { |
| 169 | .start = OMAP_CS0_PHYS, |
| 170 | .end = OMAP_CS0_PHYS + SZ_32M - 1, |
| 171 | .flags = IORESOURCE_MEM, |
| 172 | }; |
| 173 | |
| 174 | static struct platform_device nor_device = { |
Ladislav Michl | 561b036 | 2010-02-15 10:03:32 -0800 | [diff] [blame] | 175 | .name = "physmap-flash", |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 176 | .id = 0, |
| 177 | .dev = { |
| 178 | .platform_data = &nor_data, |
| 179 | }, |
| 180 | .num_resources = 1, |
| 181 | .resource = &nor_resource, |
| 182 | }; |
| 183 | |
Ladislav Michl | 414f552 | 2009-12-11 16:16:33 -0800 | [diff] [blame] | 184 | static void nand_cmd_ctl(struct mtd_info *mtd, int cmd, unsigned int ctrl) |
| 185 | { |
| 186 | struct nand_chip *this = mtd->priv; |
| 187 | unsigned long mask; |
| 188 | |
| 189 | if (cmd == NAND_CMD_NONE) |
| 190 | return; |
| 191 | |
| 192 | mask = (ctrl & NAND_CLE) ? 0x02 : 0; |
| 193 | if (ctrl & NAND_ALE) |
| 194 | mask |= 0x04; |
| 195 | writeb(cmd, (unsigned long)this->IO_ADDR_W | mask); |
| 196 | } |
| 197 | |
| 198 | #define FSAMPLE_NAND_RB_GPIO_PIN 62 |
| 199 | |
| 200 | static int nand_dev_ready(struct mtd_info *mtd) |
| 201 | { |
| 202 | return gpio_get_value(FSAMPLE_NAND_RB_GPIO_PIN); |
| 203 | } |
| 204 | |
| 205 | static const char *part_probes[] = { "cmdlinepart", NULL }; |
| 206 | |
| 207 | static struct platform_nand_data nand_data = { |
| 208 | .chip = { |
| 209 | .nr_chips = 1, |
| 210 | .chip_offset = 0, |
| 211 | .options = NAND_SAMSUNG_LP_OPTIONS, |
| 212 | .part_probe_types = part_probes, |
| 213 | }, |
| 214 | .ctrl = { |
| 215 | .cmd_ctrl = nand_cmd_ctl, |
| 216 | .dev_ready = nand_dev_ready, |
| 217 | }, |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 218 | }; |
| 219 | |
| 220 | static struct resource nand_resource = { |
| 221 | .start = OMAP_CS3_PHYS, |
| 222 | .end = OMAP_CS3_PHYS + SZ_4K - 1, |
| 223 | .flags = IORESOURCE_MEM, |
| 224 | }; |
| 225 | |
| 226 | static struct platform_device nand_device = { |
Ladislav Michl | 414f552 | 2009-12-11 16:16:33 -0800 | [diff] [blame] | 227 | .name = "gen_nand", |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 228 | .id = 0, |
| 229 | .dev = { |
| 230 | .platform_data = &nand_data, |
| 231 | }, |
| 232 | .num_resources = 1, |
| 233 | .resource = &nand_resource, |
| 234 | }; |
| 235 | |
| 236 | static struct platform_device smc91x_device = { |
| 237 | .name = "smc91x", |
| 238 | .id = 0, |
Ladislav Michl | 3bc4801 | 2009-12-11 16:16:33 -0800 | [diff] [blame] | 239 | .dev = { |
| 240 | .platform_data = &smc91x_info, |
| 241 | }, |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 242 | .num_resources = ARRAY_SIZE(smc91x_resources), |
| 243 | .resource = smc91x_resources, |
| 244 | }; |
| 245 | |
| 246 | static struct resource kp_resources[] = { |
| 247 | [0] = { |
Alistair Buxton | 372b1c3 | 2009-09-18 04:09:39 +0100 | [diff] [blame] | 248 | .start = INT_7XX_MPUIO_KEYPAD, |
| 249 | .end = INT_7XX_MPUIO_KEYPAD, |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 250 | .flags = IORESOURCE_IRQ, |
| 251 | }, |
| 252 | }; |
| 253 | |
Janusz Krzysztofik | da1f026 | 2010-12-20 21:09:22 +0000 | [diff] [blame] | 254 | static const struct matrix_keymap_data fsample_keymap_data = { |
| 255 | .keymap = fsample_keymap, |
| 256 | .keymap_size = ARRAY_SIZE(fsample_keymap), |
| 257 | }; |
| 258 | |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 259 | static struct omap_kp_platform_data kp_data = { |
Komal Shah | 4d24607 | 2006-09-29 01:59:20 -0700 | [diff] [blame] | 260 | .rows = 8, |
| 261 | .cols = 8, |
Janusz Krzysztofik | da1f026 | 2010-12-20 21:09:22 +0000 | [diff] [blame] | 262 | .keymap_data = &fsample_keymap_data, |
Komal Shah | 4d24607 | 2006-09-29 01:59:20 -0700 | [diff] [blame] | 263 | .delay = 4, |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 264 | }; |
| 265 | |
| 266 | static struct platform_device kp_device = { |
| 267 | .name = "omap-keypad", |
| 268 | .id = -1, |
| 269 | .dev = { |
| 270 | .platform_data = &kp_data, |
| 271 | }, |
| 272 | .num_resources = ARRAY_SIZE(kp_resources), |
| 273 | .resource = kp_resources, |
| 274 | }; |
| 275 | |
| 276 | static struct platform_device lcd_device = { |
| 277 | .name = "lcd_p2", |
| 278 | .id = -1, |
| 279 | }; |
| 280 | |
| 281 | static struct platform_device *devices[] __initdata = { |
| 282 | &nor_device, |
| 283 | &nand_device, |
| 284 | &smc91x_device, |
| 285 | &kp_device, |
| 286 | &lcd_device, |
| 287 | }; |
| 288 | |
Felipe Balbi | bdc58fb | 2011-01-27 16:39:42 -0800 | [diff] [blame] | 289 | static struct omap_lcd_config fsample_lcd_config = { |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 290 | .ctrl_name = "internal", |
| 291 | }; |
| 292 | |
Uwe Kleine-König | a7e2a89 | 2011-02-09 21:40:10 +0100 | [diff] [blame] | 293 | static struct omap_board_config_kernel fsample_config[] __initdata = { |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 294 | { OMAP_TAG_LCD, &fsample_lcd_config }, |
| 295 | }; |
| 296 | |
| 297 | static void __init omap_fsample_init(void) |
| 298 | { |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 299 | /* Early, board-dependent init */ |
| 300 | |
| 301 | /* |
| 302 | * Hold GSM Reset until needed |
| 303 | */ |
Alistair Buxton | b51988d | 2009-09-22 07:34:13 +0100 | [diff] [blame] | 304 | omap_writew(omap_readw(OMAP7XX_DSP_M_CTL) & ~1, OMAP7XX_DSP_M_CTL); |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 305 | |
| 306 | /* |
| 307 | * UARTs -> done automagically by 8250 driver |
| 308 | */ |
| 309 | |
| 310 | /* |
| 311 | * CSx timings, GPIO Mux ... setup |
| 312 | */ |
| 313 | |
| 314 | /* Flash: CS0 timings setup */ |
Alistair Buxton | b51988d | 2009-09-22 07:34:13 +0100 | [diff] [blame] | 315 | omap_writel(0x0000fff3, OMAP7XX_FLASH_CFG_0); |
| 316 | omap_writel(0x00000088, OMAP7XX_FLASH_ACFG_0); |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 317 | |
| 318 | /* |
| 319 | * Ethernet support through the debug board |
| 320 | * CS1 timings setup |
| 321 | */ |
Alistair Buxton | b51988d | 2009-09-22 07:34:13 +0100 | [diff] [blame] | 322 | omap_writel(0x0000fff3, OMAP7XX_FLASH_CFG_1); |
| 323 | omap_writel(0x00000000, OMAP7XX_FLASH_ACFG_1); |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 324 | |
| 325 | /* |
| 326 | * Configure MPU_EXT_NIRQ IO in IO_CONF9 register, |
| 327 | * It is used as the Ethernet controller interrupt |
| 328 | */ |
Tony Lindgren | 7b88e62 | 2011-10-05 15:14:02 -0700 | [diff] [blame] | 329 | omap_writel(omap_readl(OMAP7XX_IO_CONF_9) & 0x1FFFFFFF, |
| 330 | OMAP7XX_IO_CONF_9); |
| 331 | |
| 332 | fsample_init_smc91x(); |
| 333 | |
| 334 | if (gpio_request(FSAMPLE_NAND_RB_GPIO_PIN, "NAND ready") < 0) |
| 335 | BUG(); |
| 336 | gpio_direction_input(FSAMPLE_NAND_RB_GPIO_PIN); |
| 337 | |
| 338 | omap_cfg_reg(L3_1610_FLASH_CS2B_OE); |
| 339 | omap_cfg_reg(M8_1610_FLASH_CS2B_WE); |
| 340 | |
| 341 | /* Mux pins for keypad */ |
| 342 | omap_cfg_reg(E2_7XX_KBR0); |
| 343 | omap_cfg_reg(J7_7XX_KBR1); |
| 344 | omap_cfg_reg(E1_7XX_KBR2); |
| 345 | omap_cfg_reg(F3_7XX_KBR3); |
| 346 | omap_cfg_reg(D2_7XX_KBR4); |
| 347 | omap_cfg_reg(C2_7XX_KBC0); |
| 348 | omap_cfg_reg(D3_7XX_KBC1); |
| 349 | omap_cfg_reg(E4_7XX_KBC2); |
| 350 | omap_cfg_reg(F4_7XX_KBC3); |
| 351 | omap_cfg_reg(E3_7XX_KBC4); |
| 352 | |
| 353 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
| 354 | |
| 355 | omap_board_config = fsample_config; |
| 356 | omap_board_config_size = ARRAY_SIZE(fsample_config); |
| 357 | omap_serial_init(); |
| 358 | omap_register_i2c_bus(1, 100, NULL, 0); |
| 359 | } |
| 360 | |
| 361 | /* Only FPGA needs to be mapped here. All others are done with ioremap */ |
| 362 | static struct map_desc omap_fsample_io_desc[] __initdata = { |
| 363 | { |
| 364 | .virtual = H2P2_DBG_FPGA_BASE, |
| 365 | .pfn = __phys_to_pfn(H2P2_DBG_FPGA_START), |
| 366 | .length = H2P2_DBG_FPGA_SIZE, |
| 367 | .type = MT_DEVICE |
| 368 | }, |
| 369 | { |
| 370 | .virtual = FSAMPLE_CPLD_BASE, |
| 371 | .pfn = __phys_to_pfn(FSAMPLE_CPLD_START), |
| 372 | .length = FSAMPLE_CPLD_SIZE, |
| 373 | .type = MT_DEVICE |
| 374 | } |
| 375 | }; |
| 376 | |
| 377 | static void __init omap_fsample_map_io(void) |
| 378 | { |
| 379 | omap15xx_map_io(); |
| 380 | iotable_init(omap_fsample_io_desc, |
| 381 | ARRAY_SIZE(omap_fsample_io_desc)); |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 382 | } |
| 383 | |
| 384 | MACHINE_START(OMAP_FSAMPLE, "OMAP730 F-Sample") |
| 385 | /* Maintainer: Brian Swetland <swetland@google.com> */ |
Nicolas Pitre | 246e389 | 2011-07-05 22:38:15 -0400 | [diff] [blame] | 386 | .atag_offset = 0x100, |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 387 | .map_io = omap_fsample_map_io, |
Tony Lindgren | 7b88e62 | 2011-10-05 15:14:02 -0700 | [diff] [blame] | 388 | .init_early = omap1_init_early, |
Russell King | 71ee7da | 2010-05-23 10:18:16 +0100 | [diff] [blame] | 389 | .reserve = omap_reserve, |
Tony Lindgren | 7b88e62 | 2011-10-05 15:14:02 -0700 | [diff] [blame] | 390 | .init_irq = omap1_init_irq, |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 391 | .init_machine = omap_fsample_init, |
Tony Lindgren | e74984e | 2011-03-29 15:54:48 -0700 | [diff] [blame] | 392 | .timer = &omap1_timer, |
Brian Swetland | 495f71d | 2006-06-26 16:16:03 -0700 | [diff] [blame] | 393 | MACHINE_END |