X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/7518db7816e94d78ee32865fb87cba9ecdbd5ab1..e1e2d4135228a81a4ed26cda561a52c0c09e6a0f:/target/linux/ixp4xx/patches-2.6.26/110-pronghorn_series_support.patch diff --git a/target/linux/ixp4xx/patches-2.6.26/110-pronghorn_series_support.patch b/target/linux/ixp4xx/patches-2.6.26/110-pronghorn_series_support.patch index a35663a9b..dcfb65033 100644 --- a/target/linux/ixp4xx/patches-2.6.26/110-pronghorn_series_support.patch +++ b/target/linux/ixp4xx/patches-2.6.26/110-pronghorn_series_support.patch @@ -1,6 +1,6 @@ --- a/arch/arm/configs/ixp4xx_defconfig +++ b/arch/arm/configs/ixp4xx_defconfig -@@ -157,6 +157,8 @@ +@@ -157,6 +157,8 @@ CONFIG_ARCH_ADI_COYOTE=y CONFIG_MACH_GATEWAY7001=y CONFIG_MACH_WG302V1=y CONFIG_MACH_WG302V2=y @@ -11,7 +11,7 @@ CONFIG_MACH_IXDP465=y --- a/arch/arm/mach-ixp4xx/Kconfig +++ b/arch/arm/mach-ixp4xx/Kconfig -@@ -65,6 +65,24 @@ +@@ -65,6 +65,22 @@ config MACH_WG302V2 WG302 v2 or WAG302 v2 Access Points. For more information on this platform, see http://openwrt.org @@ -29,16 +29,14 @@ +# CF slot connected to the expansion bus, so we just enable them together. +# +config MACH_PRONGHORNMETRO -+ bool -+ depends on MACH_PRONGHORN -+ default y ++ def_bool MACH_PRONGHORN + config ARCH_IXDP425 bool "IXDP425" help --- a/arch/arm/mach-ixp4xx/Makefile +++ b/arch/arm/mach-ixp4xx/Makefile -@@ -17,6 +17,7 @@ +@@ -17,6 +17,7 @@ obj-pci-$(CONFIG_MACH_GATEWAY7001) += ga obj-pci-$(CONFIG_MACH_WG302V1) += wg302v1-pci.o obj-pci-$(CONFIG_MACH_WG302V2) += wg302v2-pci.o obj-pci-$(CONFIG_MACH_FSG) += fsg-pci.o @@ -46,7 +44,7 @@ obj-y += common.o -@@ -32,6 +33,7 @@ +@@ -32,6 +33,7 @@ obj-$(CONFIG_MACH_GATEWAY7001) += gatewa obj-$(CONFIG_MACH_WG302V1) += wg302v1-setup.o obj-$(CONFIG_MACH_WG302V2) += wg302v2-setup.o obj-$(CONFIG_MACH_FSG) += fsg-setup.o @@ -153,6 +151,7 @@ +#include +#include +#include ++#include + +#include +#include @@ -242,12 +241,11 @@ + { + .name = "pronghorn:green:status", + .gpio = 7, -+ }, -+ { }, ++ } +}; + +static struct gpio_led_platform_data pronghorn_led_data = { -+ .num_leds = ARRAY_SIZE(pronghorn_led_pin), ++ .num_leds = 1, + .leds = pronghorn_led_pin, +}; + @@ -322,7 +320,7 @@ + ixp4xx_sys_init(); + + pronghorn_flash_resource.start = IXP4XX_EXP_BUS_BASE(0); -+ pronghorn_flash_resource.end = IXP4XX_EXP_BUS_BASE(0) + SZ_16M - 1; ++ pronghorn_flash_resource.end = IXP4XX_EXP_BUS_BASE(0) + SZ_32M - 1; + + *IXP4XX_EXP_CS0 |= IXP4XX_FLASH_WRITABLE; + *IXP4XX_EXP_CS1 = *IXP4XX_EXP_CS0; @@ -330,15 +328,6 @@ + platform_add_devices(pronghorn_devices, ARRAY_SIZE(pronghorn_devices)); + + if (machine_is_pronghorn()) { -+ pronghorn_pata_resources[0].start = IXP4XX_EXP_BUS_BASE(3); -+ pronghorn_pata_resources[0].end = IXP4XX_EXP_BUS_END(3); -+ -+ pronghorn_pata_resources[1].start = IXP4XX_EXP_BUS_BASE(4); -+ pronghorn_pata_resources[1].end = IXP4XX_EXP_BUS_END(4); -+ -+ pronghorn_pata_data.cs0_cfg = IXP4XX_EXP_CS3; -+ pronghorn_pata_data.cs1_cfg = IXP4XX_EXP_CS4; -+ } else { + pronghorn_pata_resources[0].start = IXP4XX_EXP_BUS_BASE(2); + pronghorn_pata_resources[0].end = IXP4XX_EXP_BUS_END(2); + @@ -347,6 +336,15 @@ + + pronghorn_pata_data.cs0_cfg = IXP4XX_EXP_CS2; + pronghorn_pata_data.cs1_cfg = IXP4XX_EXP_CS3; ++ } else { ++ pronghorn_pata_resources[0].start = IXP4XX_EXP_BUS_BASE(3); ++ pronghorn_pata_resources[0].end = IXP4XX_EXP_BUS_END(3); ++ ++ pronghorn_pata_resources[1].start = IXP4XX_EXP_BUS_BASE(4); ++ pronghorn_pata_resources[1].end = IXP4XX_EXP_BUS_END(4); ++ ++ pronghorn_pata_data.cs0_cfg = IXP4XX_EXP_CS3; ++ pronghorn_pata_data.cs1_cfg = IXP4XX_EXP_CS4; + + platform_device_register(&pronghorn_i2c_gpio); + } @@ -377,7 +375,7 @@ +MACHINE_END --- a/include/asm-arm/arch-ixp4xx/uncompress.h +++ b/include/asm-arm/arch-ixp4xx/uncompress.h -@@ -41,7 +41,8 @@ +@@ -41,7 +41,8 @@ static __inline__ void __arch_decomp_set * Some boards are using UART2 as console */ if (machine_is_adi_coyote() || machine_is_gtwx5715() ||