Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 1 | /* |
| 2 | * QNAP TS-109/TS-209 Board Setup |
| 3 | * |
| 4 | * Maintainer: Byron Bradley <byron.bbradley@gmail.com> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License |
| 8 | * as published by the Free Software Foundation; either version |
| 9 | * 2 of the License, or (at your option) any later version. |
| 10 | */ |
| 11 | |
| 12 | #include <linux/kernel.h> |
| 13 | #include <linux/init.h> |
| 14 | #include <linux/platform_device.h> |
| 15 | #include <linux/pci.h> |
| 16 | #include <linux/irq.h> |
| 17 | #include <linux/mtd/physmap.h> |
| 18 | #include <linux/mtd/nand.h> |
| 19 | #include <linux/mv643xx_eth.h> |
| 20 | #include <linux/gpio_keys.h> |
| 21 | #include <linux/input.h> |
| 22 | #include <linux/i2c.h> |
Herbert Valerio Riedel | 8f86dda | 2007-12-16 17:42:31 +0100 | [diff] [blame] | 23 | #include <linux/serial_reg.h> |
Byron Bradley | ee44391 | 2008-02-08 18:20:23 +0000 | [diff] [blame] | 24 | #include <linux/ata_platform.h> |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 25 | #include <asm/mach-types.h> |
| 26 | #include <asm/gpio.h> |
| 27 | #include <asm/mach/arch.h> |
| 28 | #include <asm/mach/pci.h> |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 29 | #include <mach/orion5x.h> |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 30 | #include "common.h" |
Lennert Buytenhek | 19cfd5c | 2008-05-10 23:25:46 +0200 | [diff] [blame] | 31 | #include "mpp.h" |
Sylver Bruneau | 530c854 | 2008-05-31 18:21:49 +0200 | [diff] [blame] | 32 | #include "tsx09-common.h" |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 33 | |
| 34 | #define QNAP_TS209_NOR_BOOT_BASE 0xf4000000 |
| 35 | #define QNAP_TS209_NOR_BOOT_SIZE SZ_8M |
| 36 | |
| 37 | /**************************************************************************** |
| 38 | * 8MiB NOR flash. The struct mtd_partition is not in the same order as the |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 39 | * partitions on the device because we want to keep compatibility with |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 40 | * existing QNAP firmware. |
| 41 | * |
| 42 | * Layout as used by QNAP: |
| 43 | * [2] 0x00000000-0x00200000 : "Kernel" |
| 44 | * [3] 0x00200000-0x00600000 : "RootFS1" |
| 45 | * [4] 0x00600000-0x00700000 : "RootFS2" |
| 46 | * [6] 0x00700000-0x00760000 : "NAS Config" (read-only) |
| 47 | * [5] 0x00760000-0x00780000 : "U-Boot Config" |
| 48 | * [1] 0x00780000-0x00800000 : "U-Boot" (read-only) |
| 49 | ***************************************************************************/ |
| 50 | static struct mtd_partition qnap_ts209_partitions[] = { |
| 51 | { |
Lennert Buytenhek | e7068ad | 2008-05-10 16:30:01 +0200 | [diff] [blame] | 52 | .name = "U-Boot", |
| 53 | .size = 0x00080000, |
| 54 | .offset = 0x00780000, |
| 55 | .mask_flags = MTD_WRITEABLE, |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 56 | }, { |
Lennert Buytenhek | e7068ad | 2008-05-10 16:30:01 +0200 | [diff] [blame] | 57 | .name = "Kernel", |
| 58 | .size = 0x00200000, |
| 59 | .offset = 0, |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 60 | }, { |
Lennert Buytenhek | e7068ad | 2008-05-10 16:30:01 +0200 | [diff] [blame] | 61 | .name = "RootFS1", |
| 62 | .size = 0x00400000, |
| 63 | .offset = 0x00200000, |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 64 | }, { |
Lennert Buytenhek | e7068ad | 2008-05-10 16:30:01 +0200 | [diff] [blame] | 65 | .name = "RootFS2", |
| 66 | .size = 0x00100000, |
| 67 | .offset = 0x00600000, |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 68 | }, { |
Lennert Buytenhek | e7068ad | 2008-05-10 16:30:01 +0200 | [diff] [blame] | 69 | .name = "U-Boot Config", |
| 70 | .size = 0x00020000, |
| 71 | .offset = 0x00760000, |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 72 | }, { |
Lennert Buytenhek | e7068ad | 2008-05-10 16:30:01 +0200 | [diff] [blame] | 73 | .name = "NAS Config", |
| 74 | .size = 0x00060000, |
| 75 | .offset = 0x00700000, |
| 76 | .mask_flags = MTD_WRITEABLE, |
| 77 | }, |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 78 | }; |
| 79 | |
| 80 | static struct physmap_flash_data qnap_ts209_nor_flash_data = { |
Lennert Buytenhek | e7068ad | 2008-05-10 16:30:01 +0200 | [diff] [blame] | 81 | .width = 1, |
| 82 | .parts = qnap_ts209_partitions, |
| 83 | .nr_parts = ARRAY_SIZE(qnap_ts209_partitions) |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 84 | }; |
| 85 | |
| 86 | static struct resource qnap_ts209_nor_flash_resource = { |
Lennert Buytenhek | e7068ad | 2008-05-10 16:30:01 +0200 | [diff] [blame] | 87 | .flags = IORESOURCE_MEM, |
| 88 | .start = QNAP_TS209_NOR_BOOT_BASE, |
| 89 | .end = QNAP_TS209_NOR_BOOT_BASE + QNAP_TS209_NOR_BOOT_SIZE - 1, |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 90 | }; |
| 91 | |
| 92 | static struct platform_device qnap_ts209_nor_flash = { |
Lennert Buytenhek | e7068ad | 2008-05-10 16:30:01 +0200 | [diff] [blame] | 93 | .name = "physmap-flash", |
| 94 | .id = 0, |
| 95 | .dev = { |
| 96 | .platform_data = &qnap_ts209_nor_flash_data, |
| 97 | }, |
| 98 | .resource = &qnap_ts209_nor_flash_resource, |
| 99 | .num_resources = 1, |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 100 | }; |
| 101 | |
| 102 | /***************************************************************************** |
| 103 | * PCI |
| 104 | ****************************************************************************/ |
| 105 | |
| 106 | #define QNAP_TS209_PCI_SLOT0_OFFS 7 |
| 107 | #define QNAP_TS209_PCI_SLOT0_IRQ_PIN 6 |
| 108 | #define QNAP_TS209_PCI_SLOT1_IRQ_PIN 7 |
| 109 | |
| 110 | void __init qnap_ts209_pci_preinit(void) |
| 111 | { |
| 112 | int pin; |
| 113 | |
| 114 | /* |
| 115 | * Configure PCI GPIO IRQ pins |
| 116 | */ |
| 117 | pin = QNAP_TS209_PCI_SLOT0_IRQ_PIN; |
| 118 | if (gpio_request(pin, "PCI Int1") == 0) { |
| 119 | if (gpio_direction_input(pin) == 0) { |
Thomas Gleixner | 6845664a | 2011-03-24 13:25:22 +0100 | [diff] [blame] | 120 | irq_set_irq_type(gpio_to_irq(pin), IRQ_TYPE_LEVEL_LOW); |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 121 | } else { |
| 122 | printk(KERN_ERR "qnap_ts209_pci_preinit failed to " |
| 123 | "set_irq_type pin %d\n", pin); |
| 124 | gpio_free(pin); |
| 125 | } |
| 126 | } else { |
| 127 | printk(KERN_ERR "qnap_ts209_pci_preinit failed to gpio_request " |
| 128 | "%d\n", pin); |
| 129 | } |
| 130 | |
| 131 | pin = QNAP_TS209_PCI_SLOT1_IRQ_PIN; |
| 132 | if (gpio_request(pin, "PCI Int2") == 0) { |
| 133 | if (gpio_direction_input(pin) == 0) { |
Thomas Gleixner | 6845664a | 2011-03-24 13:25:22 +0100 | [diff] [blame] | 134 | irq_set_irq_type(gpio_to_irq(pin), IRQ_TYPE_LEVEL_LOW); |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 135 | } else { |
| 136 | printk(KERN_ERR "qnap_ts209_pci_preinit failed " |
| 137 | "to set_irq_type pin %d\n", pin); |
| 138 | gpio_free(pin); |
| 139 | } |
| 140 | } else { |
| 141 | printk(KERN_ERR "qnap_ts209_pci_preinit failed to gpio_request " |
| 142 | "%d\n", pin); |
| 143 | } |
| 144 | } |
| 145 | |
Ralf Baechle | d534194 | 2011-06-10 15:30:21 +0100 | [diff] [blame] | 146 | static int __init qnap_ts209_pci_map_irq(const struct pci_dev *dev, u8 slot, |
| 147 | u8 pin) |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 148 | { |
Lennert Buytenhek | 92b913b | 2008-04-25 16:28:33 -0400 | [diff] [blame] | 149 | int irq; |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 150 | |
| 151 | /* |
Lennert Buytenhek | 92b913b | 2008-04-25 16:28:33 -0400 | [diff] [blame] | 152 | * Check for devices with hard-wired IRQs. |
| 153 | */ |
| 154 | irq = orion5x_pci_map_irq(dev, slot, pin); |
| 155 | if (irq != -1) |
| 156 | return irq; |
| 157 | |
| 158 | /* |
| 159 | * PCI IRQs are connected via GPIOs. |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 160 | */ |
| 161 | switch (slot - QNAP_TS209_PCI_SLOT0_OFFS) { |
| 162 | case 0: |
| 163 | return gpio_to_irq(QNAP_TS209_PCI_SLOT0_IRQ_PIN); |
| 164 | case 1: |
| 165 | return gpio_to_irq(QNAP_TS209_PCI_SLOT1_IRQ_PIN); |
| 166 | default: |
| 167 | return -1; |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | static struct hw_pci qnap_ts209_pci __initdata = { |
Lennert Buytenhek | e7068ad | 2008-05-10 16:30:01 +0200 | [diff] [blame] | 172 | .nr_controllers = 2, |
| 173 | .preinit = qnap_ts209_pci_preinit, |
| 174 | .swizzle = pci_std_swizzle, |
| 175 | .setup = orion5x_pci_sys_setup, |
| 176 | .scan = orion5x_pci_sys_scan_bus, |
| 177 | .map_irq = qnap_ts209_pci_map_irq, |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 178 | }; |
| 179 | |
| 180 | static int __init qnap_ts209_pci_init(void) |
| 181 | { |
| 182 | if (machine_is_ts_x09()) |
| 183 | pci_common_init(&qnap_ts209_pci); |
| 184 | |
| 185 | return 0; |
| 186 | } |
| 187 | |
| 188 | subsys_initcall(qnap_ts209_pci_init); |
| 189 | |
| 190 | /***************************************************************************** |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 191 | * RTC S35390A on I2C bus |
| 192 | ****************************************************************************/ |
Byron Bradley | 59e8ce5 | 2008-02-10 22:31:09 +0100 | [diff] [blame] | 193 | |
| 194 | #define TS209_RTC_GPIO 3 |
| 195 | |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 196 | static struct i2c_board_info __initdata qnap_ts209_i2c_rtc = { |
Jean Delvare | 3760f73 | 2008-04-29 23:11:40 +0200 | [diff] [blame] | 197 | I2C_BOARD_INFO("s35390a", 0x30), |
Lennert Buytenhek | e7068ad | 2008-05-10 16:30:01 +0200 | [diff] [blame] | 198 | .irq = 0, |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 199 | }; |
| 200 | |
| 201 | /**************************************************************************** |
| 202 | * GPIO Attached Keys |
| 203 | * Power button is attached to the PIC microcontroller |
| 204 | ****************************************************************************/ |
| 205 | |
| 206 | #define QNAP_TS209_GPIO_KEY_MEDIA 1 |
| 207 | #define QNAP_TS209_GPIO_KEY_RESET 2 |
| 208 | |
| 209 | static struct gpio_keys_button qnap_ts209_buttons[] = { |
| 210 | { |
Martin Michlmayr | 28ca8c8 | 2008-07-22 01:49:22 +0300 | [diff] [blame] | 211 | .code = KEY_COPY, |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 212 | .gpio = QNAP_TS209_GPIO_KEY_MEDIA, |
| 213 | .desc = "USB Copy Button", |
| 214 | .active_low = 1, |
Lennert Buytenhek | e7068ad | 2008-05-10 16:30:01 +0200 | [diff] [blame] | 215 | }, { |
Martin Michlmayr | 28ca8c8 | 2008-07-22 01:49:22 +0300 | [diff] [blame] | 216 | .code = KEY_RESTART, |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 217 | .gpio = QNAP_TS209_GPIO_KEY_RESET, |
| 218 | .desc = "Reset Button", |
| 219 | .active_low = 1, |
Lennert Buytenhek | e7068ad | 2008-05-10 16:30:01 +0200 | [diff] [blame] | 220 | }, |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 221 | }; |
| 222 | |
| 223 | static struct gpio_keys_platform_data qnap_ts209_button_data = { |
| 224 | .buttons = qnap_ts209_buttons, |
Lennert Buytenhek | e7068ad | 2008-05-10 16:30:01 +0200 | [diff] [blame] | 225 | .nbuttons = ARRAY_SIZE(qnap_ts209_buttons), |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 226 | }; |
| 227 | |
| 228 | static struct platform_device qnap_ts209_button_device = { |
| 229 | .name = "gpio-keys", |
| 230 | .id = -1, |
| 231 | .num_resources = 0, |
Lennert Buytenhek | e7068ad | 2008-05-10 16:30:01 +0200 | [diff] [blame] | 232 | .dev = { |
| 233 | .platform_data = &qnap_ts209_button_data, |
| 234 | }, |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 235 | }; |
| 236 | |
| 237 | /***************************************************************************** |
Byron Bradley | ee44391 | 2008-02-08 18:20:23 +0000 | [diff] [blame] | 238 | * SATA |
| 239 | ****************************************************************************/ |
| 240 | static struct mv_sata_platform_data qnap_ts209_sata_data = { |
Lennert Buytenhek | e7068ad | 2008-05-10 16:30:01 +0200 | [diff] [blame] | 241 | .n_ports = 2, |
Byron Bradley | ee44391 | 2008-02-08 18:20:23 +0000 | [diff] [blame] | 242 | }; |
| 243 | |
| 244 | /***************************************************************************** |
| 245 | |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 246 | * General Setup |
| 247 | ****************************************************************************/ |
Andrew Lunn | 554cdae | 2011-05-15 13:32:53 +0200 | [diff] [blame] | 248 | static unsigned int ts209_mpp_modes[] __initdata = { |
| 249 | MPP0_UNUSED, |
| 250 | MPP1_GPIO, /* USB copy button */ |
| 251 | MPP2_GPIO, /* Load defaults button */ |
| 252 | MPP3_GPIO, /* GPIO RTC */ |
| 253 | MPP4_UNUSED, |
| 254 | MPP5_UNUSED, |
| 255 | MPP6_GPIO, /* PCI Int A */ |
| 256 | MPP7_GPIO, /* PCI Int B */ |
| 257 | MPP8_UNUSED, |
| 258 | MPP9_UNUSED, |
| 259 | MPP10_UNUSED, |
| 260 | MPP11_UNUSED, |
| 261 | MPP12_SATA_LED, /* SATA 0 presence */ |
| 262 | MPP13_SATA_LED, /* SATA 1 presence */ |
| 263 | MPP14_SATA_LED, /* SATA 0 active */ |
| 264 | MPP15_SATA_LED, /* SATA 1 active */ |
| 265 | MPP16_UART, /* UART1 RXD */ |
| 266 | MPP17_UART, /* UART1 TXD */ |
| 267 | MPP18_GPIO, /* SW_RST */ |
| 268 | MPP19_UNUSED, |
| 269 | 0, |
Lennert Buytenhek | 19cfd5c | 2008-05-10 23:25:46 +0200 | [diff] [blame] | 270 | }; |
| 271 | |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 272 | static void __init qnap_ts209_init(void) |
| 273 | { |
| 274 | /* |
| 275 | * Setup basic Orion functions. Need to be called early. |
| 276 | */ |
Lennert Buytenhek | 9dd0b19 | 2008-03-27 14:51:41 -0400 | [diff] [blame] | 277 | orion5x_init(); |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 278 | |
Lennert Buytenhek | 19cfd5c | 2008-05-10 23:25:46 +0200 | [diff] [blame] | 279 | orion5x_mpp_conf(ts209_mpp_modes); |
| 280 | |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 281 | /* |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 282 | * MPP[20] PCI clock 0 |
| 283 | * MPP[21] PCI clock 1 |
| 284 | * MPP[22] USB 0 over current |
| 285 | * MPP[23-25] Reserved |
| 286 | */ |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 287 | |
Lennert Buytenhek | 044f6c7 | 2008-04-22 05:37:12 +0200 | [diff] [blame] | 288 | /* |
| 289 | * Configure peripherals. |
| 290 | */ |
Martin Michlmayr | 35228e8 | 2008-08-09 18:13:33 +0300 | [diff] [blame] | 291 | orion5x_setup_dev_boot_win(QNAP_TS209_NOR_BOOT_BASE, |
| 292 | QNAP_TS209_NOR_BOOT_SIZE); |
| 293 | platform_device_register(&qnap_ts209_nor_flash); |
| 294 | |
Lennert Buytenhek | 044f6c7 | 2008-04-22 05:37:12 +0200 | [diff] [blame] | 295 | orion5x_ehci0_init(); |
| 296 | orion5x_ehci1_init(); |
Sylver Bruneau | 530c854 | 2008-05-31 18:21:49 +0200 | [diff] [blame] | 297 | qnap_tsx09_find_mac_addr(QNAP_TS209_NOR_BOOT_BASE + |
| 298 | qnap_ts209_partitions[5].offset, |
| 299 | qnap_ts209_partitions[5].size); |
| 300 | orion5x_eth_init(&qnap_tsx09_eth_data); |
Lennert Buytenhek | 044f6c7 | 2008-04-22 05:37:12 +0200 | [diff] [blame] | 301 | orion5x_i2c_init(); |
| 302 | orion5x_sata_init(&qnap_ts209_sata_data); |
| 303 | orion5x_uart0_init(); |
Martin Michlmayr | e45772b | 2008-08-13 10:46:11 +0300 | [diff] [blame] | 304 | orion5x_uart1_init(); |
Saeed Bishara | 1d5a1a6 | 2008-06-16 23:25:12 -1100 | [diff] [blame] | 305 | orion5x_xor_init(); |
Herbert Valerio Riedel | 8f86dda | 2007-12-16 17:42:31 +0100 | [diff] [blame] | 306 | |
Lennert Buytenhek | 044f6c7 | 2008-04-22 05:37:12 +0200 | [diff] [blame] | 307 | platform_device_register(&qnap_ts209_button_device); |
Byron Bradley | 59e8ce5 | 2008-02-10 22:31:09 +0100 | [diff] [blame] | 308 | |
| 309 | /* Get RTC IRQ and register the chip */ |
| 310 | if (gpio_request(TS209_RTC_GPIO, "rtc") == 0) { |
| 311 | if (gpio_direction_input(TS209_RTC_GPIO) == 0) |
| 312 | qnap_ts209_i2c_rtc.irq = gpio_to_irq(TS209_RTC_GPIO); |
| 313 | else |
| 314 | gpio_free(TS209_RTC_GPIO); |
| 315 | } |
| 316 | if (qnap_ts209_i2c_rtc.irq == 0) |
| 317 | pr_warning("qnap_ts209_init: failed to get RTC IRQ\n"); |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 318 | i2c_register_board_info(0, &qnap_ts209_i2c_rtc, 1); |
Byron Bradley | 59e8ce5 | 2008-02-10 22:31:09 +0100 | [diff] [blame] | 319 | |
Sylver Bruneau | 530c854 | 2008-05-31 18:21:49 +0200 | [diff] [blame] | 320 | /* register tsx09 specific power-off method */ |
| 321 | pm_power_off = qnap_tsx09_power_off; |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 322 | } |
| 323 | |
| 324 | MACHINE_START(TS209, "QNAP TS-109/TS-209") |
Lennert Buytenhek | e7068ad | 2008-05-10 16:30:01 +0200 | [diff] [blame] | 325 | /* Maintainer: Byron Bradley <byron.bbradley@gmail.com> */ |
Nicolas Pitre | 65aa1b1 | 2011-07-05 22:38:15 -0400 | [diff] [blame^] | 326 | .atag_offset = 0x100, |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 327 | .init_machine = qnap_ts209_init, |
Lennert Buytenhek | 9dd0b19 | 2008-03-27 14:51:41 -0400 | [diff] [blame] | 328 | .map_io = orion5x_map_io, |
Lennert Buytenhek | 4ee1f6b | 2010-10-15 16:50:26 +0200 | [diff] [blame] | 329 | .init_early = orion5x_init_early, |
Lennert Buytenhek | 9dd0b19 | 2008-03-27 14:51:41 -0400 | [diff] [blame] | 330 | .init_irq = orion5x_init_irq, |
| 331 | .timer = &orion5x_timer, |
Guennadi Liakhovetski | be73a34 | 2008-02-29 21:12:57 +0100 | [diff] [blame] | 332 | .fixup = tag_fixup_mem32, |
Byron Bradley | 3faf2ee | 2007-12-15 20:05:49 +0000 | [diff] [blame] | 333 | MACHINE_END |