diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-04-02 09:34:39 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-04-02 09:34:39 +0000 |
commit | 3c9a0598e9c42a27150b6a936fee029b6b8be0aa (patch) | |
tree | 56e79058fb481180cd366429c9a98fa079e12810 /target/linux/adm5120-2.6/patches | |
parent | 4b5e7678f6cbf43e8ed8188bb17ca0f4087b090f (diff) | |
download | upstream-3c9a0598e9c42a27150b6a936fee029b6b8be0aa.tar.gz upstream-3c9a0598e9c42a27150b6a936fee029b6b8be0aa.tar.bz2 upstream-3c9a0598e9c42a27150b6a936fee029b6b8be0aa.zip |
Fixes from Compex to make OpenWrt run on WP54AG, thanks !
SVN-Revision: 6817
Diffstat (limited to 'target/linux/adm5120-2.6/patches')
-rwxr-xr-x | target/linux/adm5120-2.6/patches/101-mtd-mxflash.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/target/linux/adm5120-2.6/patches/101-mtd-mxflash.patch b/target/linux/adm5120-2.6/patches/101-mtd-mxflash.patch new file mode 100755 index 0000000000..754a91e09f --- /dev/null +++ b/target/linux/adm5120-2.6/patches/101-mtd-mxflash.patch @@ -0,0 +1,31 @@ +--- linux-2.6.19.2/drivers/mtd/chips/Kconfig.old 2007-01-11 03:10:36.000000000 +0800 ++++ linux-2.6.19.2/drivers/mtd/chips/Kconfig 2007-03-29 14:43:32.000000000 +0800 +@@ -199,6 +199,14 @@ + provides support for one of those command sets, used on chips + including the AMD Am29LV320. + ++config MTD_CFI_AMDSTD_FORCE_BOTTOM_BOOT ++ bool "Force bottom boot for Macronix flash chips" ++ depends on MTD_CFI_AMDSTD ++ help ++ Some Macronix flash chips have wrong CFI info, and the driver may ++ detect the type incorrectly. Select this if the chip part number ++ ends with BTC. ++ + config MTD_CFI_STAA + tristate "Support for ST (Advanced Architecture) flash chips" + depends on MTD_GEN_PROBE +--- linux-2.6.19.2/drivers/mtd/chips/cfi_cmdset_0002.c.old 2007-03-22 16:14:56.000000000 +0800 ++++ linux-2.6.19.2/drivers/mtd/chips/cfi_cmdset_0002.c 2007-03-29 14:07:28.000000000 +0800 +@@ -320,6 +320,11 @@ + cfi_tell_features(extp); + #endif + ++#ifdef CONFIG_MTD_CFI_AMDSTD_FORCE_BOTTOM_BOOT ++ extp->TopBottom = 2; ++ bootloc = extp->TopBottom; ++#endif ++ + bootloc = extp->TopBottom; + if ((bootloc != 2) && (bootloc != 3)) { + printk(KERN_WARNING "%s: CFI does not contain boot " |