diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-08-23 09:35:56 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2015-08-23 09:35:56 +0000 |
commit | ecdce239a54b7a4c4aa760a659c13642e1817326 (patch) | |
tree | 83539a5e69d1d9b9dddad0f3ad5f66aeb8cb02ed /target/linux/brcm63xx/patches-4.1/418-MIPS-BCM63XX-pass-caldata-info-to-flash.patch | |
parent | 0d54d4434978a616ac76ba7893e52b32385c4575 (diff) | |
download | upstream-ecdce239a54b7a4c4aa760a659c13642e1817326.tar.gz upstream-ecdce239a54b7a4c4aa760a659c13642e1817326.tar.bz2 upstream-ecdce239a54b7a4c4aa760a659c13642e1817326.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>
SVN-Revision: 46707
Diffstat (limited to 'target/linux/brcm63xx/patches-4.1/418-MIPS-BCM63XX-pass-caldata-info-to-flash.patch')
-rw-r--r-- | target/linux/brcm63xx/patches-4.1/418-MIPS-BCM63XX-pass-caldata-info-to-flash.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/brcm63xx/patches-4.1/418-MIPS-BCM63XX-pass-caldata-info-to-flash.patch b/target/linux/brcm63xx/patches-4.1/418-MIPS-BCM63XX-pass-caldata-info-to-flash.patch index b329c312f5..484e1fd5a2 100644 --- a/target/linux/brcm63xx/patches-4.1/418-MIPS-BCM63XX-pass-caldata-info-to-flash.patch +++ b/target/linux/brcm63xx/patches-4.1/418-MIPS-BCM63XX-pass-caldata-info-to-flash.patch @@ -22,7 +22,7 @@ Subject: [PATCH 69/80] MIPS: BCM63XX: pass caldata info to flash while (led_count < ARRAY_SIZE(board.leds) && board.leds[led_count].name) --- a/arch/mips/bcm63xx/dev-flash.c +++ b/arch/mips/bcm63xx/dev-flash.c -@@ -37,12 +37,15 @@ static struct mtd_partition mtd_partitio +@@ -38,12 +38,15 @@ static struct mtd_partition mtd_partitio } }; @@ -38,7 +38,7 @@ Subject: [PATCH 69/80] MIPS: BCM63XX: pass caldata info to flash }; static struct resource mtd_resources[] = { -@@ -70,6 +73,7 @@ void __init bcm63xx_flash_force_phys_bas +@@ -71,6 +74,7 @@ void __init bcm63xx_flash_force_phys_bas static struct flash_platform_data bcm63xx_flash_data = { .part_probe_types = bcm63xx_part_types, @@ -46,7 +46,7 @@ Subject: [PATCH 69/80] MIPS: BCM63XX: pass caldata info to flash }; static struct spi_board_info bcm63xx_spi_flash_info[] = { -@@ -197,9 +201,13 @@ void __init bcm63xx_flash_detect(void) +@@ -211,9 +215,13 @@ void __init bcm63xx_flash_detect(void) } } |