1 Index: linux-2.6.23.12/arch/arm/mach-ixp4xx/Kconfig
2 ===================================================================
3 --- linux-2.6.23.12.orig/arch/arm/mach-ixp4xx/Kconfig 2008-01-05 13:30:14.000000000 +1030
4 +++ linux-2.6.23.12/arch/arm/mach-ixp4xx/Kconfig 2008-01-05 13:37:05.000000000 +1030
6 WG302 v2 or WAG302 v2 Access Points. For more information
7 on this platform, see http://openwrt.org
9 +config MACH_PRONGHORNMETRO
10 + bool "Pronghorn Metro"
13 + Say 'Y' here if you want your kernel to support the ADI
14 + Engineering Pronghorn Metro Platform. For more
15 + information on this platform, see <file:Documentation/arm/IXP4xx>.
20 Index: linux-2.6.23.12/arch/arm/mach-ixp4xx/Makefile
21 ===================================================================
22 --- linux-2.6.23.12.orig/arch/arm/mach-ixp4xx/Makefile 2008-01-05 13:32:45.000000000 +1030
23 +++ linux-2.6.23.12/arch/arm/mach-ixp4xx/Makefile 2008-01-05 13:37:37.000000000 +1030
25 obj-pci-$(CONFIG_MACH_GATEWAY7001) += gateway7001-pci.o
26 obj-pci-$(CONFIG_MACH_WG302V2) += wg302v2-pci.o
27 obj-pci-$(CONFIG_MACH_FSG) += fsg-pci.o
28 +obj-pci-$(CONFIG_MACH_PRONGHORNMETRO) += pronghornmetro-pci.o
33 obj-$(CONFIG_MACH_GATEWAY7001) += gateway7001-setup.o
34 obj-$(CONFIG_MACH_WG302V2) += wg302v2-setup.o
35 obj-$(CONFIG_MACH_FSG) += fsg-setup.o fsg-power.o
36 +obj-$(CONFIG_MACH_PRONGHORNMETRO) += pronghornmetro-setup.o
38 obj-$(CONFIG_PCI) += $(obj-pci-$(CONFIG_PCI)) common-pci.o
39 Index: linux-2.6.23.12/arch/arm/mach-ixp4xx/pronghornmetro-pci.c
40 ===================================================================
41 --- /dev/null 1970-01-01 00:00:00.000000000 +0000
42 +++ linux-2.6.23.12/arch/arm/mach-ixp4xx/pronghornmetro-pci.c 2008-01-05 13:37:05.000000000 +1030
45 + * arch/arch/mach-ixp4xx/pronghornmetro-pci.c
47 + * PCI setup routines for ADI Engineering Pronghorn Metro
49 + * Copyright (C) 2007 Imre Kaloz <kaloz@openwrt.org>
51 + * based on coyote-pci.c:
52 + * Copyright (C) 2002 Jungo Software Technologies.
53 + * Copyright (C) 2003 MontaVista Softwrae, Inc.
55 + * Maintainer: Imre Kaloz <kaloz@openwrt.org>
57 + * This program is free software; you can redistribute it and/or modify
58 + * it under the terms of the GNU General Public License version 2 as
59 + * published by the Free Software Foundation.
63 +#include <linux/kernel.h>
64 +#include <linux/pci.h>
65 +#include <linux/init.h>
66 +#include <linux/irq.h>
68 +#include <asm/mach-types.h>
69 +#include <asm/hardware.h>
72 +#include <asm/mach/pci.h>
74 +extern void ixp4xx_pci_preinit(void);
75 +extern int ixp4xx_setup(int nr, struct pci_sys_data *sys);
76 +extern struct pci_bus *ixp4xx_scan_bus(int nr, struct pci_sys_data *sys);
78 +void __init pronghornmetro_pci_preinit(void)
80 + set_irq_type(IRQ_IXP4XX_GPIO4, IRQT_LOW);
81 + set_irq_type(IRQ_IXP4XX_GPIO6, IRQT_LOW);
82 + set_irq_type(IRQ_IXP4XX_GPIO11, IRQT_LOW);
83 + set_irq_type(IRQ_IXP4XX_GPIO1, IRQT_LOW);
85 + ixp4xx_pci_preinit();
88 +static int __init pronghornmetro_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
91 + return IRQ_IXP4XX_GPIO4;
92 + else if (slot == 14)
93 + return IRQ_IXP4XX_GPIO6;
94 + else if (slot == 15)
95 + return IRQ_IXP4XX_GPIO11;
96 + else if (slot == 16)
97 + return IRQ_IXP4XX_GPIO1;
101 +struct hw_pci pronghornmetro_pci __initdata = {
102 + .nr_controllers = 1,
103 + .preinit = pronghornmetro_pci_preinit,
104 + .swizzle = pci_std_swizzle,
105 + .setup = ixp4xx_setup,
106 + .scan = ixp4xx_scan_bus,
107 + .map_irq = pronghornmetro_map_irq,
110 +int __init pronghornmetro_pci_init(void)
112 + if (machine_is_pronghorn_metro())
113 + pci_common_init(&pronghornmetro_pci);
117 +subsys_initcall(pronghornmetro_pci_init);
118 Index: linux-2.6.23.12/arch/arm/mach-ixp4xx/pronghornmetro-setup.c
119 ===================================================================
120 --- /dev/null 1970-01-01 00:00:00.000000000 +0000
121 +++ linux-2.6.23.12/arch/arm/mach-ixp4xx/pronghornmetro-setup.c 2008-01-05 13:37:05.000000000 +1030
124 + * arch/arm/mach-ixp4xx/pronghornmetro-setup.c
126 + * Board setup for the ADI Engineering Pronghorn Metro
128 + * Copyright (C) 2007 Imre Kaloz <Kaloz@openwrt.org>
130 + * based on coyote-setup.c:
131 + * Copyright (C) 2003-2005 MontaVista Software, Inc.
133 + * Author: Imre Kaloz <Kaloz@openwrt.org>
136 +#include <linux/kernel.h>
137 +#include <linux/init.h>
138 +#include <linux/device.h>
139 +#include <linux/serial.h>
140 +#include <linux/tty.h>
141 +#include <linux/serial_8250.h>
142 +#include <linux/slab.h>
144 +#include <asm/types.h>
145 +#include <asm/setup.h>
146 +#include <asm/memory.h>
147 +#include <asm/hardware.h>
148 +#include <asm/irq.h>
149 +#include <asm/mach-types.h>
150 +#include <asm/mach/arch.h>
151 +#include <asm/mach/flash.h>
153 +static struct flash_platform_data pronghornmetro_flash_data = {
154 + .map_name = "cfi_probe",
158 +static struct resource pronghornmetro_flash_resource = {
159 + .flags = IORESOURCE_MEM,
162 +static struct platform_device pronghornmetro_flash = {
163 + .name = "IXP4XX-Flash",
166 + .platform_data = &pronghornmetro_flash_data,
168 + .num_resources = 1,
169 + .resource = &pronghornmetro_flash_resource,
172 +static struct resource pronghornmetro_uart_resource = {
173 + .start = IXP4XX_UART2_BASE_PHYS,
174 + .end = IXP4XX_UART2_BASE_PHYS + 0x0fff,
175 + .flags = IORESOURCE_MEM,
178 +static struct plat_serial8250_port pronghornmetro_uart_data[] = {
180 + .mapbase = IXP4XX_UART2_BASE_PHYS,
181 + .membase = (char *)IXP4XX_UART2_BASE_VIRT + REG_OFFSET,
182 + .irq = IRQ_IXP4XX_UART2,
183 + .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST,
184 + .iotype = UPIO_MEM,
186 + .uartclk = IXP4XX_UART_XTAL,
191 +static struct platform_device pronghornmetro_uart = {
192 + .name = "serial8250",
193 + .id = PLAT8250_DEV_PLATFORM,
195 + .platform_data = pronghornmetro_uart_data,
197 + .num_resources = 1,
198 + .resource = &pronghornmetro_uart_resource,
201 +static struct resource pronghornmetro_pata_resources[] = {
203 + .flags = IORESOURCE_MEM
206 + .flags = IORESOURCE_MEM,
210 + .start = IRQ_IXP4XX_GPIO0,
211 + .end = IRQ_IXP4XX_GPIO0,
212 + .flags = IORESOURCE_IRQ,
216 +static struct ixp4xx_pata_data pronghornmetro_pata_data = {
217 + .cs0_bits = 0xbfff0043,
218 + .cs1_bits = 0xbfff0043,
221 +static struct platform_device pronghornmetro_pata = {
222 + .name = "pata_ixp4xx_cf",
224 + .dev.platform_data = &pronghornmetro_pata_data,
225 + .num_resources = ARRAY_SIZE(pronghornmetro_pata_resources),
226 + .resource = pronghornmetro_pata_resources,
229 +static struct platform_device *pronghornmetro_devices[] __initdata = {
230 + &pronghornmetro_flash,
231 + &pronghornmetro_uart,
234 +static void __init pronghornmetro_init(void)
238 + pronghornmetro_flash_resource.start = IXP4XX_EXP_BUS_BASE(0);
239 + pronghornmetro_flash_resource.end = IXP4XX_EXP_BUS_BASE(0) + SZ_16M - 1;
241 + *IXP4XX_EXP_CS0 |= IXP4XX_FLASH_WRITABLE;
242 + *IXP4XX_EXP_CS1 = *IXP4XX_EXP_CS0;
244 + platform_add_devices(pronghornmetro_devices, ARRAY_SIZE(pronghornmetro_devices));
246 + pronghornmetro_pata_resources[0].start = IXP4XX_EXP_BUS_BASE(1);
247 + pronghornmetro_pata_resources[0].end = IXP4XX_EXP_BUS_END(1);
249 + pronghornmetro_pata_resources[1].start = IXP4XX_EXP_BUS_BASE(2);
250 + pronghornmetro_pata_resources[1].end = IXP4XX_EXP_BUS_END(2);
252 + pronghornmetro_pata_data.cs0_cfg = IXP4XX_EXP_CS1;
253 + pronghornmetro_pata_data.cs1_cfg = IXP4XX_EXP_CS2;
255 + platform_device_register(&pronghornmetro_pata);
258 +#ifdef CONFIG_MACH_PRONGHORNMETRO
259 +MACHINE_START(PRONGHORNMETRO, "ADI Engineering Pronghorn Metro")
260 + /* Maintainer: Imre Kaloz <kaloz@openwrt.org> */
261 + .phys_io = IXP4XX_PERIPHERAL_BASE_PHYS,
262 + .io_pg_offst = ((IXP4XX_PERIPHERAL_BASE_VIRT) >> 18) & 0xfffc,
263 + .map_io = ixp4xx_map_io,
264 + .init_irq = ixp4xx_init_irq,
265 + .timer = &ixp4xx_timer,
266 + .boot_params = 0x0100,
267 + .init_machine = pronghornmetro_init,
270 Index: linux-2.6.23.12/Documentation/arm/IXP4xx
271 ===================================================================
272 --- linux-2.6.23.12.orig/Documentation/arm/IXP4xx 2008-01-05 13:30:14.000000000 +1030
273 +++ linux-2.6.23.12/Documentation/arm/IXP4xx 2008-01-05 13:37:05.000000000 +1030
275 the platform has two mini-PCI slots used for 802.11[bga] cards.
276 Finally, there is an IDE port hanging off the expansion bus.
278 +ADI Engineering Pronghorn Metro Platform
279 +http://www.adiengineering.com/php-bin/ecomm4/productDisplay.php?category_id=30&product_id=85
281 Gateworks Avila Network Platform
282 http://www.gateworks.com/avila_sbc.htm
284 Index: linux-2.6.23.12/include/asm-arm/arch-ixp4xx/uncompress.h
285 ===================================================================
286 --- linux-2.6.23.12.orig/include/asm-arm/arch-ixp4xx/uncompress.h 2008-01-05 13:30:14.000000000 +1030
287 +++ linux-2.6.23.12/include/asm-arm/arch-ixp4xx/uncompress.h 2008-01-05 13:37:05.000000000 +1030
289 * Some boards are using UART2 as console
291 if (machine_is_adi_coyote() || machine_is_gtwx5715() ||
292 - machine_is_gateway7001() || machine_is_wg302v2())
293 + machine_is_gateway7001() || machine_is_wg302v2() ||
294 + machine_is_pronghorn_metro())
295 uart_base = (volatile u32*) IXP4XX_UART2_BASE_PHYS;
297 uart_base = (volatile u32*) IXP4XX_UART1_BASE_PHYS;