aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-01-29 19:12:25 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-01-29 19:12:25 +0000
commit251015ecee149098caeb4c52a52b6a11bddd92ef (patch)
treed9bc103bd2540f74ea55f60370d39d193874006e /target/linux/ar71xx
parent046963da3aeea5ad7ba3ab583cd9a8b83b8cbf92 (diff)
downloadupstream-251015ecee149098caeb4c52a52b6a11bddd92ef.tar.gz
upstream-251015ecee149098caeb4c52a52b6a11bddd92ef.tar.bz2
upstream-251015ecee149098caeb4c52a52b6a11bddd92ef.zip
ar71xx: enable fast flash read on dual-flash devices
This improves flash read speed on various Buffalo units. mtd_speedtest results on the WZR-HP-AG300H: old new delta eraseblock read speed: 726 KiB/s 2068 KiB/s +184.85% page read speed: 699 KiB/s 1973 KiB/s +182.26% 2 page read speed: 711 KiB/s 2043 KiB/s +187.34% Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35392 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/dev-m25p80.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/dev-m25p80.c b/target/linux/ar71xx/files/arch/mips/ath79/dev-m25p80.c
index 66115b1c48..9323b31233 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/dev-m25p80.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/dev-m25p80.c
@@ -113,5 +113,6 @@ void __init ath79_register_m25p80_multi(struct flash_platform_data *pdata)
add_mtd_concat_notifier();
ath79_spi_data.bus_num = 0;
ath79_spi_data.num_chipselect = 2;
+ ath79_spi0_cdata.is_flash = true;
ath79_register_spi(&ath79_spi_data, ath79_spi_info, 2);
}