Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
| 3 | * arch/arm/mach-ixp4xx/ixdp425-setup.c |
| 4 | * |
Krzysztof Hałasa | 9bf4d67 | 2009-11-16 15:24:41 +0100 | [diff] [blame] | 5 | * IXDP425/IXCDP1100 board-setup |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | * |
| 7 | * Copyright (C) 2003-2005 MontaVista Software, Inc. |
| 8 | * |
| 9 | * Author: Deepak Saxena <dsaxena@plexity.net> |
| 10 | */ |
| 11 | |
| 12 | #include <linux/kernel.h> |
| 13 | #include <linux/init.h> |
| 14 | #include <linux/device.h> |
| 15 | #include <linux/serial.h> |
| 16 | #include <linux/tty.h> |
| 17 | #include <linux/serial_8250.h> |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame] | 18 | #include <linux/gpio/machine.h> |
Vladimir Barinov | 4ad48b4 | 2007-05-16 20:39:02 +0100 | [diff] [blame] | 19 | #include <linux/io.h> |
| 20 | #include <linux/mtd/mtd.h> |
Boris Brezillon | d4092d7 | 2017-08-04 17:29:10 +0200 | [diff] [blame] | 21 | #include <linux/mtd/rawnand.h> |
Vladimir Barinov | 4ad48b4 | 2007-05-16 20:39:02 +0100 | [diff] [blame] | 22 | #include <linux/mtd/partitions.h> |
Boris Brezillon | c7921bb | 2018-09-07 00:38:46 +0200 | [diff] [blame] | 23 | #include <linux/mtd/platnand.h> |
Russell King | 8029db1 | 2008-09-06 12:11:37 +0100 | [diff] [blame] | 24 | #include <linux/delay.h> |
Linus Walleij | 8040dd0 | 2013-09-10 11:19:55 +0200 | [diff] [blame] | 25 | #include <linux/gpio.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | #include <asm/types.h> |
| 27 | #include <asm/setup.h> |
| 28 | #include <asm/memory.h> |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 29 | #include <mach/hardware.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | #include <asm/mach-types.h> |
| 31 | #include <asm/irq.h> |
| 32 | #include <asm/mach/arch.h> |
| 33 | #include <asm/mach/flash.h> |
| 34 | |
Linus Walleij | dc8ef8cd | 2018-12-29 15:47:52 +0100 | [diff] [blame^] | 35 | #include "irqs.h" |
| 36 | |
Krzysztof Hałasa | 9bf4d67 | 2009-11-16 15:24:41 +0100 | [diff] [blame] | 37 | #define IXDP425_SDA_PIN 7 |
| 38 | #define IXDP425_SCL_PIN 6 |
| 39 | |
| 40 | /* NAND Flash pins */ |
| 41 | #define IXDP425_NAND_NCE_PIN 12 |
| 42 | |
| 43 | #define IXDP425_NAND_CMD_BYTE 0x01 |
| 44 | #define IXDP425_NAND_ADDR_BYTE 0x02 |
| 45 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 46 | static struct flash_platform_data ixdp425_flash_data = { |
| 47 | .map_name = "cfi_probe", |
| 48 | .width = 2, |
| 49 | }; |
| 50 | |
| 51 | static struct resource ixdp425_flash_resource = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 52 | .flags = IORESOURCE_MEM, |
| 53 | }; |
| 54 | |
| 55 | static struct platform_device ixdp425_flash = { |
| 56 | .name = "IXP4XX-Flash", |
| 57 | .id = 0, |
| 58 | .dev = { |
| 59 | .platform_data = &ixdp425_flash_data, |
| 60 | }, |
| 61 | .num_resources = 1, |
| 62 | .resource = &ixdp425_flash_resource, |
| 63 | }; |
| 64 | |
Vladimir Barinov | 4ad48b4 | 2007-05-16 20:39:02 +0100 | [diff] [blame] | 65 | #if defined(CONFIG_MTD_NAND_PLATFORM) || \ |
| 66 | defined(CONFIG_MTD_NAND_PLATFORM_MODULE) |
| 67 | |
Vladimir Barinov | 4ad48b4 | 2007-05-16 20:39:02 +0100 | [diff] [blame] | 68 | static struct mtd_partition ixdp425_partitions[] = { |
| 69 | { |
| 70 | .name = "ixp400 NAND FS 0", |
| 71 | .offset = 0, |
| 72 | .size = SZ_8M |
| 73 | }, { |
| 74 | .name = "ixp400 NAND FS 1", |
| 75 | .offset = MTDPART_OFS_APPEND, |
| 76 | .size = MTDPART_SIZ_FULL |
| 77 | }, |
| 78 | }; |
Vladimir Barinov | 4ad48b4 | 2007-05-16 20:39:02 +0100 | [diff] [blame] | 79 | |
| 80 | static void |
Boris Brezillon | 47bd59e | 2018-09-06 14:05:13 +0200 | [diff] [blame] | 81 | ixdp425_flash_nand_cmd_ctrl(struct nand_chip *this, int cmd, unsigned int ctrl) |
Vladimir Barinov | 4ad48b4 | 2007-05-16 20:39:02 +0100 | [diff] [blame] | 82 | { |
Boris BREZILLON | d9dccc6 | 2015-12-10 09:00:40 +0100 | [diff] [blame] | 83 | int offset = (int)nand_get_controller_data(this); |
Vladimir Barinov | 4ad48b4 | 2007-05-16 20:39:02 +0100 | [diff] [blame] | 84 | |
| 85 | if (ctrl & NAND_CTRL_CHANGE) { |
| 86 | if (ctrl & NAND_NCE) { |
Linus Walleij | 8040dd0 | 2013-09-10 11:19:55 +0200 | [diff] [blame] | 87 | gpio_set_value(IXDP425_NAND_NCE_PIN, 0); |
Vladimir Barinov | 4ad48b4 | 2007-05-16 20:39:02 +0100 | [diff] [blame] | 88 | udelay(5); |
| 89 | } else |
Linus Walleij | 8040dd0 | 2013-09-10 11:19:55 +0200 | [diff] [blame] | 90 | gpio_set_value(IXDP425_NAND_NCE_PIN, 1); |
Vladimir Barinov | 4ad48b4 | 2007-05-16 20:39:02 +0100 | [diff] [blame] | 91 | |
| 92 | offset = (ctrl & NAND_CLE) ? IXDP425_NAND_CMD_BYTE : 0; |
| 93 | offset |= (ctrl & NAND_ALE) ? IXDP425_NAND_ADDR_BYTE : 0; |
Boris BREZILLON | d9dccc6 | 2015-12-10 09:00:40 +0100 | [diff] [blame] | 94 | nand_set_controller_data(this, (void *)offset); |
Vladimir Barinov | 4ad48b4 | 2007-05-16 20:39:02 +0100 | [diff] [blame] | 95 | } |
| 96 | |
| 97 | if (cmd != NAND_CMD_NONE) |
Boris Brezillon | 82fc509 | 2018-09-07 00:38:34 +0200 | [diff] [blame] | 98 | writeb(cmd, this->legacy.IO_ADDR_W + offset); |
Vladimir Barinov | 4ad48b4 | 2007-05-16 20:39:02 +0100 | [diff] [blame] | 99 | } |
| 100 | |
| 101 | static struct platform_nand_data ixdp425_flash_nand_data = { |
| 102 | .chip = { |
Marek Vasut | ef07717 | 2010-08-12 02:14:54 +0100 | [diff] [blame] | 103 | .nr_chips = 1, |
Vladimir Barinov | 4ad48b4 | 2007-05-16 20:39:02 +0100 | [diff] [blame] | 104 | .chip_delay = 30, |
Vladimir Barinov | 4ad48b4 | 2007-05-16 20:39:02 +0100 | [diff] [blame] | 105 | .partitions = ixdp425_partitions, |
| 106 | .nr_partitions = ARRAY_SIZE(ixdp425_partitions), |
Vladimir Barinov | 4ad48b4 | 2007-05-16 20:39:02 +0100 | [diff] [blame] | 107 | }, |
| 108 | .ctrl = { |
| 109 | .cmd_ctrl = ixdp425_flash_nand_cmd_ctrl |
| 110 | } |
| 111 | }; |
| 112 | |
| 113 | static struct resource ixdp425_flash_nand_resource = { |
| 114 | .flags = IORESOURCE_MEM, |
| 115 | }; |
| 116 | |
| 117 | static struct platform_device ixdp425_flash_nand = { |
| 118 | .name = "gen_nand", |
| 119 | .id = -1, |
| 120 | .dev = { |
| 121 | .platform_data = &ixdp425_flash_nand_data, |
| 122 | }, |
| 123 | .num_resources = 1, |
| 124 | .resource = &ixdp425_flash_nand_resource, |
| 125 | }; |
| 126 | #endif /* CONFIG_MTD_NAND_PLATFORM */ |
| 127 | |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame] | 128 | static struct gpiod_lookup_table ixdp425_i2c_gpiod_table = { |
Linus Walleij | f59c303 | 2018-05-26 18:37:34 +0200 | [diff] [blame] | 129 | .dev_id = "i2c-gpio.0", |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame] | 130 | .table = { |
| 131 | GPIO_LOOKUP_IDX("IXP4XX_GPIO_CHIP", IXDP425_SDA_PIN, |
Linus Walleij | 4d0ce62 | 2017-09-10 23:03:32 +0200 | [diff] [blame] | 132 | NULL, 0, GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN), |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame] | 133 | GPIO_LOOKUP_IDX("IXP4XX_GPIO_CHIP", IXDP425_SCL_PIN, |
Linus Walleij | 4d0ce62 | 2017-09-10 23:03:32 +0200 | [diff] [blame] | 134 | NULL, 1, GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN), |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame] | 135 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 136 | }; |
| 137 | |
Michael-Luke Jones | 5a4a238 | 2008-01-27 18:14:46 +0100 | [diff] [blame] | 138 | static struct platform_device ixdp425_i2c_gpio = { |
| 139 | .name = "i2c-gpio", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 140 | .id = 0, |
Michael-Luke Jones | 5a4a238 | 2008-01-27 18:14:46 +0100 | [diff] [blame] | 141 | .dev = { |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame] | 142 | .platform_data = NULL, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 143 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 144 | }; |
| 145 | |
| 146 | static struct resource ixdp425_uart_resources[] = { |
| 147 | { |
| 148 | .start = IXP4XX_UART1_BASE_PHYS, |
| 149 | .end = IXP4XX_UART1_BASE_PHYS + 0x0fff, |
| 150 | .flags = IORESOURCE_MEM |
| 151 | }, |
| 152 | { |
| 153 | .start = IXP4XX_UART2_BASE_PHYS, |
| 154 | .end = IXP4XX_UART2_BASE_PHYS + 0x0fff, |
| 155 | .flags = IORESOURCE_MEM |
| 156 | } |
| 157 | }; |
| 158 | |
| 159 | static struct plat_serial8250_port ixdp425_uart_data[] = { |
| 160 | { |
| 161 | .mapbase = IXP4XX_UART1_BASE_PHYS, |
| 162 | .membase = (char *)IXP4XX_UART1_BASE_VIRT + REG_OFFSET, |
| 163 | .irq = IRQ_IXP4XX_UART1, |
Deepak Saxena | 8c741ed | 2005-08-03 19:58:21 +0100 | [diff] [blame] | 164 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 165 | .iotype = UPIO_MEM, |
| 166 | .regshift = 2, |
| 167 | .uartclk = IXP4XX_UART_XTAL, |
| 168 | }, |
| 169 | { |
| 170 | .mapbase = IXP4XX_UART2_BASE_PHYS, |
| 171 | .membase = (char *)IXP4XX_UART2_BASE_VIRT + REG_OFFSET, |
Jeff Hansen | a35d6c9 | 2005-12-01 15:50:35 +0000 | [diff] [blame] | 172 | .irq = IRQ_IXP4XX_UART2, |
Deepak Saxena | 8c741ed | 2005-08-03 19:58:21 +0100 | [diff] [blame] | 173 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 174 | .iotype = UPIO_MEM, |
| 175 | .regshift = 2, |
| 176 | .uartclk = IXP4XX_UART_XTAL, |
Stefan Sorensen | bcaafbe | 2005-07-06 23:06:04 +0100 | [diff] [blame] | 177 | }, |
| 178 | { }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 179 | }; |
| 180 | |
| 181 | static struct platform_device ixdp425_uart = { |
| 182 | .name = "serial8250", |
Russell King | 6df29de | 2005-09-08 16:04:41 +0100 | [diff] [blame] | 183 | .id = PLAT8250_DEV_PLATFORM, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 184 | .dev.platform_data = ixdp425_uart_data, |
| 185 | .num_resources = 2, |
| 186 | .resource = ixdp425_uart_resources |
| 187 | }; |
| 188 | |
Rod Whitby | 7822591 | 2008-01-31 12:44:03 +0100 | [diff] [blame] | 189 | /* Built-in 10/100 Ethernet MAC interfaces */ |
| 190 | static struct eth_plat_info ixdp425_plat_eth[] = { |
| 191 | { |
| 192 | .phy = 0, |
| 193 | .rxq = 3, |
| 194 | .txreadyq = 20, |
| 195 | }, { |
| 196 | .phy = 1, |
| 197 | .rxq = 4, |
| 198 | .txreadyq = 21, |
| 199 | } |
| 200 | }; |
| 201 | |
| 202 | static struct platform_device ixdp425_eth[] = { |
| 203 | { |
| 204 | .name = "ixp4xx_eth", |
| 205 | .id = IXP4XX_ETH_NPEB, |
| 206 | .dev.platform_data = ixdp425_plat_eth, |
| 207 | }, { |
| 208 | .name = "ixp4xx_eth", |
| 209 | .id = IXP4XX_ETH_NPEC, |
| 210 | .dev.platform_data = ixdp425_plat_eth + 1, |
| 211 | } |
| 212 | }; |
| 213 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 214 | static struct platform_device *ixdp425_devices[] __initdata = { |
Michael-Luke Jones | 5a4a238 | 2008-01-27 18:14:46 +0100 | [diff] [blame] | 215 | &ixdp425_i2c_gpio, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 216 | &ixdp425_flash, |
Vladimir Barinov | 4ad48b4 | 2007-05-16 20:39:02 +0100 | [diff] [blame] | 217 | #if defined(CONFIG_MTD_NAND_PLATFORM) || \ |
| 218 | defined(CONFIG_MTD_NAND_PLATFORM_MODULE) |
| 219 | &ixdp425_flash_nand, |
| 220 | #endif |
Rod Whitby | 7822591 | 2008-01-31 12:44:03 +0100 | [diff] [blame] | 221 | &ixdp425_uart, |
| 222 | &ixdp425_eth[0], |
| 223 | &ixdp425_eth[1], |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 224 | }; |
| 225 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 226 | static void __init ixdp425_init(void) |
| 227 | { |
| 228 | ixp4xx_sys_init(); |
| 229 | |
Deepak Saxena | 54e269e | 2006-01-05 20:59:29 +0000 | [diff] [blame] | 230 | ixdp425_flash_resource.start = IXP4XX_EXP_BUS_BASE(0); |
| 231 | ixdp425_flash_resource.end = |
| 232 | IXP4XX_EXP_BUS_BASE(0) + ixp4xx_exp_bus_size - 1; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 233 | |
Vladimir Barinov | 4ad48b4 | 2007-05-16 20:39:02 +0100 | [diff] [blame] | 234 | #if defined(CONFIG_MTD_NAND_PLATFORM) || \ |
| 235 | defined(CONFIG_MTD_NAND_PLATFORM_MODULE) |
| 236 | ixdp425_flash_nand_resource.start = IXP4XX_EXP_BUS_BASE(3), |
| 237 | ixdp425_flash_nand_resource.end = IXP4XX_EXP_BUS_BASE(3) + 0x10 - 1; |
| 238 | |
Linus Walleij | 8040dd0 | 2013-09-10 11:19:55 +0200 | [diff] [blame] | 239 | gpio_request(IXDP425_NAND_NCE_PIN, "NAND NCE pin"); |
| 240 | gpio_direction_output(IXDP425_NAND_NCE_PIN, 0); |
Vladimir Barinov | 4ad48b4 | 2007-05-16 20:39:02 +0100 | [diff] [blame] | 241 | |
| 242 | /* Configure expansion bus for NAND Flash */ |
| 243 | *IXP4XX_EXP_CS3 = IXP4XX_EXP_BUS_CS_EN | |
| 244 | IXP4XX_EXP_BUS_STROBE_T(1) | /* extend by 1 clock */ |
| 245 | IXP4XX_EXP_BUS_CYCLES(0) | /* Intel cycles */ |
| 246 | IXP4XX_EXP_BUS_SIZE(0) | /* 512bytes addr space*/ |
| 247 | IXP4XX_EXP_BUS_WR_EN | |
| 248 | IXP4XX_EXP_BUS_BYTE_EN; /* 8 bit data bus */ |
| 249 | #endif |
| 250 | |
Ruslan V. Sushko | 45fba08 | 2007-04-06 15:00:31 +0100 | [diff] [blame] | 251 | if (cpu_is_ixp43x()) { |
| 252 | ixdp425_uart.num_resources = 1; |
| 253 | ixdp425_uart_data[1].flags = 0; |
| 254 | } |
| 255 | |
Linus Walleij | b2e6355 | 2017-09-10 01:30:46 +0200 | [diff] [blame] | 256 | gpiod_add_lookup_table(&ixdp425_i2c_gpiod_table); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 257 | platform_add_devices(ixdp425_devices, ARRAY_SIZE(ixdp425_devices)); |
| 258 | } |
| 259 | |
Deepak Saxena | b38708f | 2005-09-28 18:07:01 -0700 | [diff] [blame] | 260 | #ifdef CONFIG_ARCH_IXDP425 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 261 | MACHINE_START(IXDP425, "Intel IXDP425 Development Platform") |
Russell King | e9dea0c | 2005-07-03 17:38:58 +0100 | [diff] [blame] | 262 | /* Maintainer: MontaVista Software, Inc. */ |
Deepak Saxena | e605ecd | 2005-08-29 22:46:29 +0100 | [diff] [blame] | 263 | .map_io = ixp4xx_map_io, |
Rob Herring | f449588 | 2012-03-06 15:01:53 -0600 | [diff] [blame] | 264 | .init_early = ixp4xx_init_early, |
Russell King | e9dea0c | 2005-07-03 17:38:58 +0100 | [diff] [blame] | 265 | .init_irq = ixp4xx_init_irq, |
Stephen Warren | 6bb27d7 | 2012-11-08 12:40:59 -0700 | [diff] [blame] | 266 | .init_time = ixp4xx_timer_init, |
Nicolas Pitre | e022c72 | 2011-07-05 22:38:13 -0400 | [diff] [blame] | 267 | .atag_offset = 0x100, |
Russell King | e9dea0c | 2005-07-03 17:38:58 +0100 | [diff] [blame] | 268 | .init_machine = ixdp425_init, |
Nicolas Pitre | 7553ee7 | 2011-07-05 22:28:09 -0400 | [diff] [blame] | 269 | #if defined(CONFIG_PCI) |
| 270 | .dma_zone_size = SZ_64M, |
| 271 | #endif |
Russell King | d1b860f | 2011-11-05 12:10:55 +0000 | [diff] [blame] | 272 | .restart = ixp4xx_restart, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 273 | MACHINE_END |
Deepak Saxena | e0a2008 | 2005-09-18 21:11:56 +0100 | [diff] [blame] | 274 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 275 | |
Deepak Saxena | e0a2008 | 2005-09-18 21:11:56 +0100 | [diff] [blame] | 276 | #ifdef CONFIG_MACH_IXDP465 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 277 | MACHINE_START(IXDP465, "Intel IXDP465 Development Platform") |
Russell King | e9dea0c | 2005-07-03 17:38:58 +0100 | [diff] [blame] | 278 | /* Maintainer: MontaVista Software, Inc. */ |
Deepak Saxena | e605ecd | 2005-08-29 22:46:29 +0100 | [diff] [blame] | 279 | .map_io = ixp4xx_map_io, |
Rob Herring | f449588 | 2012-03-06 15:01:53 -0600 | [diff] [blame] | 280 | .init_early = ixp4xx_init_early, |
Russell King | e9dea0c | 2005-07-03 17:38:58 +0100 | [diff] [blame] | 281 | .init_irq = ixp4xx_init_irq, |
Stephen Warren | 6bb27d7 | 2012-11-08 12:40:59 -0700 | [diff] [blame] | 282 | .init_time = ixp4xx_timer_init, |
Nicolas Pitre | e022c72 | 2011-07-05 22:38:13 -0400 | [diff] [blame] | 283 | .atag_offset = 0x100, |
Russell King | e9dea0c | 2005-07-03 17:38:58 +0100 | [diff] [blame] | 284 | .init_machine = ixdp425_init, |
Nicolas Pitre | 7553ee7 | 2011-07-05 22:28:09 -0400 | [diff] [blame] | 285 | #if defined(CONFIG_PCI) |
| 286 | .dma_zone_size = SZ_64M, |
| 287 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 288 | MACHINE_END |
Deepak Saxena | e0a2008 | 2005-09-18 21:11:56 +0100 | [diff] [blame] | 289 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 290 | |
Deepak Saxena | e0a2008 | 2005-09-18 21:11:56 +0100 | [diff] [blame] | 291 | #ifdef CONFIG_ARCH_PRPMC1100 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 292 | MACHINE_START(IXCDP1100, "Intel IXCDP1100 Development Platform") |
Russell King | e9dea0c | 2005-07-03 17:38:58 +0100 | [diff] [blame] | 293 | /* Maintainer: MontaVista Software, Inc. */ |
Deepak Saxena | e605ecd | 2005-08-29 22:46:29 +0100 | [diff] [blame] | 294 | .map_io = ixp4xx_map_io, |
Rob Herring | f449588 | 2012-03-06 15:01:53 -0600 | [diff] [blame] | 295 | .init_early = ixp4xx_init_early, |
Russell King | e9dea0c | 2005-07-03 17:38:58 +0100 | [diff] [blame] | 296 | .init_irq = ixp4xx_init_irq, |
Stephen Warren | 6bb27d7 | 2012-11-08 12:40:59 -0700 | [diff] [blame] | 297 | .init_time = ixp4xx_timer_init, |
Nicolas Pitre | e022c72 | 2011-07-05 22:38:13 -0400 | [diff] [blame] | 298 | .atag_offset = 0x100, |
Russell King | e9dea0c | 2005-07-03 17:38:58 +0100 | [diff] [blame] | 299 | .init_machine = ixdp425_init, |
Nicolas Pitre | 7553ee7 | 2011-07-05 22:28:09 -0400 | [diff] [blame] | 300 | #if defined(CONFIG_PCI) |
| 301 | .dma_zone_size = SZ_64M, |
| 302 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 303 | MACHINE_END |
Deepak Saxena | e0a2008 | 2005-09-18 21:11:56 +0100 | [diff] [blame] | 304 | #endif |
Ruslan V. Sushko | 45fba08 | 2007-04-06 15:00:31 +0100 | [diff] [blame] | 305 | |
| 306 | #ifdef CONFIG_MACH_KIXRP435 |
| 307 | MACHINE_START(KIXRP435, "Intel KIXRP435 Reference Platform") |
| 308 | /* Maintainer: MontaVista Software, Inc. */ |
Ruslan V. Sushko | 45fba08 | 2007-04-06 15:00:31 +0100 | [diff] [blame] | 309 | .map_io = ixp4xx_map_io, |
Rob Herring | f449588 | 2012-03-06 15:01:53 -0600 | [diff] [blame] | 310 | .init_early = ixp4xx_init_early, |
Ruslan V. Sushko | 45fba08 | 2007-04-06 15:00:31 +0100 | [diff] [blame] | 311 | .init_irq = ixp4xx_init_irq, |
Stephen Warren | 6bb27d7 | 2012-11-08 12:40:59 -0700 | [diff] [blame] | 312 | .init_time = ixp4xx_timer_init, |
Nicolas Pitre | e022c72 | 2011-07-05 22:38:13 -0400 | [diff] [blame] | 313 | .atag_offset = 0x100, |
Ruslan V. Sushko | 45fba08 | 2007-04-06 15:00:31 +0100 | [diff] [blame] | 314 | .init_machine = ixdp425_init, |
Nicolas Pitre | 7553ee7 | 2011-07-05 22:28:09 -0400 | [diff] [blame] | 315 | #if defined(CONFIG_PCI) |
| 316 | .dma_zone_size = SZ_64M, |
| 317 | #endif |
Ruslan V. Sushko | 45fba08 | 2007-04-06 15:00:31 +0100 | [diff] [blame] | 318 | MACHINE_END |
| 319 | #endif |