X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/7f8cad5eeb1916f10c61634df15999c0ba8b6776..25e246f549c727ac7feca70dcebf1ea3c2845bd4:/target/linux/ixp4xx/patches-2.6.26/500-usr8200_support.patch?ds=sidebyside diff --git a/target/linux/ixp4xx/patches-2.6.26/500-usr8200_support.patch b/target/linux/ixp4xx/patches-2.6.26/500-usr8200_support.patch index 7af073225..6112fe60f 100644 --- a/target/linux/ixp4xx/patches-2.6.26/500-usr8200_support.patch +++ b/target/linux/ixp4xx/patches-2.6.26/500-usr8200_support.patch @@ -1,7 +1,5 @@ -Index: linux-2.6.26.5/arch/arm/mach-ixp4xx/Kconfig -=================================================================== ---- linux-2.6.26.5.orig/arch/arm/mach-ixp4xx/Kconfig 2008-10-22 22:31:30.000000000 +0100 -+++ linux-2.6.26.5/arch/arm/mach-ixp4xx/Kconfig 2008-10-22 22:40:55.000000000 +0100 +--- a/arch/arm/mach-ixp4xx/Kconfig ++++ b/arch/arm/mach-ixp4xx/Kconfig @@ -97,6 +97,14 @@ config MACH_SIDEWINDER Engineering Sidewinder board. For more information on this platform, see http://www.adiengineering.com @@ -17,10 +15,8 @@ Index: linux-2.6.26.5/arch/arm/mach-ixp4xx/Kconfig config MACH_COMPEX bool "Compex WP18 / NP18A" select PCI -Index: linux-2.6.26.5/arch/arm/mach-ixp4xx/Makefile -=================================================================== ---- linux-2.6.26.5.orig/arch/arm/mach-ixp4xx/Makefile 2008-10-22 22:31:37.000000000 +0100 -+++ linux-2.6.26.5/arch/arm/mach-ixp4xx/Makefile 2008-10-22 22:49:38.000000000 +0100 +--- a/arch/arm/mach-ixp4xx/Makefile ++++ b/arch/arm/mach-ixp4xx/Makefile @@ -24,6 +24,7 @@ obj-pci-$(CONFIG_MACH_COMPEX) += ixdp42 obj-pci-$(CONFIG_MACH_WRT300NV2) += wrt300nv2-pci.o obj-pci-$(CONFIG_MACH_AP1000) += ixdp425-pci.o @@ -37,10 +33,8 @@ Index: linux-2.6.26.5/arch/arm/mach-ixp4xx/Makefile obj-$(CONFIG_PCI) += $(obj-pci-$(CONFIG_PCI)) common-pci.o obj-$(CONFIG_IXP4XX_QMGR) += ixp4xx_qmgr.o -Index: linux-2.6.26.5/arch/arm/mach-ixp4xx/usr8200-pci.c -=================================================================== ---- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ linux-2.6.26.5/arch/arm/mach-ixp4xx/usr8200-pci.c 2008-10-22 23:37:56.000000000 +0100 +--- /dev/null ++++ b/arch/arm/mach-ixp4xx/usr8200-pci.c @@ -0,0 +1,78 @@ +/* + * arch/arch/mach-ixp4xx/usr8200-pci.c @@ -120,10 +114,8 @@ Index: linux-2.6.26.5/arch/arm/mach-ixp4xx/usr8200-pci.c +} + +subsys_initcall(usr8200_pci_init); -Index: linux-2.6.26.5/arch/arm/mach-ixp4xx/usr8200-setup.c -=================================================================== ---- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ linux-2.6.26.5/arch/arm/mach-ixp4xx/usr8200-setup.c 2008-10-22 23:41:48.000000000 +0100 +--- /dev/null ++++ b/arch/arm/mach-ixp4xx/usr8200-setup.c @@ -0,0 +1,187 @@ +/* + * arch/arm/mach-ixp4xx/usr8200-setup.c @@ -258,24 +250,24 @@ Index: linux-2.6.26.5/arch/arm/mach-ixp4xx/usr8200-setup.c + +static struct eth_plat_info usr8200_plat_eth[] = { + { -+ .phy = 9, -+ .rxq = 3, -+ .txreadyq = 20, -+ }, { + .phy = 16, + .rxq = 4, + .txreadyq = 21, ++ }, { ++ .phy = 9, ++ .rxq = 3, ++ .txreadyq = 20, + } +}; + +static struct platform_device usr8200_eth[] = { + { + .name = "ixp4xx_eth", -+ .id = IXP4XX_ETH_NPEB, ++ .id = IXP4XX_ETH_NPEC, + .dev.platform_data = usr8200_plat_eth, + }, { + .name = "ixp4xx_eth", -+ .id = IXP4XX_ETH_NPEC, ++ .id = IXP4XX_ETH_NPEB, + .dev.platform_data = usr8200_plat_eth + 1, + } +}; @@ -312,10 +304,8 @@ Index: linux-2.6.26.5/arch/arm/mach-ixp4xx/usr8200-setup.c + .boot_params = 0x0100, + .init_machine = usr8200_init, +MACHINE_END -Index: linux-2.6.26.5/include/asm-arm/arch-ixp4xx/uncompress.h -=================================================================== ---- linux-2.6.26.5.orig/include/asm-arm/arch-ixp4xx/uncompress.h 2008-10-22 23:27:33.000000000 +0100 -+++ linux-2.6.26.5/include/asm-arm/arch-ixp4xx/uncompress.h 2008-10-22 23:28:09.000000000 +0100 +--- a/include/asm-arm/arch-ixp4xx/uncompress.h ++++ b/include/asm-arm/arch-ixp4xx/uncompress.h @@ -43,7 +43,7 @@ static __inline__ void __arch_decomp_set if (machine_is_adi_coyote() || machine_is_gtwx5715() || machine_is_gateway7001() || machine_is_wg302v2() ||