openwrt/target/linux
Adrian Schmutzler a508ab1ac8 ramips: increase spi-max-frequency to 50 MHz for D-Link DIR-810L
Read times drop when increasing frequency to 25 MHz and 50 MHz,
but not in between or for further increase. So, use 50 MHz as the
lowest frequency with the fastest speed.

Test results (thanks to Roger):

The device reports a mx25l6405d flash chip. I tried all the maximum
values in the devices' datasheet (Table 10. AC CHARACTERISTICS). All of
them worked with and without "m25p,fast-read":

> 10 MHz
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    1m 33.00s
user    0m 0.01s
sys    1m 7.56s

> 25 MHz
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    0m 34.42s
user    0m 0.02s
sys    0m 23.58s

> 25 MHz, fast read
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    0m 34.45s
user    0m 0.02s
sys    0m 23.59s

> 33 MHz
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    0m 34.39s
user    0m 0.00s
sys    0m 23.60s

> 33 MHz, fast read
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    0m 34.46s
user    0m 0.01s
sys    0m 23.62s

> 50 MHz
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    0m 26.81s
user    0m 0.01s
sys    0m 18.25s

> 50 MHz, fast read
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    0m 26.84s
user    0m 0.00s
sys    0m 18.25s

> 66 MHz
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    0m 26.80s
user    0m 0.01s
sys    0m 18.23s

> 66 MHz, fast read
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    0m 26.80s
user    0m 0.02s
sys    0m 18.23s

> 86 MHz
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    0m 26.84s
user    0m 0.01s
sys    0m 18.24s

> 86 MHz, fast read
root@OpenWrt:~# time cat /dev/mtd* > /dev/null
real    0m 26.80s
user    0m 0.02s
sys    0m 18.23s

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Tested-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
2020-03-05 12:53:50 +01:00
..
apm821xx treewide: move commonly disabled symbols to generic config 2020-03-01 00:51:23 +01:00
ar71xx ar71xx: add missing LED migration for Archer C7 2020-03-01 23:39:27 +01:00
arc770 arc770: gen_axs10x_sdcard_img.sh: switch to /bin/sh 2019-12-31 01:27:32 +01:00
archs38 archs38: gen_axs10x_sdcard_img.sh: switch to /bin/sh 2019-12-31 01:26:35 +01:00
armvirt kernel: remove non-existant symbols from 4.19 config 2020-02-22 16:38:41 +01:00
at91 at91: gen_at91_sdcard_img.sh: switch to /bin/sh 2019-12-31 01:25:44 +01:00
ath25 kernel: bump 4.14 to 4.14.171 2020-02-24 14:18:59 +01:00
ath79 spi: ath79: remove spi-master setup and cleanup assignment 2020-02-29 00:54:41 +01:00
bcm27xx bcm27xx: bcm2708: refresh linux 5.4 config 2020-03-01 13:43:29 +01:00
bcm47xx kernel: bump 4.14 to 4.14.171 2020-02-24 14:18:59 +01:00
bcm53xx bcm53xx: fix ASUS firmwares to use vendor format 2020-03-02 22:06:02 +01:00
bcm63xx kernel: remove non-existant symbols from 4.19 config 2020-02-22 16:38:41 +01:00
cns3xxx kernel: bump 4.19 to 4.19.86 2019-11-29 09:59:49 +01:00
gemini gemini: dns313_gen_hdd_img.sh: switch to /bin/sh 2019-12-31 01:23:24 +01:00
generic generic: add missing symbol from 5.4 config 2020-03-03 23:38:23 +01:00
imx6 imx6: 5.4: dts: backport lsm9ds1 imu support for GW553x 2020-03-01 21:36:00 +01:00
ipq40xx ipq40xx: fix support of EnGenius EAP2200 2020-03-05 12:53:06 +01:00
ipq806x ipq806x: add newline at the end of qcom-ipq8064-v1.0.dtsi 2020-03-05 12:53:14 +01:00
ipq807x ipq807x: fix indent in image/Makefile 2020-02-28 20:00:10 +01:00
kirkwood kirkwood: switch kernel version to 5.4 2020-03-03 23:38:23 +01:00
lantiq kernel: remove non-existant symbols from 4.19 config 2020-02-22 16:38:41 +01:00
layerscape kernel: bump 4.14 to 4.14.171 2020-02-24 14:18:59 +01:00
malta malta: enable HighMem on MIPS32 2020-01-15 22:35:48 +01:00
mediatek mediatek: update uci-defaults for renamed smp packet steering option 2020-03-03 22:43:09 +01:00
mpc85xx mpc85xx: disable kernel uImage generation 2020-03-01 00:51:23 +01:00
mvebu mvebu: uDPU: drop patch compiling dtb 2020-03-01 21:36:00 +01:00
mxs mxs: gen_sdcard_ext4_ext4.sh: use /bin/sh 2019-12-31 01:19:48 +01:00
octeon octeon: apply vendor_model scheme to device definition/image name 2020-01-26 23:00:26 +01:00
octeontx kernel: bump 4.14 to 4.14.160 2019-12-24 17:45:54 +01:00
omap omap: gen_omap_sdcard_img.sh: use /bin/sh 2019-12-31 01:17:09 +01:00
oxnas kernel: bump 4.14 to 4.14.158 2019-12-10 09:50:42 +01:00
pistachio kernel: bump 4.14 to 4.14.171 2020-02-24 14:18:59 +01:00
ramips ramips: increase spi-max-frequency to 50 MHz for D-Link DIR-810L 2020-03-05 12:53:50 +01:00
rb532 rb532: gen_image.sh: use /bin/sh 2019-12-31 01:16:17 +01:00
samsung samsung: add subtarget condition for device 2020-01-03 00:04:22 +01:00
sunxi sunxi: backport increased SATA/AHCI DMA TX/RX FIFOs 2020-02-13 17:45:46 +01:00
tegra x86,tegra,mvebu: image: use common reproducible IMG_PART_SIGNATURE 2019-11-11 16:37:13 +01:00
uml treewide: Remove self from MAINTAINER entries 2019-12-23 13:18:04 -08:00
x86 kernel: x86_64: drop CALGARY IOMMU on 5.4 2020-03-02 11:42:31 +00:00
zynq zynq: derive DEVICE_DTS from device definition name 2020-01-21 14:26:04 +01:00
Makefile