diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2007-05-20 19:32:31 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2007-05-20 19:32:31 +0000 |
commit | 06fb3b2848963feb6962f53cce0d7c8c08e49590 (patch) | |
tree | 3fcc5469b69d361d9dddb4072d2892ec40445bcb /target/linux/aruba-2.6/patches/001-flash.patch | |
parent | 07009a08e09829f777d6390cd35e2c25e4cbfb2c (diff) | |
download | upstream-06fb3b2848963feb6962f53cce0d7c8c08e49590.tar.gz upstream-06fb3b2848963feb6962f53cce0d7c8c08e49590.tar.bz2 upstream-06fb3b2848963feb6962f53cce0d7c8c08e49590.zip |
convert aruba to the new structure
SVN-Revision: 7284
Diffstat (limited to 'target/linux/aruba-2.6/patches/001-flash.patch')
-rw-r--r-- | target/linux/aruba-2.6/patches/001-flash.patch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/target/linux/aruba-2.6/patches/001-flash.patch b/target/linux/aruba-2.6/patches/001-flash.patch index 78bfd3df32..8bd5be8e11 100644 --- a/target/linux/aruba-2.6/patches/001-flash.patch +++ b/target/linux/aruba-2.6/patches/001-flash.patch @@ -1,34 +1,3 @@ -diff -Nur linux-2.6.15/arch/mips/aruba/flash_lock.c linux-2.6.15-openwrt/arch/mips/aruba/flash_lock.c ---- linux-2.6.15/arch/mips/aruba/flash_lock.c 1970-01-01 01:00:00.000000000 +0100 -+++ linux-2.6.15-openwrt/arch/mips/aruba/flash_lock.c 2006-01-10 00:32:32.000000000 +0100 -@@ -0,0 +1,27 @@ -+#include <linux/module.h> -+#include <linux/types.h> -+#include <asm/bootinfo.h> -+ -+#define AP70_PROT_ADDR 0xb8010008 -+#define AP70_PROT_DATA 0x8 -+#define AP60_PROT_ADDR 0xB8400000 -+#define AP60_PROT_DATA 0x04000000 -+ -+void unlock_ap60_70_flash(void) -+{ -+ volatile __u32 val; -+ switch (mips_machtype) { -+ case MACH_ARUBA_AP70: -+ val = *(volatile __u32 *)AP70_PROT_ADDR; -+ val &= ~(AP70_PROT_DATA); -+ *(volatile __u32 *)AP70_PROT_ADDR = val; -+ break; -+ case MACH_ARUBA_AP65: -+ case MACH_ARUBA_AP60: -+ default: -+ val = *(volatile __u32 *)AP60_PROT_ADDR; -+ val &= ~(AP60_PROT_DATA); -+ *(volatile __u32 *)AP60_PROT_ADDR = val; -+ break; -+ } -+} diff -Nur linux-2.6.15/drivers/mtd/chips/cfi_probe.c linux-2.6.15-openwrt/drivers/mtd/chips/cfi_probe.c --- linux-2.6.15/drivers/mtd/chips/cfi_probe.c 2006-01-03 04:21:10.000000000 +0100 +++ linux-2.6.15-openwrt/drivers/mtd/chips/cfi_probe.c 2006-01-10 00:32:32.000000000 +0100 |