aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/patches-4.1/372_dont_register_pflash_when_available_in_dtb.patch
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2015-08-23 09:35:56 +0000
committerJonas Gorski <jogo@openwrt.org>2015-08-23 09:35:56 +0000
commitaa0e6f7f134451af40dc7953bdbb973f2b11b6ac (patch)
tree8280a38c26b291cc326a070a0b2ecbcef4fbd593 /target/linux/brcm63xx/patches-4.1/372_dont_register_pflash_when_available_in_dtb.patch
parent8dd6ac073bffc1dfa7966f1fc03d6527645ec3e8 (diff)
downloadmaster-187ad058-aa0e6f7f134451af40dc7953bdbb973f2b11b6ac.tar.gz
master-187ad058-aa0e6f7f134451af40dc7953bdbb973f2b11b6ac.tar.bz2
master-187ad058-aa0e6f7f134451af40dc7953bdbb973f2b11b6ac.zip
brcm63xx: ensure dummy byte is set for mapped spi flash with fast read
Some CFEs seem to misconfigure the mapped memory flash access with fast read but without a dummy byte, causing all accesses to be prefixed with 0xff. This of course breaks reading out the nvram, so do not just move back to single i/o accessors, but also ensure that the dummy byte is correctly set. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46707 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/patches-4.1/372_dont_register_pflash_when_available_in_dtb.patch')
-rw-r--r--target/linux/brcm63xx/patches-4.1/372_dont_register_pflash_when_available_in_dtb.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/brcm63xx/patches-4.1/372_dont_register_pflash_when_available_in_dtb.patch b/target/linux/brcm63xx/patches-4.1/372_dont_register_pflash_when_available_in_dtb.patch
index 88efc2360b..25384ebb68 100644
--- a/target/linux/brcm63xx/patches-4.1/372_dont_register_pflash_when_available_in_dtb.patch
+++ b/target/linux/brcm63xx/patches-4.1/372_dont_register_pflash_when_available_in_dtb.patch
@@ -1,6 +1,6 @@
--- a/arch/mips/bcm63xx/dev-flash.c
+++ b/arch/mips/bcm63xx/dev-flash.c
-@@ -22,6 +22,8 @@
+@@ -23,6 +23,8 @@
#include <bcm63xx_regs.h>
#include <bcm63xx_io.h>
@@ -9,7 +9,7 @@
static int flash_type;
static struct mtd_partition mtd_partitions[] = {
-@@ -164,6 +166,9 @@ int __init bcm63xx_flash_register(void)
+@@ -178,6 +180,9 @@ int __init bcm63xx_flash_register(void)
switch (flash_type) {
case BCM63XX_FLASH_TYPE_PARALLEL: