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