From e68d0ffcffeb66e1f81b12fafed8c5ac74a0050b Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 1 Dec 2011 16:41:29 +0100 Subject: refresh linux kernels --- Config.in | 8 +- mk/kernel-ver.mk | 11 +- mk/mirrors.mk | 2 +- scripts/install-rb532.sh | 4 +- target/linux/patches/2.6.36/ar7.patch | 90 - target/linux/patches/2.6.36/ar71xx.patch | 18666 ---- target/linux/patches/2.6.36/aufs2.patch | 33532 ------- target/linux/patches/2.6.36/brcm.patch | 169 - .../linux/patches/2.6.36/bsd-compatibility.patch | 2512 - target/linux/patches/2.6.36/cc-abstract.patch | 14 - target/linux/patches/2.6.36/cris.patch | 5736 -- target/linux/patches/2.6.36/cygwin-compat.patch | 14 - target/linux/patches/2.6.36/drm-kconfig.patch | 34 - target/linux/patches/2.6.36/exmap.patch | 11 - target/linux/patches/2.6.36/foxg20.patch | 522 - target/linux/patches/2.6.36/freebsd-compat.patch | 11 - target/linux/patches/2.6.36/gemalto.patch | 11 - target/linux/patches/2.6.36/lemote.patch | 4267 - target/linux/patches/2.6.36/mtd-root.patch | 62 - target/linux/patches/2.6.36/ocf-20100325.patch | 87545 ---------------- target/linux/patches/2.6.36/rb532.patch | 18 - target/linux/patches/2.6.36/startup.patch | 20 - target/linux/patches/2.6.36/uuid.patch | 261 - target/linux/patches/2.6.36/yaffs2.patch | 16912 ---- target/linux/patches/2.6.36/zboot-brcm-reloc.patch | 297 - target/linux/patches/2.6.37/ar7.patch | 90 - target/linux/patches/2.6.37/ar71xx.patch | 18667 ---- target/linux/patches/2.6.37/atheros.patch | 6332 -- target/linux/patches/2.6.37/aufs2.patch | 28523 ------ target/linux/patches/2.6.37/brcm.patch | 396 - .../linux/patches/2.6.37/bsd-compatibility.patch | 2512 - target/linux/patches/2.6.37/cc-abstract.patch | 14 - target/linux/patches/2.6.37/cris.patch | 5745 -- target/linux/patches/2.6.37/cygwin-compat.patch | 14 - target/linux/patches/2.6.37/drm-kconfig.patch | 36 - target/linux/patches/2.6.37/exmap.patch | 11 - target/linux/patches/2.6.37/foxg20.patch | 520 - target/linux/patches/2.6.37/freebsd-compat.patch | 11 - target/linux/patches/2.6.37/gemalto.patch | 11 - target/linux/patches/2.6.37/lemote.patch | 4271 - target/linux/patches/2.6.37/mtd-rootfs.patch | 25 - target/linux/patches/2.6.37/ocf-20100325.patch | 87545 ---------------- target/linux/patches/2.6.37/rb532.patch | 18 - target/linux/patches/2.6.37/startup.patch | 20 - target/linux/patches/2.6.37/usb-defaults-off.patch | 32 - target/linux/patches/2.6.37/uuid.patch | 261 - .../patches/2.6.37/vga-cons-default-off.patch | 12 - target/linux/patches/2.6.37/yaffs2.patch | 16912 ---- target/linux/patches/2.6.37/zlib-inflate.patch | 12 - target/linux/patches/2.6.39/arm-statcmd.patch | 12 - .../linux/patches/2.6.39/bsd-compatibility.patch | 2512 - target/linux/patches/2.6.39/cris-etrax.patch | 12 - .../linux/patches/2.6.39/cris-thread-macro.patch | 12 - target/linux/patches/2.6.39/cris.patch | 5739 -- target/linux/patches/2.6.39/defaults.patch | 26 - target/linux/patches/2.6.39/fon2100.patch | 6279 -- target/linux/patches/2.6.39/gemalto.patch | 11 - target/linux/patches/2.6.39/mips-malta.patch | 135 - target/linux/patches/2.6.39/mmc-host.patch | 36 - target/linux/patches/2.6.39/non-static.patch | 33 - target/linux/patches/2.6.39/ocf-20100325.patch | 90176 ----------------- target/linux/patches/2.6.39/rb4xx.patch | 25253 ----- target/linux/patches/2.6.39/sparc-include.patch | 11 - target/linux/patches/2.6.39/startup.patch | 20 - target/linux/patches/2.6.39/usb-defaults-off.patch | 32 - target/linux/patches/2.6.39/uuid.patch | 255 - .../patches/2.6.39/vga-cons-default-off.patch | 12 - target/linux/patches/2.6.39/wlan-cf.patch | 11 - target/linux/patches/2.6.39/x86-build.patch | 11 - target/linux/patches/2.6.39/zlib-inflate.patch | 12 - target/linux/patches/3.0.4/bsd-compatibility.patch | 2512 - target/linux/patches/3.0.4/cris-etrax.patch | 12 - target/linux/patches/3.0.4/defaults.patch | 22 - target/linux/patches/3.0.4/fon2100.patch | 6279 -- target/linux/patches/3.0.4/gemalto.patch | 11 - target/linux/patches/3.0.4/mips-malta.patch | 135 - target/linux/patches/3.0.4/mmc-host.patch | 36 - target/linux/patches/3.0.4/non-static.patch | 33 - target/linux/patches/3.0.4/ocf-20110720.patch | 99170 ------------------- target/linux/patches/3.0.4/sparc-include.patch | 11 - target/linux/patches/3.0.4/startup.patch | 20 - target/linux/patches/3.0.4/usb-defaults-off.patch | 32 - target/linux/patches/3.0.4/uuid.patch | 255 - .../linux/patches/3.0.4/vga-cons-default-off.patch | 12 - target/linux/patches/3.0.4/wlan-cf.patch | 11 - target/linux/patches/3.0.4/x86-build.patch | 11 - target/linux/patches/3.0.4/zlib-inflate.patch | 12 - target/linux/patches/3.0.8/bsd-compatibility.patch | 2512 - target/linux/patches/3.0.8/cris-etrax.patch | 12 - target/linux/patches/3.0.8/defaults.patch | 22 - target/linux/patches/3.0.8/fon2100.patch | 6279 -- target/linux/patches/3.0.8/gemalto.patch | 11 - target/linux/patches/3.0.8/mips-malta.patch | 135 - target/linux/patches/3.0.8/mmc-host.patch | 36 - target/linux/patches/3.0.8/non-static.patch | 33 - target/linux/patches/3.0.8/ocf-20110720.patch | 99170 ------------------- target/linux/patches/3.0.8/sparc-include.patch | 11 - target/linux/patches/3.0.8/startup.patch | 20 - target/linux/patches/3.0.8/usb-defaults-off.patch | 32 - target/linux/patches/3.0.8/uuid.patch | 255 - .../linux/patches/3.0.8/vga-cons-default-off.patch | 12 - target/linux/patches/3.0.8/wlan-cf.patch | 11 - target/linux/patches/3.0.8/x86-build.patch | 11 - target/linux/patches/3.0.8/zlib-inflate.patch | 12 - target/linux/patches/3.0.9/bsd-compatibility.patch | 2512 + target/linux/patches/3.0.9/cris-etrax.patch | 12 + target/linux/patches/3.0.9/defaults.patch | 22 + target/linux/patches/3.0.9/fon2100.patch | 6279 ++ target/linux/patches/3.0.9/gemalto.patch | 11 + target/linux/patches/3.0.9/mips-malta.patch | 135 + target/linux/patches/3.0.9/mmc-host.patch | 36 + target/linux/patches/3.0.9/non-static.patch | 33 + target/linux/patches/3.0.9/ocf-20110720.patch | 99170 +++++++++++++++++++ target/linux/patches/3.0.9/sparc-include.patch | 11 + target/linux/patches/3.0.9/startup.patch | 20 + target/linux/patches/3.0.9/usb-defaults-off.patch | 32 + target/linux/patches/3.0.9/uuid.patch | 255 + .../linux/patches/3.0.9/vga-cons-default-off.patch | 12 + target/linux/patches/3.0.9/wlan-cf.patch | 11 + target/linux/patches/3.0.9/x86-build.patch | 11 + target/linux/patches/3.0.9/zlib-inflate.patch | 12 + target/linux/patches/3.1.4/bsd-compatibility.patch | 2512 + target/linux/patches/3.1.4/cris-etrax.patch | 12 + target/linux/patches/3.1.4/defaults.patch | 22 + target/linux/patches/3.1.4/fon2100.patch | 6279 ++ target/linux/patches/3.1.4/gemalto.patch | 11 + target/linux/patches/3.1.4/mmc-host.patch | 36 + target/linux/patches/3.1.4/non-static.patch | 33 + target/linux/patches/3.1.4/ocf-20110720.patch | 96377 ++++++++++++++++++ target/linux/patches/3.1.4/sparc-include.patch | 11 + target/linux/patches/3.1.4/startup.patch | 20 + target/linux/patches/3.1.4/usb-defaults-off.patch | 32 + target/linux/patches/3.1.4/uuid.patch | 255 + .../linux/patches/3.1.4/vga-cons-default-off.patch | 12 + target/linux/patches/3.1.4/wlan-cf.patch | 11 + target/linux/patches/3.1.4/x86-build.patch | 11 + target/linux/patches/3.1.4/zlib-inflate.patch | 12 + .../patches/2.6.35.7/cleankernel.patch | 11 - .../patches/2.6.35.7/etrax-header.patch | 73 - .../patches/2.6.35.7/linux-gcc-check.patch | 18 - .../patches/2.6.35.7/microperl.patch | 24 - .../kernel-headers/patches/2.6.36/aufs2.patch | 240 - .../patches/2.6.36/cleankernel.patch | 11 - .../patches/2.6.36/etrax-header.patch | 75 - .../patches/2.6.36/linux-gcc-check.patch | 18 - .../kernel-headers/patches/2.6.36/microperl.patch | 24 - .../kernel-headers/patches/2.6.37/aufs2.patch | 240 - .../patches/2.6.37/cleankernel.patch | 11 - .../patches/2.6.37/etrax-header.patch | 75 - .../patches/2.6.37/linux-gcc-check.patch | 18 - .../kernel-headers/patches/2.6.37/microperl.patch | 24 - .../kernel-headers/patches/2.6.39/aufs2.patch | 240 - .../patches/2.6.39/cleankernel.patch | 11 - .../patches/2.6.39/etrax-header.patch | 75 - .../patches/2.6.39/linux-gcc-check.patch | 18 - .../kernel-headers/patches/2.6.39/microperl.patch | 24 - toolchain/kernel-headers/patches/3.0.4/aufs2.patch | 240 - .../kernel-headers/patches/3.0.4/cleankernel.patch | 11 - .../patches/3.0.4/etrax-header.patch | 75 - .../patches/3.0.4/linux-gcc-check.patch | 18 - .../kernel-headers/patches/3.0.4/microperl.patch | 24 - toolchain/kernel-headers/patches/3.0.8/aufs2.patch | 240 - .../kernel-headers/patches/3.0.8/cleankernel.patch | 11 - .../patches/3.0.8/etrax-header.patch | 75 - .../patches/3.0.8/linux-gcc-check.patch | 18 - .../kernel-headers/patches/3.0.8/microperl.patch | 24 - toolchain/kernel-headers/patches/3.0.9/aufs2.patch | 240 + .../kernel-headers/patches/3.0.9/cleankernel.patch | 11 + .../patches/3.0.9/etrax-header.patch | 75 + .../patches/3.0.9/linux-gcc-check.patch | 18 + .../kernel-headers/patches/3.0.9/microperl.patch | 24 + toolchain/kernel-headers/patches/3.1.4/aufs2.patch | 238 + .../kernel-headers/patches/3.1.4/cleankernel.patch | 11 + .../patches/3.1.4/etrax-header.patch | 75 + .../patches/3.1.4/linux-gcc-check.patch | 18 + .../kernel-headers/patches/3.1.4/microperl.patch | 24 + 176 files changed, 214971 insertions(+), 692416 deletions(-) delete mode 100644 target/linux/patches/2.6.36/ar7.patch delete mode 100644 target/linux/patches/2.6.36/ar71xx.patch delete mode 100644 target/linux/patches/2.6.36/aufs2.patch delete mode 100644 target/linux/patches/2.6.36/brcm.patch delete mode 100644 target/linux/patches/2.6.36/bsd-compatibility.patch delete mode 100644 target/linux/patches/2.6.36/cc-abstract.patch delete mode 100644 target/linux/patches/2.6.36/cris.patch delete mode 100644 target/linux/patches/2.6.36/cygwin-compat.patch delete mode 100644 target/linux/patches/2.6.36/drm-kconfig.patch delete mode 100644 target/linux/patches/2.6.36/exmap.patch delete mode 100644 target/linux/patches/2.6.36/foxg20.patch delete mode 100644 target/linux/patches/2.6.36/freebsd-compat.patch delete mode 100644 target/linux/patches/2.6.36/gemalto.patch delete mode 100644 target/linux/patches/2.6.36/lemote.patch delete mode 100644 target/linux/patches/2.6.36/mtd-root.patch delete mode 100644 target/linux/patches/2.6.36/ocf-20100325.patch delete mode 100644 target/linux/patches/2.6.36/rb532.patch delete mode 100644 target/linux/patches/2.6.36/startup.patch delete mode 100644 target/linux/patches/2.6.36/uuid.patch delete mode 100644 target/linux/patches/2.6.36/yaffs2.patch delete mode 100644 target/linux/patches/2.6.36/zboot-brcm-reloc.patch delete mode 100644 target/linux/patches/2.6.37/ar7.patch delete mode 100644 target/linux/patches/2.6.37/ar71xx.patch delete mode 100644 target/linux/patches/2.6.37/atheros.patch delete mode 100644 target/linux/patches/2.6.37/aufs2.patch delete mode 100644 target/linux/patches/2.6.37/brcm.patch delete mode 100644 target/linux/patches/2.6.37/bsd-compatibility.patch delete mode 100644 target/linux/patches/2.6.37/cc-abstract.patch delete mode 100644 target/linux/patches/2.6.37/cris.patch delete mode 100644 target/linux/patches/2.6.37/cygwin-compat.patch delete mode 100644 target/linux/patches/2.6.37/drm-kconfig.patch delete mode 100644 target/linux/patches/2.6.37/exmap.patch delete mode 100644 target/linux/patches/2.6.37/foxg20.patch delete mode 100644 target/linux/patches/2.6.37/freebsd-compat.patch delete mode 100644 target/linux/patches/2.6.37/gemalto.patch delete mode 100644 target/linux/patches/2.6.37/lemote.patch delete mode 100644 target/linux/patches/2.6.37/mtd-rootfs.patch delete mode 100644 target/linux/patches/2.6.37/ocf-20100325.patch delete mode 100644 target/linux/patches/2.6.37/rb532.patch delete mode 100644 target/linux/patches/2.6.37/startup.patch delete mode 100644 target/linux/patches/2.6.37/usb-defaults-off.patch delete mode 100644 target/linux/patches/2.6.37/uuid.patch delete mode 100644 target/linux/patches/2.6.37/vga-cons-default-off.patch delete mode 100644 target/linux/patches/2.6.37/yaffs2.patch delete mode 100644 target/linux/patches/2.6.37/zlib-inflate.patch delete mode 100644 target/linux/patches/2.6.39/arm-statcmd.patch delete mode 100644 target/linux/patches/2.6.39/bsd-compatibility.patch delete mode 100644 target/linux/patches/2.6.39/cris-etrax.patch delete mode 100644 target/linux/patches/2.6.39/cris-thread-macro.patch delete mode 100644 target/linux/patches/2.6.39/cris.patch delete mode 100644 target/linux/patches/2.6.39/defaults.patch delete mode 100644 target/linux/patches/2.6.39/fon2100.patch delete mode 100644 target/linux/patches/2.6.39/gemalto.patch delete mode 100644 target/linux/patches/2.6.39/mips-malta.patch delete mode 100644 target/linux/patches/2.6.39/mmc-host.patch delete mode 100644 target/linux/patches/2.6.39/non-static.patch delete mode 100644 target/linux/patches/2.6.39/ocf-20100325.patch delete mode 100644 target/linux/patches/2.6.39/rb4xx.patch delete mode 100644 target/linux/patches/2.6.39/sparc-include.patch delete mode 100644 target/linux/patches/2.6.39/startup.patch delete mode 100644 target/linux/patches/2.6.39/usb-defaults-off.patch delete mode 100644 target/linux/patches/2.6.39/uuid.patch delete mode 100644 target/linux/patches/2.6.39/vga-cons-default-off.patch delete mode 100644 target/linux/patches/2.6.39/wlan-cf.patch delete mode 100644 target/linux/patches/2.6.39/x86-build.patch delete mode 100644 target/linux/patches/2.6.39/zlib-inflate.patch delete mode 100644 target/linux/patches/3.0.4/bsd-compatibility.patch delete mode 100644 target/linux/patches/3.0.4/cris-etrax.patch delete mode 100644 target/linux/patches/3.0.4/defaults.patch delete mode 100644 target/linux/patches/3.0.4/fon2100.patch delete mode 100644 target/linux/patches/3.0.4/gemalto.patch delete mode 100644 target/linux/patches/3.0.4/mips-malta.patch delete mode 100644 target/linux/patches/3.0.4/mmc-host.patch delete mode 100644 target/linux/patches/3.0.4/non-static.patch delete mode 100644 target/linux/patches/3.0.4/ocf-20110720.patch delete mode 100644 target/linux/patches/3.0.4/sparc-include.patch delete mode 100644 target/linux/patches/3.0.4/startup.patch delete mode 100644 target/linux/patches/3.0.4/usb-defaults-off.patch delete mode 100644 target/linux/patches/3.0.4/uuid.patch delete mode 100644 target/linux/patches/3.0.4/vga-cons-default-off.patch delete mode 100644 target/linux/patches/3.0.4/wlan-cf.patch delete mode 100644 target/linux/patches/3.0.4/x86-build.patch delete mode 100644 target/linux/patches/3.0.4/zlib-inflate.patch delete mode 100644 target/linux/patches/3.0.8/bsd-compatibility.patch delete mode 100644 target/linux/patches/3.0.8/cris-etrax.patch delete mode 100644 target/linux/patches/3.0.8/defaults.patch delete mode 100644 target/linux/patches/3.0.8/fon2100.patch delete mode 100644 target/linux/patches/3.0.8/gemalto.patch delete mode 100644 target/linux/patches/3.0.8/mips-malta.patch delete mode 100644 target/linux/patches/3.0.8/mmc-host.patch delete mode 100644 target/linux/patches/3.0.8/non-static.patch delete mode 100644 target/linux/patches/3.0.8/ocf-20110720.patch delete mode 100644 target/linux/patches/3.0.8/sparc-include.patch delete mode 100644 target/linux/patches/3.0.8/startup.patch delete mode 100644 target/linux/patches/3.0.8/usb-defaults-off.patch delete mode 100644 target/linux/patches/3.0.8/uuid.patch delete mode 100644 target/linux/patches/3.0.8/vga-cons-default-off.patch delete mode 100644 target/linux/patches/3.0.8/wlan-cf.patch delete mode 100644 target/linux/patches/3.0.8/x86-build.patch delete mode 100644 target/linux/patches/3.0.8/zlib-inflate.patch create mode 100644 target/linux/patches/3.0.9/bsd-compatibility.patch create mode 100644 target/linux/patches/3.0.9/cris-etrax.patch create mode 100644 target/linux/patches/3.0.9/defaults.patch create mode 100644 target/linux/patches/3.0.9/fon2100.patch create mode 100644 target/linux/patches/3.0.9/gemalto.patch create mode 100644 target/linux/patches/3.0.9/mips-malta.patch create mode 100644 target/linux/patches/3.0.9/mmc-host.patch create mode 100644 target/linux/patches/3.0.9/non-static.patch create mode 100644 target/linux/patches/3.0.9/ocf-20110720.patch create mode 100644 target/linux/patches/3.0.9/sparc-include.patch create mode 100644 target/linux/patches/3.0.9/startup.patch create mode 100644 target/linux/patches/3.0.9/usb-defaults-off.patch create mode 100644 target/linux/patches/3.0.9/uuid.patch create mode 100644 target/linux/patches/3.0.9/vga-cons-default-off.patch create mode 100644 target/linux/patches/3.0.9/wlan-cf.patch create mode 100644 target/linux/patches/3.0.9/x86-build.patch create mode 100644 target/linux/patches/3.0.9/zlib-inflate.patch create mode 100644 target/linux/patches/3.1.4/bsd-compatibility.patch create mode 100644 target/linux/patches/3.1.4/cris-etrax.patch create mode 100644 target/linux/patches/3.1.4/defaults.patch create mode 100644 target/linux/patches/3.1.4/fon2100.patch create mode 100644 target/linux/patches/3.1.4/gemalto.patch create mode 100644 target/linux/patches/3.1.4/mmc-host.patch create mode 100644 target/linux/patches/3.1.4/non-static.patch create mode 100644 target/linux/patches/3.1.4/ocf-20110720.patch create mode 100644 target/linux/patches/3.1.4/sparc-include.patch create mode 100644 target/linux/patches/3.1.4/startup.patch create mode 100644 target/linux/patches/3.1.4/usb-defaults-off.patch create mode 100644 target/linux/patches/3.1.4/uuid.patch create mode 100644 target/linux/patches/3.1.4/vga-cons-default-off.patch create mode 100644 target/linux/patches/3.1.4/wlan-cf.patch create mode 100644 target/linux/patches/3.1.4/x86-build.patch create mode 100644 target/linux/patches/3.1.4/zlib-inflate.patch delete mode 100644 toolchain/kernel-headers/patches/2.6.35.7/cleankernel.patch delete mode 100644 toolchain/kernel-headers/patches/2.6.35.7/etrax-header.patch delete mode 100644 toolchain/kernel-headers/patches/2.6.35.7/linux-gcc-check.patch delete mode 100644 toolchain/kernel-headers/patches/2.6.35.7/microperl.patch delete mode 100644 toolchain/kernel-headers/patches/2.6.36/aufs2.patch delete mode 100644 toolchain/kernel-headers/patches/2.6.36/cleankernel.patch delete mode 100644 toolchain/kernel-headers/patches/2.6.36/etrax-header.patch delete mode 100644 toolchain/kernel-headers/patches/2.6.36/linux-gcc-check.patch delete mode 100644 toolchain/kernel-headers/patches/2.6.36/microperl.patch delete mode 100644 toolchain/kernel-headers/patches/2.6.37/aufs2.patch delete mode 100644 toolchain/kernel-headers/patches/2.6.37/cleankernel.patch delete mode 100644 toolchain/kernel-headers/patches/2.6.37/etrax-header.patch delete mode 100644 toolchain/kernel-headers/patches/2.6.37/linux-gcc-check.patch delete mode 100644 toolchain/kernel-headers/patches/2.6.37/microperl.patch delete mode 100644 toolchain/kernel-headers/patches/2.6.39/aufs2.patch delete mode 100644 toolchain/kernel-headers/patches/2.6.39/cleankernel.patch delete mode 100644 toolchain/kernel-headers/patches/2.6.39/etrax-header.patch delete mode 100644 toolchain/kernel-headers/patches/2.6.39/linux-gcc-check.patch delete mode 100644 toolchain/kernel-headers/patches/2.6.39/microperl.patch delete mode 100644 toolchain/kernel-headers/patches/3.0.4/aufs2.patch delete mode 100644 toolchain/kernel-headers/patches/3.0.4/cleankernel.patch delete mode 100644 toolchain/kernel-headers/patches/3.0.4/etrax-header.patch delete mode 100644 toolchain/kernel-headers/patches/3.0.4/linux-gcc-check.patch delete mode 100644 toolchain/kernel-headers/patches/3.0.4/microperl.patch delete mode 100644 toolchain/kernel-headers/patches/3.0.8/aufs2.patch delete mode 100644 toolchain/kernel-headers/patches/3.0.8/cleankernel.patch delete mode 100644 toolchain/kernel-headers/patches/3.0.8/etrax-header.patch delete mode 100644 toolchain/kernel-headers/patches/3.0.8/linux-gcc-check.patch delete mode 100644 toolchain/kernel-headers/patches/3.0.8/microperl.patch create mode 100644 toolchain/kernel-headers/patches/3.0.9/aufs2.patch create mode 100644 toolchain/kernel-headers/patches/3.0.9/cleankernel.patch create mode 100644 toolchain/kernel-headers/patches/3.0.9/etrax-header.patch create mode 100644 toolchain/kernel-headers/patches/3.0.9/linux-gcc-check.patch create mode 100644 toolchain/kernel-headers/patches/3.0.9/microperl.patch create mode 100644 toolchain/kernel-headers/patches/3.1.4/aufs2.patch create mode 100644 toolchain/kernel-headers/patches/3.1.4/cleankernel.patch create mode 100644 toolchain/kernel-headers/patches/3.1.4/etrax-header.patch create mode 100644 toolchain/kernel-headers/patches/3.1.4/linux-gcc-check.patch create mode 100644 toolchain/kernel-headers/patches/3.1.4/microperl.patch diff --git a/Config.in b/Config.in index 1e3911bc2..5d859416b 100644 --- a/Config.in +++ b/Config.in @@ -80,8 +80,12 @@ config ADK_KERNEL_VERSION_2_6_39_4 prompt "2.6.39.4" boolean -config ADK_KERNEL_VERSION_3_0_8 - prompt "3.0.8" +config ADK_KERNEL_VERSION_3_0_9 + prompt "3.0.9" + boolean + +config ADK_KERNEL_VERSION_3_1_4 + prompt "3.1.4" boolean endchoice diff --git a/mk/kernel-ver.mk b/mk/kernel-ver.mk index 5b6a3d06f..aac5c7180 100644 --- a/mk/kernel-ver.mk +++ b/mk/kernel-ver.mk @@ -3,8 +3,13 @@ KERNEL_VERSION:= 2.6.39.4 KERNEL_RELEASE:= 1 KERNEL_MD5SUM:= a17c748c2070168f1e784e9605ca043d endif -ifeq ($(ADK_KERNEL_VERSION_3_0_8),y) -KERNEL_VERSION:= 3.0.8 +ifeq ($(ADK_KERNEL_VERSION_3_0_9),y) +KERNEL_VERSION:= 3.0.9 KERNEL_RELEASE:= 1 -KERNEL_MD5SUM:= eac4d398a0ecd98214487cd47a228998 +KERNEL_MD5SUM:= 71992fa4dfc289a959f9ce266d08d77b +endif +ifeq ($(ADK_KERNEL_VERSION_3_1_4),y) +KERNEL_VERSION:= 3.1.4 +KERNEL_RELEASE:= 1 +KERNEL_MD5SUM:= 52643e5a013d450ad69627c3cac490cb endif diff --git a/mk/mirrors.mk b/mk/mirrors.mk index 30e246334..ddbf82b26 100644 --- a/mk/mirrors.mk +++ b/mk/mirrors.mk @@ -11,10 +11,10 @@ MASTER_SITE_MIRBSD?= \ http://pub.allbsd.org/MirOS/distfiles/ \ MASTER_SITE_KERNEL?= \ + http://www.kernel.org/pub/linux/ \ http://www.de.kernel.org/pub/linux/ \ http://www.fi.kernel.org/pub/linux/ \ http://www.fr.kernel.org/pub/linux/ \ - http://www.kernel.org/pub/linux/ \ MASTER_SITE_XORG?= \ http://www.x.org/releases/X11R7.6/src/everything/ \ diff --git a/scripts/install-rb532.sh b/scripts/install-rb532.sh index 9011388c7..569360942 100755 --- a/scripts/install-rb532.sh +++ b/scripts/install-rb532.sh @@ -120,8 +120,8 @@ sleep 2 maxsize=$(env LC_ALL=C $parted $1 -s unit cyl print |awk '/^Disk/ { print $3 }'|sed -e 's/cyl//') rootsize=$(($maxsize-2)) -$parted -s $1 unit cyl mkpart primary ext2 0 1 -$parted -s $1 unit cyl mkpart primary ext2 1 $rootsize +$parted -s $1 unit cyl mkpart primary ext2 0 2 +$parted -s $1 unit cyl mkpart primary ext2 2 $rootsize $parted -s $1 unit cyl mkpart primary fat32 $rootsize $maxsize $parted -s $1 set 1 boot on $sfdisk --change-id $1 1 27 diff --git a/target/linux/patches/2.6.36/ar7.patch b/target/linux/patches/2.6.36/ar7.patch deleted file mode 100644 index 5f3b69ce1..000000000 --- a/target/linux/patches/2.6.36/ar7.patch +++ /dev/null @@ -1,90 +0,0 @@ -diff -Nur linux-2.6.36.orig/arch/mips/Kconfig linux-2.6.36/arch/mips/Kconfig ---- linux-2.6.36.orig/arch/mips/Kconfig 2010-10-20 22:30:22.000000000 +0200 -+++ linux-2.6.36/arch/mips/Kconfig 2010-12-16 21:02:19.000000000 +0100 -@@ -46,7 +46,6 @@ - select CEVT_R4K - select CSRC_R4K - select IRQ_CPU -- select NO_EXCEPT_FILL - select SWAP_IO_SPACE - select SYS_HAS_CPU_MIPS32_R1 - select SYS_HAS_EARLY_PRINTK -diff -Nur linux-2.6.36.orig/arch/mips/ar7/prom.c linux-2.6.36/arch/mips/ar7/prom.c ---- linux-2.6.36.orig/arch/mips/ar7/prom.c 2010-10-20 22:30:22.000000000 +0200 -+++ linux-2.6.36/arch/mips/ar7/prom.c 2010-12-16 21:02:19.000000000 +0100 -@@ -206,6 +206,14 @@ - if (strstr(arcs_cmdline, "console=")) - return; - -+#ifdef CONFIG_KGDB -+ if (!strstr(prom_getcmdline(), "nokgdb")) { -+ strcat(prom_getcmdline(), " console=kgdb"); -+ kgdb_enabled = 1; -+ return; -+ } -+#endif -+ - s = prom_getenv("modetty0"); - if (s) { - baud = simple_strtoul(s, &p, 10); -diff -Nur linux-2.6.36.orig/drivers/mtd/ar7part.c linux-2.6.36/drivers/mtd/ar7part.c ---- linux-2.6.36.orig/drivers/mtd/ar7part.c 2010-10-20 22:30:22.000000000 +0200 -+++ linux-2.6.36/drivers/mtd/ar7part.c 2010-12-16 21:02:19.000000000 +0100 -@@ -28,7 +28,7 @@ - #include - #include - --#define AR7_PARTS 4 -+#define AR7_PARTS 5 - #define ROOT_OFFSET 0xe0000 - - #define LOADER_MAGIC1 le32_to_cpu(0xfeedfa42) -@@ -122,14 +122,19 @@ - - ar7_parts[2].name = "linux"; - ar7_parts[2].offset = pre_size; -- ar7_parts[2].size = master->size - pre_size - post_size; -+ ar7_parts[2].size = master->size - pre_size - post_size - 2*master->erasesize; - ar7_parts[2].mask_flags = 0; - - ar7_parts[3].name = "rootfs"; - ar7_parts[3].offset = root_offset; -- ar7_parts[3].size = master->size - root_offset - post_size; -+ ar7_parts[3].size = master->size - root_offset - post_size - 2*master->erasesize; - ar7_parts[3].mask_flags = 0; - -+ ar7_parts[4].name = "cfgfs"; -+ ar7_parts[4].offset = master->size - 2*master->erasesize; -+ ar7_parts[4].size = 2*master->erasesize; -+ ar7_parts[4].mask_flags = 0; -+ - *pparts = ar7_parts; - return AR7_PARTS; - } -diff -Nur linux-2.6.36.orig/drivers/mtd/maps/physmap.c linux-2.6.36/drivers/mtd/maps/physmap.c ---- linux-2.6.36.orig/drivers/mtd/maps/physmap.c 2010-10-20 22:30:22.000000000 +0200 -+++ linux-2.6.36/drivers/mtd/maps/physmap.c 2010-12-16 21:02:19.000000000 +0100 -@@ -79,7 +79,7 @@ - "map_rom", - NULL }; - #ifdef CONFIG_MTD_PARTITIONS --static const char *part_probe_types[] = { "cmdlinepart", "RedBoot", NULL }; -+static const char *part_probe_types[] = { "cmdlinepart", "RedBoot", "ar7part", NULL }; - #endif - - static int physmap_flash_probe(struct platform_device *dev) -diff -Nur linux-2.6.36.orig/drivers/serial/8250.c linux-2.6.36/drivers/serial/8250.c ---- linux-2.6.36.orig/drivers/serial/8250.c 2010-10-20 22:30:22.000000000 +0200 -+++ linux-2.6.36/drivers/serial/8250.c 2010-12-16 21:02:19.000000000 +0100 -@@ -2761,7 +2761,11 @@ - { - struct uart_8250_port *up = (struct uart_8250_port *)port; - -+#ifdef CONFIG_AR7 -+ wait_for_xmitr(up, BOTH_EMPTY); -+#else - wait_for_xmitr(up, UART_LSR_THRE); -+#endif - serial_out(up, UART_TX, ch); - } - diff --git a/target/linux/patches/2.6.36/ar71xx.patch b/target/linux/patches/2.6.36/ar71xx.patch deleted file mode 100644 index 487b8f215..000000000 --- a/target/linux/patches/2.6.36/ar71xx.patch +++ /dev/null @@ -1,18666 +0,0 @@ -diff -Nur linux-2.6.36.orig/arch/mips/Kconfig linux-2.6.36/arch/mips/Kconfig ---- linux-2.6.36.orig/arch/mips/Kconfig 2010-10-20 22:30:22.000000000 +0200 -+++ linux-2.6.36/arch/mips/Kconfig 2010-12-17 18:34:51.000000000 +0100 -@@ -60,6 +60,23 @@ - Support for the Texas Instruments AR7 System-on-a-Chip - family: TNETD7100, 7200 and 7300. - -+config ATHEROS_AR71XX -+ bool "Atheros AR71xx based boards" -+ select CEVT_R4K -+ select CSRC_R4K -+ select DMA_NONCOHERENT -+ select HW_HAS_PCI -+ select IRQ_CPU -+ select ARCH_REQUIRE_GPIOLIB -+ select SYS_HAS_CPU_MIPS32_R1 -+ select SYS_HAS_CPU_MIPS32_R2 -+ select SYS_SUPPORTS_32BIT_KERNEL -+ select SYS_SUPPORTS_BIG_ENDIAN -+ select SYS_HAS_EARLY_PRINTK -+ select MIPS_MACHINE -+ help -+ Support for Atheros AR71xx based boards. -+ - config BCM47XX - bool "Broadcom BCM47XX based boards" - select CEVT_R4K -@@ -709,6 +726,7 @@ - endchoice - - source "arch/mips/alchemy/Kconfig" -+source "arch/mips/ar71xx/Kconfig" - source "arch/mips/bcm63xx/Kconfig" - source "arch/mips/jazz/Kconfig" - source "arch/mips/jz4740/Kconfig" -@@ -872,9 +890,15 @@ - config MIPS_DISABLE_OBSOLETE_IDE - bool - -+config MYLOADER -+ bool -+ - config SYNC_R4K - bool - -+config MIPS_MACHINE -+ def_bool n -+ - config NO_IOPORT - def_bool n - -diff -Nur linux-2.6.36.orig/arch/mips/Makefile linux-2.6.36/arch/mips/Makefile ---- linux-2.6.36.orig/arch/mips/Makefile 2010-10-20 22:30:22.000000000 +0200 -+++ linux-2.6.36/arch/mips/Makefile 2010-12-17 18:34:51.000000000 +0100 -@@ -160,6 +160,13 @@ - cflags-$(CONFIG_CPU_CAVIUM_OCTEON) += -Wa,-march=octeon - endif - -+# -+# Atheros AR71xx -+# -+core-$(CONFIG_ATHEROS_AR71XX) += arch/mips/ar71xx/ -+cflags-$(CONFIG_ATHEROS_AR71XX) += -I$(srctree)/arch/mips/include/asm/mach-ar71xx -+load-$(CONFIG_ATHEROS_AR71XX) += 0xffffffff80060000 -+ - cflags-$(CONFIG_CPU_R4000_WORKAROUNDS) += $(call cc-option,-mfix-r4000,) - cflags-$(CONFIG_CPU_R4400_WORKAROUNDS) += $(call cc-option,-mfix-r4400,) - cflags-$(CONFIG_CPU_DADDI_WORKAROUNDS) += $(call cc-option,-mno-daddi,) -diff -Nur linux-2.6.36.orig/arch/mips/ar71xx/Kconfig linux-2.6.36/arch/mips/ar71xx/Kconfig ---- linux-2.6.36.orig/arch/mips/ar71xx/Kconfig 1970-01-01 01:00:00.000000000 +0100 -+++ linux-2.6.36/arch/mips/ar71xx/Kconfig 2010-12-17 18:34:51.000000000 +0100 -@@ -0,0 +1,264 @@ -+if ATHEROS_AR71XX -+ -+menu "Atheros AR71xx machine selection" -+ -+config AR71XX_MACH_AP81 -+ bool "Atheros AP81 board support" -+ select AR71XX_DEV_M25P80 -+ select AR71XX_DEV_AR913X_WMAC -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_LEDS_GPIO -+ select AR71XX_DEV_USB -+ default n -+ -+config AR71XX_MACH_AP83 -+ bool "Atheros AP83 board support" -+ select AR71XX_DEV_AR913X_WMAC -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_LEDS_GPIO -+ select AR71XX_DEV_USB -+ default n -+ -+config AR71XX_MACH_DIR_600_A1 -+ bool "D-Link DIR-600 rev. A1 support" -+ select AR71XX_DEV_AP91_ETH -+ select AR71XX_DEV_AP91_PCI if PCI -+ select AR71XX_DEV_M25P80 -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_LEDS_GPIO -+ select AR71XX_NVRAM -+ default n -+ -+config AR71XX_MACH_DIR_615_C1 -+ bool "D-Link DIR-615 rev. C1 support" -+ select AR71XX_DEV_M25P80 -+ select AR71XX_DEV_AR913X_WMAC -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_LEDS_GPIO -+ select AR71XX_NVRAM -+ default n -+ -+config AR71XX_MACH_DIR_825_B1 -+ bool "D-Link DIR-825 rev. B1 board support" -+ select AR71XX_DEV_M25P80 -+ select AR71XX_DEV_AP94_PCI if PCI -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_LEDS_GPIO -+ select AR71XX_DEV_USB -+ default n -+ -+config AR71XX_MACH_PB42 -+ bool "Atheros PB42 board support" -+ select AR71XX_DEV_M25P80 -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_PB42_PCI if PCI -+ default n -+ -+config AR71XX_MACH_PB44 -+ bool "Atheros PB44 board support" -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_PB42_PCI if PCI -+ select AR71XX_DEV_LEDS_GPIO -+ select AR71XX_DEV_USB -+ default n -+ -+config AR71XX_MACH_PB92 -+ bool "Atheros PB92 board support" -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_PB9X_PCI if PCI -+ select AR71XX_DEV_LEDS_GPIO -+ select AR71XX_DEV_USB -+ default n -+ -+config AR71XX_MACH_AW_NR580 -+ bool "AzureWave AW-NR580 board support" -+ select AR71XX_DEV_M25P80 -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_PB42_PCI if PCI -+ select AR71XX_DEV_LEDS_GPIO -+ default n -+ -+config AR71XX_MACH_WZR_HP_G300NH -+ bool "Buffalo WZR-HP-G300NH board support" -+ select AR71XX_DEV_AR913X_WMAC -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_LEDS_GPIO -+ select AR71XX_DEV_USB -+ default y -+ -+config AR71XX_MACH_WP543 -+ bool "Compex WP543/WPJ543 board support" -+ select MYLOADER -+ select AR71XX_DEV_M25P80 -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_PB42_PCI if PCI -+ select AR71XX_DEV_LEDS_GPIO -+ select AR71XX_DEV_USB -+ default n -+ -+config AR71XX_MACH_WRT160NL -+ bool "Linksys WRT160NL board support" -+ select AR71XX_DEV_M25P80 -+ select AR71XX_DEV_AR913X_WMAC -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_LEDS_GPIO -+ select AR71XX_DEV_USB -+ select AR71XX_NVRAM -+ default n -+ -+config AR71XX_MACH_WRT400N -+ bool "Linksys WRT400N board support" -+ select AR71XX_DEV_AP94_PCI if PCI -+ select AR71XX_DEV_M25P80 -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_LEDS_GPIO -+ default n -+ -+config AR71XX_MACH_RB4XX -+ bool "MikroTik RouterBOARD 4xx series support" -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_LEDS_GPIO -+ select AR71XX_DEV_USB -+ default n -+ -+config AR71XX_MACH_RB750 -+ bool "MikroTik RouterBOARD 750 support" -+ select AR71XX_DEV_AP91_ETH -+ default n -+ -+config AR71XX_MACH_WNDR3700 -+ bool "NETGEAR WNDR3700 board support" -+ select AR71XX_DEV_M25P80 -+ select AR71XX_DEV_AP94_PCI if PCI -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_LEDS_GPIO -+ select AR71XX_DEV_USB -+ default n -+ -+config AR71XX_MACH_WNR2000 -+ bool "NETGEAR WNR2000 board support" -+ select AR71XX_DEV_M25P80 -+ select AR71XX_DEV_AR913X_WMAC -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_LEDS_GPIO -+ default n -+ -+config AR71XX_MACH_MZK_W04NU -+ bool "Planex MZK-W04NU board support" -+ select AR71XX_DEV_M25P80 -+ select AR71XX_DEV_AR913X_WMAC -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_LEDS_GPIO -+ select AR71XX_DEV_USB -+ default n -+ -+config AR71XX_MACH_MZK_W300NH -+ bool "Planex MZK-W300NH board support" -+ select AR71XX_DEV_M25P80 -+ select AR71XX_DEV_AR913X_WMAC -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_LEDS_GPIO -+ default n -+ -+config AR71XX_MACH_NBG460N -+ bool "Zyxel NBG460N/550N/550NH board support" -+ select AR71XX_DEV_M25P80 -+ select AR71XX_DEV_AR913X_WMAC -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_LEDS_GPIO -+ default n -+ -+config AR71XX_MACH_TL_WR741ND -+ bool "TP-LINK TL-WR741ND support" -+ select AR71XX_DEV_M25P80 -+ select AR71XX_DEV_AP91_ETH -+ select AR71XX_DEV_AP91_PCI if PCI -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_LEDS_GPIO -+ default n -+ -+config AR71XX_MACH_TL_WR841N_V1 -+ bool "TP-LINK TL-WR841N v1 support" -+ select AR71XX_DEV_M25P80 -+ select AR71XX_DEV_PB42_PCI if PCI -+ select AR71XX_DEV_DSA -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_LEDS_GPIO -+ default n -+ -+config AR71XX_MACH_TL_WR941ND -+ bool "TP-LINK TL-WR941ND support" -+ select AR71XX_DEV_M25P80 -+ select AR71XX_DEV_AR913X_WMAC -+ select AR71XX_DEV_DSA -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_LEDS_GPIO -+ default n -+ -+config AR71XX_MACH_TL_WR1043ND -+ bool "TP-LINK TL-WR1043ND support" -+ select AR71XX_DEV_M25P80 -+ select AR71XX_DEV_AR913X_WMAC -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_LEDS_GPIO -+ select AR71XX_DEV_USB -+ default n -+ -+config AR71XX_MACH_TEW_632BRP -+ bool "TRENDnet TEW-632BRP support" -+ select AR71XX_DEV_M25P80 -+ select AR71XX_DEV_AR913X_WMAC -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_LEDS_GPIO -+ select AR71XX_NVRAM -+ default n -+ -+config AR71XX_MACH_UBNT -+ bool "Ubiquiti AR71xx based boards support" -+ select AR71XX_DEV_M25P80 -+ select AR71XX_DEV_AP91_PCI if PCI -+ select AR71XX_DEV_GPIO_BUTTONS -+ select AR71XX_DEV_LEDS_GPIO -+ select AR71XX_DEV_PB42_PCI if PCI -+ select AR71XX_DEV_USB -+ default n -+ -+endmenu -+ -+config AR71XX_DEV_M25P80 -+ def_bool n -+ -+config AR71XX_DEV_AP91_PCI -+ def_bool n -+ -+config AR71XX_DEV_AP91_ETH -+ def_bool n -+ -+config AR71XX_DEV_AP94_PCI -+ def_bool n -+ -+config AR71XX_DEV_AR913X_WMAC -+ def_bool n -+ -+config AR71XX_DEV_DSA -+ def_bool n -+ -+config AR71XX_DEV_GPIO_BUTTONS -+ def_bool n -+ -+config AR71XX_DEV_LEDS_GPIO -+ def_bool n -+ -+config AR71XX_DEV_PB42_PCI -+ def_bool n -+ -+config AR71XX_DEV_PB9X_PCI -+ def_bool n -+ -+config AR71XX_DEV_USB -+ def_bool n -+ -+config AR71XX_NVRAM -+ def_bool n -+ -+endif -diff -Nur linux-2.6.36.orig/arch/mips/ar71xx/Makefile linux-2.6.36/arch/mips/ar71xx/Makefile ---- linux-2.6.36.orig/arch/mips/ar71xx/Makefile 1970-01-01 01:00:00.000000000 +0100 -+++ linux-2.6.36/arch/mips/ar71xx/Makefile 2010-12-17 18:34:51.000000000 +0100 -@@ -0,0 +1,54 @@ -+# -+# Makefile for the Atheros AR71xx SoC specific parts of the kernel -+# -+# Copyright (C) 2008-2009 Gabor Juhos -+# Copyright (C) 2008 Imre Kaloz -+# -+# This program is free software; you can redistribute it and/or modify it -+# under the terms of the GNU General Public License version 2 as published -+# by the Free Software Foundation. -+ -+obj-y := prom.o irq.o setup.o devices.o gpio.o ar71xx.o -+ -+obj-$(CONFIG_EARLY_PRINTK) += early_printk.o -+obj-$(CONFIG_PCI) += pci.o -+ -+obj-$(CONFIG_AR71XX_DEV_AP91_ETH) += dev-ap91-eth.o -+obj-$(CONFIG_AR71XX_DEV_AP91_PCI) += dev-ap91-pci.o -+obj-$(CONFIG_AR71XX_DEV_AP94_PCI) += dev-ap94-pci.o -+obj-$(CONFIG_AR71XX_DEV_AR913X_WMAC) += dev-ar913x-wmac.o -+obj-$(CONFIG_AR71XX_DEV_DSA) += dev-dsa.o -+obj-$(CONFIG_AR71XX_DEV_GPIO_BUTTONS) += dev-gpio-buttons.o -+obj-$(CONFIG_AR71XX_DEV_LEDS_GPIO) += dev-leds-gpio.o -+obj-$(CONFIG_AR71XX_DEV_M25P80) += dev-m25p80.o -+obj-$(CONFIG_AR71XX_DEV_PB42_PCI) += dev-pb42-pci.o -+obj-$(CONFIG_AR71XX_DEV_PB9X_PCI) += dev-pb9x-pci.o -+obj-$(CONFIG_AR71XX_DEV_USB) += dev-usb.o -+ -+obj-$(CONFIG_AR71XX_NVRAM) += nvram.o -+ -+obj-$(CONFIG_AR71XX_MACH_AP81) += mach-ap81.o -+obj-$(CONFIG_AR71XX_MACH_AP83) += mach-ap83.o -+obj-$(CONFIG_AR71XX_MACH_AW_NR580) += mach-aw-nr580.o -+obj-$(CONFIG_AR71XX_MACH_DIR_600_A1) += mach-dir-600-a1.o -+obj-$(CONFIG_AR71XX_MACH_DIR_615_C1) += mach-dir-615-c1.o -+obj-$(CONFIG_AR71XX_MACH_DIR_825_B1) += mach-dir-825-b1.o -+obj-$(CONFIG_AR71XX_MACH_MZK_W04NU) += mach-mzk-w04nu.o -+obj-$(CONFIG_AR71XX_MACH_MZK_W300NH) += mach-mzk-w300nh.o -+obj-$(CONFIG_AR71XX_MACH_NBG460N) += mach-nbg460n.o -+obj-$(CONFIG_AR71XX_MACH_PB42) += mach-pb42.o -+obj-$(CONFIG_AR71XX_MACH_PB44) += mach-pb44.o -+obj-$(CONFIG_AR71XX_MACH_PB92) += mach-pb92.o -+obj-$(CONFIG_AR71XX_MACH_RB4XX) += mach-rb4xx.o -+obj-$(CONFIG_AR71XX_MACH_RB750) += mach-rb750.o -+obj-$(CONFIG_AR71XX_MACH_TEW_632BRP) += mach-tew-632brp.o -+obj-$(CONFIG_AR71XX_MACH_TL_WR741ND) += mach-tl-wr741nd.o -+obj-$(CONFIG_AR71XX_MACH_TL_WR841N_V1) += mach-tl-wr841n.o -+obj-$(CONFIG_AR71XX_MACH_TL_WR941ND) += mach-tl-wr941nd.o -+obj-$(CONFIG_AR71XX_MACH_TL_WR1043ND) += mach-tl-wr1043nd.o -+obj-$(CONFIG_AR71XX_MACH_UBNT) += mach-ubnt.o -+obj-$(CONFIG_AR71XX_MACH_WNDR3700) += mach-wndr3700.o -+obj-$(CONFIG_AR71XX_MACH_WNR2000) += mach-wnr2000.o -+obj-$(CONFIG_AR71XX_MACH_WP543) += mach-wp543.o -+obj-$(CONFIG_AR71XX_MACH_WRT160NL) += mach-wrt160nl.o -+obj-$(CONFIG_AR71XX_MACH_WRT400N) += mach-wrt400n.o -diff -Nur linux-2.6.36.orig/arch/mips/ar71xx/ar71xx.c linux-2.6.36/arch/mips/ar71xx/ar71xx.c ---- linux-2.6.36.orig/arch/mips/ar71xx/ar71xx.c 1970-01-01 01:00:00.000000000 +0100 -+++ linux-2.6.36/arch/mips/ar71xx/ar71xx.c 2010-12-17 18:34:51.000000000 +0100 -@@ -0,0 +1,177 @@ -+/* -+ * AR71xx SoC routines -+ * -+ * Copyright (C) 2008-2009 Gabor Juhos -+ * Copyright (C) 2008 Imre Kaloz -+ * -+ * This program is free software; you can redistribute it and/or modify it -+ * under the terms of the GNU General Public License version 2 as published -+ * by the Free Software Foundation. -+ */ -+ -+#include -+#include -+#include -+#include -+ -+#include -+ -+static DEFINE_MUTEX(ar71xx_flash_mutex); -+ -+void __iomem *ar71xx_ddr_base; -+EXPORT_SYMBOL_GPL(ar71xx_ddr_base); -+ -+void __iomem *ar71xx_pll_base; -+EXPORT_SYMBOL_GPL(ar71xx_pll_base); -+ -+void __iomem *ar71xx_reset_base; -+EXPORT_SYMBOL_GPL(ar71xx_reset_base); -+ -+void __iomem *ar71xx_gpio_base; -+EXPORT_SYMBOL_GPL(ar71xx_gpio_base); -+ -+void __iomem *ar71xx_usb_ctrl_base; -+EXPORT_SYMBOL_GPL(ar71xx_usb_ctrl_base); -+ -+void ar71xx_device_stop(u32 mask) -+{ -+ unsigned long flags; -+ u32 mask_inv; -+ u32 t; -+ -+ switch (ar71xx_soc) { -+ case AR71XX_SOC_AR7130: -+ case AR71XX_SOC_AR7141: -+ case AR71XX_SOC_AR7161: -+ local_irq_save(flags); -+ t = ar71xx_reset_rr(AR71XX_RESET_REG_RESET_MODULE); -+ ar71xx_reset_wr(AR71XX_RESET_REG_RESET_MODULE, t | mask); -+ local_irq_restore(flags); -+ break; -+ -+ case AR71XX_SOC_AR7240: -+ case AR71XX_SOC_AR7241: -+ case AR71XX_SOC_AR7242: -+ mask_inv = mask & RESET_MODULE_USB_OHCI_DLL_7240; -+ local_irq_save(flags); -+ t = ar71xx_reset_rr(AR724X_RESET_REG_RESET_MODULE); -+ t |= mask; -+ t &= ~mask_inv; -+ ar71xx_reset_wr(AR724X_RESET_REG_RESET_MODULE, t); -+ local_irq_restore(flags); -+ break; -+ -+ case AR71XX_SOC_AR9130: -+ case AR71XX_SOC_AR9132: -+ local_irq_save(flags); -+ t = ar71xx_reset_rr(AR91XX_RESET_REG_RESET_MODULE); -+ ar71xx_reset_wr(AR91XX_RESET_REG_RESET_MODULE, t | mask); -+ local_irq_restore(flags); -+ break; -+ -+ default: -+ BUG(); -+ } -+} -+EXPORT_SYMBOL_GPL(ar71xx_device_stop); -+ -+void ar71xx_device_start(u32 mask) -+{ -+ unsigned long flags; -+ u32 mask_inv; -+ u32 t; -+ -+ switch (ar71xx_soc) { -+ case AR71XX_SOC_AR7130: -+ case AR71XX_SOC_AR7141: -+ case AR71XX_SOC_AR7161: -+ local_irq_save(flags); -+ t = ar71xx_reset_rr(AR71XX_RESET_REG_RESET_MODULE); -+ ar71xx_reset_wr(AR71XX_RESET_REG_RESET_MODULE, t & ~mask); -+ local_irq_restore(flags); -+ break; -+ -+ case AR71XX_SOC_AR7240: -+ case AR71XX_SOC_AR7241: -+ case AR71XX_SOC_AR7242: -+ mask_inv = mask & RESET_MODULE_USB_OHCI_DLL_7240; -+ local_irq_save(flags); -+ t = ar71xx_reset_rr(AR724X_RESET_REG_RESET_MODULE); -+ t &= ~mask; -+ t |= mask_inv; -+ ar71xx_reset_wr(AR724X_RESET_REG_RESET_MODULE, t); -+ local_irq_restore(flags); -+ break; -+ -+ case AR71XX_SOC_AR9130: -+ case AR71XX_SOC_AR9132: -+ local_irq_save(flags); -+ t = ar71xx_reset_rr(AR91XX_RESET_REG_RESET_MODULE); -+ ar71xx_reset_wr(AR91XX_RESET_REG_RESET_MODULE, t & ~mask); -+ local_irq_restore(flags); -+ break; -+ -+ default: -+ BUG(); -+ } -+} -+EXPORT_SYMBOL_GPL(ar71xx_device_start); -+ -+int ar71xx_device_stopped(u32 mask) -+{ -+ unsigned long flags; -+ u32 t; -+ -+ switch (ar71xx_soc) { -+ case AR71XX_SOC_AR7130: -+ case AR71XX_SOC_AR7141: -+ case AR71XX_SOC_AR7161: -+ local_irq_save(flags); -+ t = ar71xx_reset_rr(AR71XX_RESET_REG_RESET_MODULE); -+ local_irq_restore(flags); -+ break; -+ -+ case AR71XX_SOC_AR7240: -+ case AR71XX_SOC_AR7241: -+ case AR71XX_SOC_AR7242: -+ local_irq_save(flags); -+ t = ar71xx_reset_rr(AR724X_RESET_REG_RESET_MODULE); -+ local_irq_restore(flags); -+ break; -+ -+ case AR71XX_SOC_AR9130: -+ case AR71XX_SOC_AR9132: -+ local_irq_save(flags); -+ t = ar71xx_reset_rr(AR91XX_RESET_REG_RESET_MODULE); -+ local_irq_restore(flags); -+ break; -+ -+ default: -+ BUG(); -+ } -+ -+ return ((t & mask) == mask); -+} -+EXPORT_SYMBOL_GPL(ar71xx_device_stopped); -+ -+void ar71xx_ddr_flush(u32 reg) -+{ -+ ar71xx_ddr_wr(reg, 1); -+ while ((ar71xx_ddr_rr(reg) & 0x1)); -+ -+ ar71xx_ddr_wr(reg, 1); -+ while ((ar71xx_ddr_rr(reg) & 0x1)); -+} -+EXPORT_SYMBOL_GPL(ar71xx_ddr_flush); -+ -+void ar71xx_flash_acquire(void) -+{ -+ mutex_lock(&ar71xx_flash_mutex); -+} -+EXPORT_SYMBOL_GPL(ar71xx_flash_acquire); -+ -+void ar71xx_flash_release(void) -+{ -+ mutex_unlock(&ar71xx_flash_mutex); -+} -+EXPORT_SYMBOL_GPL(ar71xx_flash_release); -diff -Nur linux-2.6.36.orig/arch/mips/ar71xx/dev-ap91-eth.c linux-2.6.36/arch/mips/ar71xx/dev-ap91-eth.c ---- linux-2.6.36.orig/arch/mips/ar71xx/dev-ap91-eth.c 1970-01-01 01:00:00.000000000 +0100 -+++ linux-2.6.36/arch/mips/ar71xx/dev-ap91-eth.c 2010-12-17 18:34:51.000000000 +0100 -@@ -0,0 +1,70 @@ -+/* -+ * Atheros AP91 reference board ethernet initialization -+ * -+ * Copyright (C) 2010 Gabor Juhos -+ * -+ * This program is free software; you can redistribute it and/or modify it -+ * under the terms of the GNU General Public License version 2 as published -+ * by the Free Software Foundation. -+ */ -+ -+#include "devices.h" -+#include "dev-dsa.h" -+#include "dev-ap91-eth.h" -+ -+static struct dsa_chip_data ap91_dsa_chip = { -+ .port_names[0] = "cpu", -+ .port_names[1] = "lan1", -+ .port_names[2] = "lan2", -+ .port_names[3] = "lan3", -+ .port_names[4] = "lan4", -+}; -+ -+static struct dsa_platform_data ap91_dsa_data = { -+ .nr_chips = 1, -+ .chip = &ap91_dsa_chip, -+}; -+ -+static void ap91_eth_set_port_name(unsigned port, const char *name) -+{ -+ if (port < 1 || port > 5) -+ return; -+ -+ if (name) -+ ap91_dsa_chip.port_names[port] = (char *) name; -+} -+ -+void __init ap91_eth_init(u8 *mac_addr, const char *port_names[]) -+{ -+ if (mac_addr) -+ ar71xx_set_mac_base(mac_addr); -+ -+ if (port_names) { -+ int i; -+ -+ for (i = 0; i < AP91_ETH_NUM_PORT_NAMES; i++) -+ ap91_eth_set_port_name(i + 1, port_names[i]); -+ } -+ -+ /* WAN port */ -+ ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; -+ ar71xx_eth0_data.speed = SPEED_100; -+ ar71xx_eth0_data.duplex = DUPLEX_FULL; -+ ar71xx_eth0_data.fifo_cfg1 = 0x0fff0000; -+ ar71xx_eth0_data.fifo_cfg2 = 0x00001fff; -+ ar71xx_eth0_data.fifo_cfg3 = 0x008001ff; -+ -+ /* LAN ports */ -+ ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; -+ ar71xx_eth1_data.speed = SPEED_1000; -+ ar71xx_eth1_data.duplex = DUPLEX_FULL; -+ ar71xx_eth1_data.fifo_cfg1 = 0x0fff0000; -+ ar71xx_eth1_data.fifo_cfg2 = 0x00001fff; -+ ar71xx_eth1_data.fifo_cfg3 = 0x008001ff; -+ -+ ar71xx_add_device_mdio(0x0); -+ ar71xx_add_device_eth(1); -+ ar71xx_add_device_eth(0); -+ -+ ar71xx_add_device_dsa(1, &ap91_dsa_data); -+} -diff -Nur linux-2.6.36.orig/arch/mips/ar71xx/dev-ap91-eth.h linux-2.6.36/arch/mips/ar71xx/dev-ap91-eth.h ---- linux-2.6.36.orig/arch/mips/ar71xx/dev-ap91-eth.h 1970-01-01 01:00:00.000000000 +0100 -+++ linux-2.6.36/arch/mips/ar71xx/dev-ap91-eth.h 2010-12-17 18:34:51.000000000 +0100 -@@ -0,0 +1,23 @@ -+/* -+ * Atheros AP91 reference board ethernet initialization -+ * -+ * Copyright (C) 2010 Gabor Juhos -+ * -+ * This program is free software; you can redistribute it and/or modify it -+ * under the terms of the GNU General Public License version 2 as published -+ * by the Free Software Foundation. -+ */ -+ -+#ifndef _AR71XX_DEV_AP91_ETH_H -+#define _AR71XX_DEV_AP91_ETH_H -+ -+#define AP91_ETH_NUM_PORT_NAMES 4 -+ -+#if defined(CONFIG_AR71XX_DEV_AP91_ETH) -+void ap91_eth_init(u8 *mac_addr, const char *port_names[]) __init; -+#else -+static inline void ap91_eth_init(u8 *mac_addr) { } -+#endif -+ -+#endif /* _AR71XX_DEV_AP91_ETH_H */ -+ -diff -Nur linux-2.6.36.orig/arch/mips/ar71xx/dev-ap91-pci.c linux-2.6.36/arch/mips/ar71xx/dev-ap91-pci.c ---- linux-2.6.36.orig/arch/mips/ar71xx/dev-ap91-pci.c 1970-01-01 01:00:00.000000000 +0100 -+++ linux-2.6.36/arch/mips/ar71xx/dev-ap91-pci.c 2010-12-17 18:34:51.000000000 +0100 -@@ -0,0 +1,114 @@ -+/* -+ * Atheros AP91 reference board PCI initialization -+ * -+ * Copyright (C) 2009 Gabor Juhos -+ * -+ * This program is free software; you can redistribute it and/or modify it -+ * under the terms of the GNU General Public License version 2 as published -+ * by the Free Software Foundation. -+ */ -+ -+#include -+#include -+#include -+ -+#include -+#include -+ -+#include "dev-ap91-pci.h" -+ -+static struct ath9k_platform_data ap91_wmac_data; -+static char ap91_wmac_mac[6]; -+static int ap91_pci_fixup_enabled; -+ -+static struct ar71xx_pci_irq ap91_pci_irqs[] __initdata = { -+ { -+ .slot = 0, -+ .pin = 1, -+ .irq = AR71XX_PCI_IRQ_DEV0, -+ } -+}; -+ -+static int ap91_pci_plat_dev_init(struct pci_dev *dev) -+{ -+ switch(PCI_SLOT(dev->devfn)) { -+ case 0: -+ dev->dev.platform_data = &ap91_wmac_data; -+ break; -+ } -+ -+ return 0; -+} -+ -+static void ap91_pci_fixup(struct pci_dev *dev) -+{ -+ void __iomem *mem; -+ u16 *cal_data; -+ u16 cmd; -+ u32 val; -+ -+ if (!ap91_pci_fixup_enabled) -+ return; -+ -+ printk(KERN_INFO "PCI: fixup device %s\n", pci_name(dev)); -+ -+ cal_data = ap91_wmac_data.eeprom_data; -+ if (*cal_data != 0xa55a) { -+ printk(KERN_ERR "PCI: no calibration data found for %s\n", -+ pci_name(dev)); -+ return; -+ } -+ -+ mem = ioremap(AR71XX_PCI_MEM_BASE, 0x10000); -+ if (!mem) { -+ printk(KERN_ERR "PCI: ioremap error for device %s\n", -+ pci_name(dev)); -+ return; -+ } -+ -+ /* Setup the PCI device to allow access to the internal registers */ -+ pci_write_config_dword(dev, PCI_BASE_ADDRESS_0, 0xffff); -+ pci_read_config_word(dev, PCI_COMMAND, &cmd); -+ cmd |= PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY; -+ pci_write_config_word(dev, PCI_COMMAND, cmd); -+ -+ /* set pointer to first reg address */ -+ cal_data += 3; -+ while (*cal_data != 0xffff) { -+ u32 reg; -+ reg = *cal_data++; -+ val = *cal_data++; -+ val |= (*cal_data++) << 16; -+ -+ __raw_writel(val, mem + reg); -+ udelay(100); -+ } -+ -+ pci_read_config_dword(dev, PCI_VENDOR_ID, &val); -+ dev->vendor = val & 0xffff; -+ dev->device = (val >> 16) & 0xffff; -+ -+ pci_read_config_dword(dev, PCI_CLASS_REVISION, &val); -+ dev->revision = val & 0xff; -+ dev->class = val >> 8; /* upper 3 bytes */ -+ -+ iounmap(mem); -+} -+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_ATHEROS, PCI_ANY_ID, ap91_pci_fixup); -+ -+void __init ap91_pci_init(u8 *cal_data, u8 *mac_addr) -+{ -+ if (cal_data) -+ memcpy(ap91_wmac_data.eeprom_data, cal_data, -+ sizeof(ap91_wmac_data.eeprom_data)); -+ -+ if (mac_addr) { -+ memcpy(ap91_wmac_mac, mac_addr, sizeof(ap91_wmac_mac)); -+ ap91_wmac_data.macaddr = ap91_wmac_mac; -+ } -+ -+ ar71xx_pci_plat_dev_init = ap91_pci_plat_dev_init; -+ ar71xx_pci_init(ARRAY_SIZE(ap91_pci_irqs), ap91_pci_irqs); -+ -+ ap91_pci_fixup_enabled = 1; -+} -diff -Nur linux-2.6.36.orig/arch/mips/ar71xx/dev-ap91-pci.h linux-2.6.36/arch/mips/ar71xx/dev-ap91-pci.h ---- linux-2.6.36.orig/arch/mips/ar71xx/dev-ap91-pci.h 1970-01-01 01:00:00.000000000 +0100 -+++ linux-2.6.36/arch/mips/ar71xx/dev-ap91-pci.h 2010-12-17 18:34:51.000000000 +0100 -@@ -0,0 +1,21 @@ -+/* -+ * Atheros AP91 reference board PCI initialization -+ * -+ * Copyright (C) 2009 Gabor Juhos -+ * -+ * This program is free software; you can redistribute it and/or modify it -+ * under the terms of the GNU General Public License version 2 as published -+ * by the Free Software Foundation. -+ */ -+ -+#ifndef _AR71XX_DEV_AP91_PCI_H -+#define _AR71XX_DEV_AP91_PCI_H -+ -+#if defined(CONFIG_AR71XX_DEV_AP91_PCI) -+void ap91_pci_init(u8 *cal_data, u8 *mac_addr) __init; -+#else -+static inline void ap91_pci_init(u8 *cal_data, u8 *mac_addr) { } -+#endif -+ -+#endif /* _AR71XX_DEV_AP91_PCI_H */ -+ -diff -Nur linux-2.6.36.orig/arch/mips/ar71xx/dev-ap94-pci.c linux-2.6.36/arch/mips/ar71xx/dev-ap94-pci.c ---- linux-2.6.36.orig/arch/mips/ar71xx/dev-ap94-pci.c 1970-01-01 01:00:00.000000000 +0100 -+++ linux-2.6.36/arch/mips/ar71xx/dev-ap94-pci.c 2010-12-17 18:34:51.000000000 +0100 -@@ -0,0 +1,159 @@ -+/* -+ * Atheros AP94 reference board PCI initialization -+ * -+ * Copyright (C) 2009-2010 Gabor Juhos -+ * -+ * This program is free software; you can redistribute it and/or modify it -+ * under the terms of the GNU General Public License version 2 as published -+ * by the Free Software Foundation. -+ */ -+ -+#include -+#include -+#include -+ -+#include -+#include -+ -+#include "dev-ap94-pci.h" -+ -+static struct ath9k_platform_data ap94_wmac0_data; -+static struct ath9k_platform_data ap94_wmac1_data; -+static char ap94_wmac0_mac[6]; -+static char ap94_wmac1_mac[6]; -+static int ap94_pci_fixup_enabled; -+ -+static struct ar71xx_pci_irq ap94_pci_irqs[] __initdata = { -+ { -+ .slot = 0, -+ .pin = 1, -+ .irq = AR71XX_PCI_IRQ_DEV0, -+ }, { -+ .slot = 1, -+ .pin = 1, -+ .irq = AR71XX_PCI_IRQ_DEV1, -+ } -+}; -+ -+static int ap94_pci_plat_dev_init(struct pci_dev *dev) -+{ -+ switch(PCI_SLOT(dev->devfn)) { -+ case 17: -+ dev->dev.platform_data = &ap94_wmac0_data; -+ break; -+ -+ case 18: -+ dev->dev.platform_data = &ap94_wmac1_data; -+ break; -+ } -+ -+ return 0; -+} -+ -+static void ap94_pci_fixup(struct pci_dev *dev) -+{ -+ void __iomem *mem; -+ u16 *cal_data; -+ u16 cmd; -+ u32 bar0; -+ u32 val; -+ -+ if (!ap94_pci_fixup_enabled) -+ return; -+ -+ switch (PCI_SLOT(dev->devfn)) { -+ case 17: -+ cal_data = ap94_wmac0_data.eeprom_data; -+ break; -+ case 18: -+ cal_data = ap94_wmac1_data.eeprom_data; -+ break; -+ default: -+ return; -+ } -+ -+ if (*cal_data != 0xa55a) { -+ printk(KERN_ERR "PCI: no calibration data found for %s\n", -+ pci_name(dev)); -+ return; -+ } -+ -+ mem = ioremap(AR71XX_PCI_MEM_BASE, 0x10000); -+ if (!mem) { -+ printk(KERN_ERR "PCI: ioremap error for device %s\n", -+ pci_name(dev)); -+ return; -+ } -+ -+ printk(KERN_INFO "PCI: fixup device %s\n", pci_name(dev)); -+ -+ pci_read_config_dword(dev, PCI_BASE_ADDRESS_0, &bar0); -+ -+ /* Setup the PCI device to allow access to the internal registers */ -+ pci_write_config_dword(dev, PCI_BASE_ADDRESS_0, AR71XX_PCI_MEM_BASE); -+ pci_read_config_word(dev, PCI_COMMAND, &cmd); -+ cmd |= PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY; -+ pci_write_config_word(dev, PCI_COMMAND, cmd); -+ -+ /* set pointer to first reg address */ -+ cal_data += 3; -+ while (*cal_data != 0xffff) { -+ u32 reg; -+ reg = *cal_data++; -+ val = *cal_data++; -+ val |= (*cal_data++) << 16; -+ -+ __raw_writel(val, mem + reg); -+ udelay(100); -+ } -+ -+ pci_read_config_dword(dev, PCI_VENDOR_ID, &val); -+ dev->vendor = val & 0xffff; -+ dev->device = (val >> 16) & 0xffff; -+ -+ pci_read_config_dword(dev, PCI_CLASS_REVISION, &val); -+ dev->revision = val & 0xff; -+ dev->class = val >> 8; /* upper 3 bytes */ -+ -+ pci_read_config_word(dev, PCI_COMMAND, &cmd); -+ cmd &= ~(PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY); -+ pci_write_config_word(dev, PCI_COMMAND, cmd); -+ -+ pci_write_config_dword(dev, PCI_BASE_ADDRESS_0, bar0); -+ -+ iounmap(mem); -+} -+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_ATHEROS, PCI_ANY_ID, ap94_pci_fixup); -+ -+void __init ap94_pci_enable_quirk_wndr3700(void) -+{ -+ ap94_wmac0_data.quirk_wndr3700 = 1; -+ ap94_wmac1_data.quirk_wndr3700 = 1; -+} -+ -+void __init ap94_pci_init(u8 *cal_data0, u8 *mac_addr0, -+ u8 *cal_data1, u8 *mac_addr1) -+{ -+ if (cal_data0) -+ memcpy(ap94_wmac0_data.eeprom_data, cal_data0, -+ sizeof(ap94_wmac0_data.eeprom_data)); -+ -+ if (cal_data1) -+ memcpy(ap94_wmac1_data.eeprom_data, cal_data1, -+ sizeof(ap94_wmac1_data.eeprom_data)); -+ -+ if (mac_addr0) { -+ memcpy(ap94_wmac0_mac, mac_addr0, sizeof(ap94_wmac0_mac)); -+ ap94_wmac0_data.macaddr = ap94_wmac0_mac; -+ } -+ -+ if (mac_addr1) { -+ memcpy(ap94_wmac1_mac, mac_addr1, sizeof(ap94_wmac1_mac)); -+ ap94_wmac1_data.macaddr = ap94_wmac1_mac; -+ } -+ -+ ar71xx_pci_plat_dev_init = ap94_pci_plat_dev_init; -+ ar71xx_pci_init(ARRAY_SIZE(ap94_pci_irqs), ap94_pci_irqs); -+ -+ ap94_pci_fixup_enabled = 1; -+} -diff -Nur linux-2.6.36.orig/arch/mips/ar71xx/dev-ap94-pci.h linux-2.6.36/arch/mips/ar71xx/dev-ap94-pci.h ---- linux-2.6.36.orig/arch/mips/ar71xx/dev-ap94-pci.h 1970-01-01 01:00:00.000000000 +0100 -+++ linux-2.6.36/arch/mips/ar71xx/dev-ap94-pci.h 2010-12-17 18:34:51.000000000 +0100 -@@ -0,0 +1,28 @@ -+/* -+ * Atheros AP94 reference board PCI initialization -+ * -+ * Copyright (C) 2009-2010 Gabor Juhos -+ * -+ * This program is free software; you can redistribute it and/or modify it -+ * under the terms of the GNU General Public License version 2 as published -+ * by the Free Software Foundation. -+ */ -+ -+#ifndef _AR71XX_DEV_AP94_PCI_H -+#define _AR71XX_DEV_AP94_PCI_H -+ -+#if defined(CONFIG_AR71XX_DEV_AP94_PCI) -+void ap94_pci_init(u8 *cal_data0, u8 *mac_addr0, -+ u8 *cal_data1, u8 *mac_addr1) __init; -+ -+void ap94_pci_enable_quirk_wndr3700(void) __init; -+ -+#else -+static inline void ap94_pci_init(u8 *cal_data0, u8 *mac_addr0, -+ u8 *cal_data1, u8 *mac_addr1) {} -+ -+static inline void ap94_pci_enable_quirk_wndr3700(void) {} -+#endif -+ -+#endif /* _AR71XX_DEV_AP94_PCI_H */ -+ -diff -Nur linux-2.6.36.orig/arch/mips/ar71xx/dev-ar913x-wmac.c linux-2.6.36/arch/mips/ar71xx/dev-ar913x-wmac.c ---- linux-2.6.36.orig/arch/mips/ar71xx/dev-ar913x-wmac.c 1970-01-01 01:00:00.000000000 +0100 -+++ linux-2.6.36/arch/mips/ar71xx/dev-ar913x-wmac.c 2010-12-17 18:34:51.000000000 +0100 -@@ -0,0 +1,68 @@ -+/* -+ * Atheros AR913x SoC built-in WMAC device support -+ * -+ * Copyright (C) 2008-2009 Gabor Juhos -+ * Copyright (C) 2008 Imre Kaloz -+ * -+ * Parts of this file are based on Atheros' 2.6.15 BSP -+ * -+ * This program is free software; you can redistribute it and/or modify it -+ * under the terms of the GNU General Public License version 2 as published -+ * by the Free Software Foundation. -+ */ -+ -+#include -+#include -+#include -+#include -+#include -+#include -+ -+#include -+ -+#include "dev-ar913x-wmac.h" -+ -+static struct ath9k_platform_data ar913x_wmac_data; -+static char ar913x_wmac_mac[6]; -+ -+static struct resource ar913x_wmac_resources[] = { -+ { -+ .start = AR91XX_WMAC_BASE, -+ .end = AR91XX_WMAC_BASE + AR91XX_WMAC_SIZE - 1, -+ .flags = IORESOURCE_MEM, -+ }, { -+ .start = AR71XX_CPU_IRQ_IP2, -+ .end = AR71XX_CPU_IRQ_IP2, -+ .flags = IORESOURCE_IRQ, -+ }, -+}; -+ -+static struct platform_device ar913x_wmac_device = { -+ .name = "ath9k", -+ .id = -1, -+ .resource = ar913x_wmac_resources, -+ .num_resources = ARRAY_SIZE(ar913x_wmac_resources), -+ .dev = { -+ .platform_data = &ar913x_wmac_data, -+ }, -+}; -+ -+void __init ar913x_add_device_wmac(u8 *cal_data, u8 *mac_addr) -+{ -+ if (cal_data) -+ memcpy(ar913x_wmac_data.eeprom_data, cal_data, -+ sizeof(ar913x_wmac_data.eeprom_data)); -+ -+ if (mac_addr) { -+ memcpy(ar913x_wmac_mac, mac_addr, sizeof(ar913x_wmac_mac)); -+ ar913x_wmac_data.macaddr = ar913x_wmac_mac; -+ } -+ -+ ar71xx_device_stop(RESET_MODULE_AMBA2WMAC); -+ mdelay(10); -+ -+ ar71xx_device_start(RESET_MODULE_AMBA2WMAC); -+ mdelay(10); -+ -+ platform_device_register(&ar913x_wmac_device); -+} -diff -Nur linux-2.6.36.orig/arch/mips/ar71xx/dev-ar913x-wmac.h linux-2.6.36/arch/mips/ar71xx/dev-ar913x-wmac.h ---- linux-2.6.36.orig/arch/mips/ar71xx/dev-ar913x-wmac.h 1970-01-01 01:00:00.000000000 +0100 -+++ linux-2.6.36/arch/mips/ar71xx/dev-ar913x-wmac.h 2010-12-17 18:34:51.000000000 +0100 -@@ -0,0 +1,19 @@ -+/* -+ * Atheros AR913x SoC built-in WMAC device support -+ * -+ * Copyright (C) 2008-2009 Gabor Juhos -+ * Copyright (C) 2008 Imre Kaloz -+ * -+ * Parts of this file are based on Atheros' 2.6.15 BSP -+ * -+ * This program is free software; you can redistribute it and/or modify it -+ * under the terms of the GNU General Public License version 2 as published -+ * by the Free Software Foundation. -+ */ -+ -+#ifndef _AR71XX_DEV_AR913X_WMAC_H -+#define _AR71XX_DEV_AR913X_WMAC_H -+ -+void ar913x_add_device_wmac(u8 *cal_data, u8 *mac_addr) __init; -+ -+#endif /* _AR71XX_DEV_AR913X_WMAC_H */ -diff -Nur linux-2.6.36.orig/arch/mips/ar71xx/dev-dsa.c linux-2.6.36/arch/mips/ar71xx/dev-dsa.c ---- linux-2.6.36.orig/arch/mips/ar71xx/dev-dsa.c 1970-01-01 01:00:00.000000000 +0100 -+++ linux-2.6.36/arch/mips/ar71xx/dev-dsa.c 2010-12-17 18:34:51.000000000 +0100 -@@ -0,0 +1,50 @@ -+/* -+ * Atheros AR71xx DSA switch device support -+ * -+ * Copyright (C) 2008-2009 Gabor Juhos -+ * Copyright (C) 2008 Imre Kaloz -+ * -+ * This program is free software; you can redistribute it and/or modify it -+ * under the terms of the GNU General Public License version 2 as published -+ * by the Free Software Foundation. -+ */ -+ -+#include -+#include -+ -+#include -+ -+#include "devices.h" -+#include "dev-dsa.h" -+ -+static struct platform_device ar71xx_dsa_switch_device = { -+ .name = "dsa", -+ .id = 0, -+}; -+ -+void __init ar71xx_add_device_dsa(unsigned int id, -+ struct dsa_platform_data *d) -+{ -+ int i; -+ -+ switch (id) { -+ case 0: -+ d->netdev = &ar71xx_eth0_device.dev; -+ break; -+ case 1: -+ d->netdev = &ar71xx_eth1_device.dev; -+ break; -+ default: -+ printk(KERN_ERR -+ "ar71xx: invalid ethernet id %d for DSA switch\n", -+ id); -+ return; -+ } -+ -+ for (i = 0; i < d->nr_chips; i++) -+ d->chip[i].mii_bus = &ar71xx_mdio_device.dev; -+ -+ ar71xx_dsa_switch_device.dev.platform_data = d; -+ -+ platform_device_register(&ar71xx_dsa_switch_device); -+} -diff -Nur linux-2.6.36.orig/arch/mips/ar71xx/dev-dsa.h linux-2.6.36/arch/mips/ar71xx/dev-dsa.h ---- linux-2.6.36.orig/arch/mips/ar71xx/dev-dsa.h 1970-01-01 01:00:00.000000000 +0100 -+++ linux-2.6.36/arch/mips/ar71xx/dev-dsa.h 2010-12-17 18:34:51.000000000 +0100 -@@ -0,0 +1,20 @@ -+/* -+ * Atheros AR71xx DSA switch device support -+ * -+ * Copyright (C) 2008-2009 Gabor Juhos -+ * Copyright (C) 2008 Imre Kaloz -+ * -+ * This program is free software; you can redistribute it and/or modify it -+ * under the terms of the GNU General Public License version 2 as published -+ * by the Free Software Foundation. -+ */ -+ -+#ifndef _AR71XX_DEV_DSA_H -+#define _AR71XX_DEV_DSA_H -+ -+#include -+ -+void ar71xx_add_device_dsa(unsigned int id, -+ struct dsa_platform_data *d) __init; -+ -+#endif /* _AR71XX_DEV_DSA_H */ -diff -Nur linux-2.6.36.orig/arch/mips/ar71xx/dev-gpio-buttons.c linux-2.6.36/arch/mips/ar71xx/dev-gpio-buttons.c ---- linux-2.6.36.orig/arch/mips/ar71xx/dev-gpio-buttons.c 1970-01-01 01:00:00.000000000 +0100 -+++ linux-2.6.36/arch/mips/ar71xx/dev-gpio-buttons.c 2010-12-17 18:34:51.000000000 +0100 -@@ -0,0 +1,58 @@ -+/* -+ * Atheros AR71xx GPIO button support -+ * -+ * Copyright (C) 2008-2009 Gabor Juhos -+ * Copyright (C) 2008 Imre Kaloz -+ * -+ * This program is free software; you can redistribute it and/or modify it -+ * under the terms of the GNU General Public License version 2 as published -+ * by the Free Software Foundation. -+ */ -+ -+#include "linux/init.h" -+#include -+ -+#include "dev-gpio-buttons.h" -+ -+void __init ar71xx_add_device_gpio_buttons(int id, -+ unsigned poll_interval, -+ unsigned nbuttons, -+ struct gpio_button *buttons) -+{ -+ struct platform_device *pdev; -+ struct gpio_buttons_platform_data pdata; -+ struct gpio_button *p; -+ int err; -+ -+ p = kmalloc(nbuttons * sizeof(*p), GFP_KERNEL); -+ if (!p) -+ return; -+ -+ memcpy(p, buttons, nbuttons * sizeof(*p)); -+ -+ pdev = platform_device_alloc("gpio-buttons", id); -+ if (!pdev) -+ goto err_free_buttons; -+ -+ memset(&pdata, 0, sizeof(pdata)); -+ pdata.poll_interval = poll_interval; -+ pdata.nbuttons = nbuttons; -+ pdata.buttons = p; -+ -+ err = platform_device_add_data(pdev, &pdata, sizeof(pdata)); -+ if (err) -+ goto err_put_pdev; -+ -+ -+ err = platform_device_add(pdev); -+ if (err) -+ goto err_put_pdev; -+ -+ return; -+ -+err_put_pdev: -+ platform_device_put(pdev); -+ -+err_free_buttons: -+ kfree(p); -+} -diff -Nur linux-2.6.36.orig