mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-11-01 01:51:24 +00:00
There are two spi drivers for en7523/an7581/an7583: * en7581-snand (spi-airoha-snfi.c) * en7523-spi (spi-en7523.c) The first one supports DMA, but until recently it has several nasty issues. The second do things properly but does not support DMA. Recently the first driver was greatly improved, so there is no sence keep both drivers anymore. This patch removes en7523-spi driver and use DMA capable driver instead. Unfortunately there is a nasty en7523 specific issue. We found that some serial console may pull TX line to GROUND during board boot time. Airoha uses TX line as one of it's BOOT pins. This will lead to booting in RESERVED boot mode. It was found that some flashes operates incorrectly in RESERVED mode if DMA used. This patch also adds a hack that turns off DMA and prints big fat warning if booting in reserved mode was detected. This slow down flash operations but does not kill your data. Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu> Link: https://github.com/openwrt/openwrt/pull/20365 Signed-off-by: Robert Marko <robimarko@gmail.com>
3.3 KiB
3.3 KiB