2 * arch/arm/mach-ixp4xx/ixdp425-setup.c
4 * IXDP425/IXCDP1100 board-setup
6 * Copyright (C) 2003-2004 MontaVista Software, Inc.
8 * Author: Deepak Saxena <dsaxena@plexity.net>
11 #include <linux/kernel.h>
12 #include <linux/init.h>
13 #include <linux/device.h>
14 #include <linux/serial.h>
15 #include <linux/tty.h>
16 #include <linux/serial_core.h>
18 #include <asm/types.h>
19 #include <asm/setup.h>
20 #include <asm/memory.h>
21 #include <asm/hardware.h>
22 #include <asm/mach-types.h>
24 #include <asm/mach/arch.h>
25 #include <asm/mach/flash.h>
34 * IXDP425 uses both chipset serial ports
36 static struct uart_port ixdp425_serial_ports[] = {
38 .membase = (char*)(IXP4XX_UART1_BASE_VIRT + REG_OFFSET),
39 .mapbase = (IXP4XX_UART1_BASE_PHYS),
40 .irq = IRQ_IXP4XX_UART1,
41 .flags = UPF_SKIP_TEST,
44 .uartclk = IXP4XX_UART_XTAL,
49 .membase = (char*)(IXP4XX_UART2_BASE_VIRT + REG_OFFSET),
50 .mapbase = (IXP4XX_UART2_BASE_PHYS),
51 .irq = IRQ_IXP4XX_UART2,
52 .flags = UPF_SKIP_TEST,
55 .uartclk = IXP4XX_UART_XTAL,
62 void __init ixdp425_map_io(void)
64 early_serial_setup(&ixdp425_serial_ports[0]);
65 early_serial_setup(&ixdp425_serial_ports[1]);
70 static struct flash_platform_data ixdp425_flash_data = {
71 .map_name = "cfi_probe",
75 static struct resource ixdp425_flash_resource = {
76 .start = IXDP425_FLASH_BASE,
77 .end = IXDP425_FLASH_BASE + IXDP425_FLASH_SIZE,
78 .flags = IORESOURCE_MEM,
81 static struct platform_device ixdp425_flash = {
82 .name = "IXP4XX-Flash",
85 .platform_data = &ixdp425_flash_data,
88 .resource = &ixdp425_flash_resource,
91 static struct ixp4xx_i2c_pins ixdp425_i2c_gpio_pins = {
92 .sda_pin = IXDP425_SDA_PIN,
93 .scl_pin = IXDP425_SCL_PIN,
96 static struct platform_device ixdp425_i2c_controller = {
100 .platform_data = &ixdp425_i2c_gpio_pins,
105 static struct platform_device *ixdp425_devices[] __initdata = {
106 &ixdp425_i2c_controller,
110 static void __init ixdp425_init(void)
115 * IXP465 has 32MB window
117 if (machine_is_ixdp465()) {
118 ixdp425_flash_resource.end += IXDP425_FLASH_SIZE;
121 platform_add_devices(ixdp425_devices, ARRAY_SIZE(ixdp425_devices));
124 MACHINE_START(IXDP425, "Intel IXDP425 Development Platform")
125 MAINTAINER("MontaVista Software, Inc.")
126 BOOT_MEM(PHYS_OFFSET, IXP4XX_PERIPHERAL_BASE_PHYS,
127 IXP4XX_PERIPHERAL_BASE_VIRT)
128 MAPIO(ixdp425_map_io)
129 INITIRQ(ixp4xx_init_irq)
130 .timer = &ixp4xx_timer,
132 INIT_MACHINE(ixdp425_init)
135 MACHINE_START(IXDP465, "Intel IXDP465 Development Platform")
136 MAINTAINER("MontaVista Software, Inc.")
137 BOOT_MEM(PHYS_OFFSET, IXP4XX_PERIPHERAL_BASE_PHYS,
138 IXP4XX_PERIPHERAL_BASE_VIRT)
139 MAPIO(ixdp425_map_io)
140 INITIRQ(ixp4xx_init_irq)
141 .timer = &ixp4xx_timer,
143 INIT_MACHINE(ixdp425_init)
146 MACHINE_START(IXCDP1100, "Intel IXCDP1100 Development Platform")
147 MAINTAINER("MontaVista Software, Inc.")
148 BOOT_MEM(PHYS_OFFSET, IXP4XX_PERIPHERAL_BASE_PHYS,
149 IXP4XX_PERIPHERAL_BASE_VIRT)
150 MAPIO(ixdp425_map_io)
151 INITIRQ(ixp4xx_init_irq)
152 .timer = &ixp4xx_timer,
154 INIT_MACHINE(ixdp425_init)
158 * Avila is functionally equivalent to IXDP425 except that it adds
159 * a CF IDE slot hanging off the expansion bus. When we have a
160 * driver for IXP4xx CF IDE with driver model support we'll move
161 * Avila to it's own setup file.
163 #ifdef CONFIG_ARCH_AVILA
164 MACHINE_START(AVILA, "Gateworks Avila Network Platform")
165 MAINTAINER("Deepak Saxena <dsaxena@plexity.net>")
166 BOOT_MEM(PHYS_OFFSET, IXP4XX_PERIPHERAL_BASE_PHYS,
167 IXP4XX_PERIPHERAL_BASE_VIRT)
168 MAPIO(ixdp425_map_io)
169 INITIRQ(ixp4xx_init_irq)
170 .timer = &ixp4xx_timer,
172 INIT_MACHINE(ixdp425_init)