immortalwrt/target/linux
Adrian Schmutzler ebc090e420 ath79: reduce spi-max-frequency to 50 MHz
The introduction of ebf0d8dade ("ath79: add new ar934x spi driver")
made the SPI memory unusable on devices with very high spi-max-frequency
(104 MHz).

Here's how the actual clock is calculated: (AHB_CLK/((CLOCK_DIVIDER+1)*2))
where AHB_CLK is a fixed clock (e.g. 200MHz on AR9331) and CLOCK_DIVIDER
is the parameter we can set. Highest clock according to this formula is
AHB_CLK/2 (100MHz, but that didn't work in device tests).
The next possible value is AHB_CLK/4 (50MHz). Speeds between 50 MHz and
100 MHz will be rounded down, so using values higher than 50 MHz does
not provide any benefit.

Consequently, this patch reduces spi-max-frequency for all devices with
values higher than 50 MHz to 50 MHz (effectively, this only affects
devices with 104 MHz before this patch).

Tested on GL.inet GL-AR150:
Boot fails with 104 MHz but is successful with both 50 MHz and 80 MHz
(fast-read), where the latter two yield identical read speeds.

Fixes: ebf0d8dade ("ath79: add new ar934x spi driver")

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-02-27 12:14:09 +01:00
..
apm821xx kernel: bump 4.19 to 4.19.101 2020-02-04 18:10:13 +01:00
ar71xx kernel: bump 4.14 to 4.14.171 2020-02-24 14:18:59 +01:00
arc770
archs38
armvirt kernel: remove non-existant symbols from 4.19 config 2020-02-22 16:38:41 +01:00
at91
ath25 kernel: bump 4.14 to 4.14.171 2020-02-24 14:18:59 +01:00
ath79 ath79: reduce spi-max-frequency to 50 MHz 2020-02-27 12:14:09 +01:00
bcm27xx kernel: bump 4.19 to 4.19.106 2020-02-24 19:11:36 +01:00
bcm47xx kernel: bump 4.14 to 4.14.171 2020-02-24 14:18:59 +01:00
bcm53xx kernel: bump 4.19 to 4.19.105 2020-02-24 14:19:16 +01:00
bcm63xx kernel: remove non-existant symbols from 4.19 config 2020-02-22 16:38:41 +01:00
cns3xxx
gemini
generic kernel: Sort generic configuration 2020-02-24 23:25:28 +01:00
imx6
ipq40xx kernel: bump 4.19 to 4.19.105 2020-02-24 14:19:16 +01:00
ipq806x kernel: bump 4.14 to 4.14.171 2020-02-24 14:18:59 +01:00
kirkwood kernel: bump 4.19 to 4.19.106 2020-02-24 19:11:36 +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
mediatek mediatek: add latest fixes provided by MTK 2020-02-25 17:15:32 +01:00
mpc85xx kernel: bump 4.19 to 4.19.105 2020-02-24 14:19:16 +01:00
mvebu kernel: bump 4.19 to 4.19.105 2020-02-24 14:19:16 +01:00
mxs
octeon octeon: apply vendor_model scheme to device definition/image name 2020-01-26 23:00:26 +01:00
octeontx
omap
oxnas
pistachio kernel: bump 4.14 to 4.14.171 2020-02-24 14:18:59 +01:00
ramips kernel: bump 4.14 to 4.14.171 2020-02-24 14:18:59 +01:00
rb532
samsung
sunxi sunxi: backport increased SATA/AHCI DMA TX/RX FIFOs 2020-02-13 17:45:46 +01:00
tegra
uml
x86 kernel: x86_64: drop CALGARY properly 2020-02-25 16:50:46 +00:00
zynq
Makefile