2 * arch/arm/mach-ixp4xx/prpmc1100-setup.c
4 * Motorola PrPMC1100 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>
22 #include <asm/mach-types.h>
23 #include <asm/mach/arch.h>
24 #include <asm/mach/flash.h>
33 * Only one serial port is connected on the PrPMC1100
35 static struct uart_port prpmc1100_serial_port = {
36 .membase = (char*)(IXP4XX_UART1_BASE_VIRT + REG_OFFSET),
37 .mapbase = (IXP4XX_UART1_BASE_PHYS),
38 .irq = IRQ_IXP4XX_UART1,
39 .flags = UPF_SKIP_TEST,
42 .uartclk = IXP4XX_UART_XTAL,
48 void __init prpmc1100_map_io(void)
50 early_serial_setup(&prpmc1100_serial_port);
55 static struct flash_platform_data prpmc1100_flash_data = {
56 .map_name = "cfi_probe",
60 static struct resource prpmc1100_flash_resource = {
61 .start = PRPMC1100_FLASH_BASE,
62 .end = PRPMC1100_FLASH_BASE + PRPMC1100_FLASH_SIZE,
63 .flags = IORESOURCE_MEM,
66 static struct platform_device prpmc1100_flash = {
67 .name = "IXP4XX-Flash",
70 .platform_data = &prpmc1100_flash_data,
73 .resource = &prpmc1100_flash_resource,
76 static struct platform_device *prpmc1100_devices[] __initdata = {
80 static void __init prpmc1100_init(void)
82 platform_add_devices(&prpmc1100_devices, ARRAY_SIZE(prpmc1100_devices));
85 MACHINE_START(PRPMC1100, "Motorola PrPMC1100")
86 MAINTAINER("MontaVista Software, Inc.")
87 BOOT_MEM(PHYS_OFFSET, IXP4XX_PERIPHERAL_BASE_PHYS,
88 IXP4XX_PERIPHERAL_BASE_VIRT)
89 MAPIO(prpmc1100_map_io)
90 INITIRQ(ixp4xx_init_irq)
91 INITTIME(ixp4xx_init_time)
93 INIT_MACHINE(prpmc1100_init)