2 * arch/arm/mach-ixp4xx/ixdp425-setup.c
4 * IXDP425/IXCDP1100 board-setup
6 * Copyright (C) 2003-2005 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_8250.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>
27 void __init
ixdp425_map_io(void)
32 static struct flash_platform_data ixdp425_flash_data
= {
33 .map_name
= "cfi_probe",
37 static struct resource ixdp425_flash_resource
= {
38 .start
= IXDP425_FLASH_BASE
,
39 .end
= IXDP425_FLASH_BASE
+ IXDP425_FLASH_SIZE
,
40 .flags
= IORESOURCE_MEM
,
43 static struct platform_device ixdp425_flash
= {
44 .name
= "IXP4XX-Flash",
47 .platform_data
= &ixdp425_flash_data
,
50 .resource
= &ixdp425_flash_resource
,
53 static struct ixp4xx_i2c_pins ixdp425_i2c_gpio_pins
= {
54 .sda_pin
= IXDP425_SDA_PIN
,
55 .scl_pin
= IXDP425_SCL_PIN
,
58 static struct platform_device ixdp425_i2c_controller
= {
62 .platform_data
= &ixdp425_i2c_gpio_pins
,
67 static struct resource ixdp425_uart_resources
[] = {
69 .start
= IXP4XX_UART1_BASE_PHYS
,
70 .end
= IXP4XX_UART1_BASE_PHYS
+ 0x0fff,
71 .flags
= IORESOURCE_MEM
74 .start
= IXP4XX_UART2_BASE_PHYS
,
75 .end
= IXP4XX_UART2_BASE_PHYS
+ 0x0fff,
76 .flags
= IORESOURCE_MEM
80 static struct plat_serial8250_port ixdp425_uart_data
[] = {
82 .mapbase
= IXP4XX_UART1_BASE_PHYS
,
83 .membase
= (char *)IXP4XX_UART1_BASE_VIRT
+ REG_OFFSET
,
84 .irq
= IRQ_IXP4XX_UART1
,
85 .flags
= UPF_BOOT_AUTOCONF
,
88 .uartclk
= IXP4XX_UART_XTAL
,
91 .mapbase
= IXP4XX_UART2_BASE_PHYS
,
92 .membase
= (char *)IXP4XX_UART2_BASE_VIRT
+ REG_OFFSET
,
93 .irq
= IRQ_IXP4XX_UART1
,
94 .flags
= UPF_BOOT_AUTOCONF
,
97 .uartclk
= IXP4XX_UART_XTAL
,
101 static struct platform_device ixdp425_uart
= {
102 .name
= "serial8250",
104 .dev
.platform_data
= ixdp425_uart_data
,
106 .resource
= ixdp425_uart_resources
109 static struct platform_device
*ixdp425_devices
[] __initdata
= {
110 &ixdp425_i2c_controller
,
116 static void __init
ixdp425_init(void)
121 * IXP465 has 32MB window
123 if (machine_is_ixdp465()) {
124 ixdp425_flash_resource
.end
+= IXDP425_FLASH_SIZE
;
127 platform_add_devices(ixdp425_devices
, ARRAY_SIZE(ixdp425_devices
));
130 MACHINE_START(IXDP425
, "Intel IXDP425 Development Platform")
131 MAINTAINER("MontaVista Software, Inc.")
132 BOOT_MEM(PHYS_OFFSET
, IXP4XX_PERIPHERAL_BASE_PHYS
,
133 IXP4XX_PERIPHERAL_BASE_VIRT
)
134 MAPIO(ixdp425_map_io
)
135 INITIRQ(ixp4xx_init_irq
)
136 .timer
= &ixp4xx_timer
,
138 INIT_MACHINE(ixdp425_init
)
141 MACHINE_START(IXDP465
, "Intel IXDP465 Development Platform")
142 MAINTAINER("MontaVista Software, Inc.")
143 BOOT_MEM(PHYS_OFFSET
, IXP4XX_PERIPHERAL_BASE_PHYS
,
144 IXP4XX_PERIPHERAL_BASE_VIRT
)
145 MAPIO(ixdp425_map_io
)
146 INITIRQ(ixp4xx_init_irq
)
147 .timer
= &ixp4xx_timer
,
149 INIT_MACHINE(ixdp425_init
)
152 MACHINE_START(IXCDP1100
, "Intel IXCDP1100 Development Platform")
153 MAINTAINER("MontaVista Software, Inc.")
154 BOOT_MEM(PHYS_OFFSET
, IXP4XX_PERIPHERAL_BASE_PHYS
,
155 IXP4XX_PERIPHERAL_BASE_VIRT
)
156 MAPIO(ixdp425_map_io
)
157 INITIRQ(ixp4xx_init_irq
)
158 .timer
= &ixp4xx_timer
,
160 INIT_MACHINE(ixdp425_init
)
164 * Avila is functionally equivalent to IXDP425 except that it adds
165 * a CF IDE slot hanging off the expansion bus. When we have a
166 * driver for IXP4xx CF IDE with driver model support we'll move
167 * Avila to it's own setup file.
169 #ifdef CONFIG_ARCH_AVILA
170 MACHINE_START(AVILA
, "Gateworks Avila Network Platform")
171 MAINTAINER("Deepak Saxena <dsaxena@plexity.net>")
172 BOOT_MEM(PHYS_OFFSET
, IXP4XX_PERIPHERAL_BASE_PHYS
,
173 IXP4XX_PERIPHERAL_BASE_VIRT
)
174 MAPIO(ixdp425_map_io
)
175 INITIRQ(ixp4xx_init_irq
)
176 .timer
= &ixp4xx_timer
,
178 INIT_MACHINE(ixdp425_init
)