2 * arch/arm/mach-ixp4xx/coyote-setup.c
4 * Board setup for ADI Engineering and IXDGP425 boards
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>
23 #include <asm/mach-types.h>
24 #include <asm/mach/arch.h>
25 #include <asm/mach/flash.h>
27 void __init coyote_map_io(void)
32 static struct flash_platform_data coyote_flash_data = {
33 .map_name = "cfi_probe",
37 static struct resource coyote_flash_resource = {
38 .start = COYOTE_FLASH_BASE,
39 .end = COYOTE_FLASH_BASE + COYOTE_FLASH_SIZE,
40 .flags = IORESOURCE_MEM,
43 static struct platform_device coyote_flash = {
44 .name = "IXP4XX-Flash",
47 .platform_data = &coyote_flash_data,
50 .resource = &coyote_flash_resource,
53 static struct resource coyote_uart_resource = {
54 .start = IXP4XX_UART2_BASE_PHYS,
55 .end = IXP4XX_UART2_BASE_PHYS + 0x0fff,
56 .flags = IORESOURCE_MEM,
59 static struct plat_serial8250_port coyote_uart_data = {
60 .mapbase = IXP4XX_UART2_BASE_PHYS,
61 .membase = (char *)IXP4XX_UART2_BASE_VIRT + REG_OFFSET,
62 .irq = IRQ_IXP4XX_UART2,
63 .flags = UPF_BOOT_AUTOCONF,
66 .uartclk = IXP4XX_UART_XTAL,
69 static struct platform_device coyote_uart = {
73 .platform_data = &coyote_uart_data,
76 .resource = &coyote_uart_resource,
79 static struct platform_device *coyote_devices[] __initdata = {
84 static void __init coyote_init(void)
86 *IXP4XX_EXP_CS0 |= IXP4XX_FLASH_WRITABLE;
87 *IXP4XX_EXP_CS1 = *IXP4XX_EXP_CS0;
89 if (machine_is_ixdpg425()) {
90 coyote_uart_data.membase =
91 (char*)(IXP4XX_UART1_BASE_VIRT + REG_OFFSET);
92 coyote_uart_data.mapbase = IXP4XX_UART1_BASE_PHYS;
93 coyote_uart_data.irq = IRQ_IXP4XX_UART1;
98 platform_add_devices(coyote_devices, ARRAY_SIZE(coyote_devices));
101 #ifdef CONFIG_ARCH_ADI_COYOTE
102 MACHINE_START(ADI_COYOTE, "ADI Engineering Coyote")
103 MAINTAINER("MontaVista Software, Inc.")
104 BOOT_MEM(PHYS_OFFSET, IXP4XX_PERIPHERAL_BASE_PHYS,
105 IXP4XX_PERIPHERAL_BASE_VIRT)
107 INITIRQ(ixp4xx_init_irq)
108 .timer = &ixp4xx_timer,
110 INIT_MACHINE(coyote_init)
115 * IXDPG425 is identical to Coyote except for which serial port
118 #ifdef CONFIG_MACH_IXDPG425
119 MACHINE_START(IXDPG425, "Intel IXDPG425")
120 MAINTAINER("MontaVista Software, Inc.")
121 BOOT_MEM(PHYS_OFFSET, IXP4XX_PERIPHERAL_BASE_PHYS,
122 IXP4XX_PERIPHERAL_BASE_VIRT)
124 INITIRQ(ixp4xx_init_irq)
125 .timer = &ixp4xx_timer,
127 INIT_MACHINE(coyote_init)