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/init.h>
12 #include <linux/device.h>
13 #include <linux/serial.h>
14 #include <linux/tty.h>
15 #include <linux/serial_core.h>
17 #include <asm/types.h>
18 #include <asm/setup.h>
19 #include <asm/memory.h>
20 #include <asm/hardware.h>
21 #include <asm/mach-types.h>
23 #include <asm/mach/arch.h>
24 #include <asm/mach/flash.h>
33 * IXDP425 uses both chipset serial ports
35 static struct uart_port ixdp425_serial_ports[] = {
37 .membase = (char*)(IXP4XX_UART1_BASE_VIRT + REG_OFFSET),
38 .mapbase = (IXP4XX_UART1_BASE_PHYS),
39 .irq = IRQ_IXP4XX_UART1,
40 .flags = UPF_SKIP_TEST,
43 .uartclk = IXP4XX_UART_XTAL,
48 .membase = (char*)(IXP4XX_UART2_BASE_VIRT + REG_OFFSET),
49 .mapbase = (IXP4XX_UART2_BASE_PHYS),
50 .irq = IRQ_IXP4XX_UART2,
51 .flags = UPF_SKIP_TEST,
54 .uartclk = IXP4XX_UART_XTAL,
61 void __init ixdp425_map_io(void)
63 early_serial_setup(&ixdp425_serial_ports[0]);
64 early_serial_setup(&ixdp425_serial_ports[1]);
69 static struct flash_platform_data ixdp425_flash_data = {
70 .map_name = "cfi_probe",
74 static struct resource ixdp425_flash_resource = {
75 .start = IXDP425_FLASH_BASE,
76 .end = IXDP425_FLASH_BASE + IXDP425_FLASH_SIZE,
77 .flags = IORESOURCE_MEM,
80 static struct platform_device ixdp425_flash_device = {
81 .name = "IXP4XX-Flash",
84 .platform_data = &ixdp425_flash_data,
87 .resource = &ixdp425_flash_resource,
90 static struct ixp4xx_i2c_pins ixdp425_i2c_gpio_pins = {
91 .sda_pin = IXDP425_SDA_PIN,
92 .scl_pin = IXDP425_SCL_PIN,
95 static struct platform_device ixdp425_i2c_controller = {
99 .platform_data = &ixdp425_i2c_gpio_pins,
104 static void __init ixdp425_init(void)
106 platform_add_device(&ixdp425_flash_device);
107 platform_add_device(&ixdp425_i2c_controller);
110 MACHINE_START(IXDP425, "Intel IXDP425 Development Platform")
111 MAINTAINER("MontaVista Software, Inc.")
112 BOOT_MEM(PHYS_OFFSET, IXP4XX_PERIPHERAL_BASE_PHYS,
113 IXP4XX_PERIPHERAL_BASE_VIRT)
114 MAPIO(ixdp425_map_io)
115 INITIRQ(ixp4xx_init_irq)
117 INIT_MACHINE(ixdp425_init)
120 MACHINE_START(IXCDP1100, "Intel IXCDP1100 Development Platform")
121 MAINTAINER("MontaVista Software, Inc.")
122 BOOT_MEM(PHYS_OFFSET, IXP4XX_PERIPHERAL_BASE_PHYS,
123 IXP4XX_PERIPHERAL_BASE_VIRT)
124 MAPIO(ixdp425_map_io)
125 INITIRQ(ixp4xx_init_irq)
127 INIT_MACHINE(ixdp425_init)
131 * Avila is functionally equivalent to IXDP425 except that it adds
132 * a CF IDE slot hanging off the expansion bus. When we have a
133 * driver for IXP4xx CF IDE with driver model support we'll move
134 * Avila to it's own setup file.
136 #ifdef CONFIG_ARCH_AVILA
137 MACHINE_START(AVILA, "Gateworks Avila Network Platform")
138 MAINTAINER("Deepak Saxena <dsaxena@plexity.net>")
139 BOOT_MEM(PHYS_OFFSET, IXP4XX_PERIPHERAL_BASE_PHYS,
140 IXP4XX_PERIPHERAL_BASE_VIRT)
141 MAPIO(ixdp425_map_io)
142 INITIRQ(ixp4xx_init_irq)
144 INIT_MACHINE(ixdp425_init)