u-boot-brain/drivers/mtd/spi
Patrick Delaunay b0cc1b846f dm: spi: Read default speed and mode values from DT
This patch update the behavior introduced by
commit 96907c0fe5 ("dm: spi: Read default speed and mode values from DT")

In case of DT boot, don't read default speed and mode for SPI from
CONFIG_* but instead read from DT node. This will make sure that boards
with multiple SPI/QSPI controllers can be probed at different
bus frequencies and SPI modes.

Remove also use in boards of the value speed=0 (no more supported)
for ENV in SPI by using CONFIG_ENV_SPI_MAX_HZ=0.

DT values will be always used when available (full DM support of
SPI slave with available DT node) even if speed and mode are requested;
for example in splash screen support (in splash_sf_read_raw)
or in SPL boot (in spl_spi_load_image).
The caller of spi_get_bus_and_cs() no more need to force speed=0.

But the current behavior don't change if the SPI slave is not
present (device with generic driver is created automatically)
or if platdata is used (CONFIG_OF_PLATDATA).

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Acked-by: Jagan Teki <jagan@amarulasolutions.com>
2019-04-12 11:54:50 +05:30
..
fsl_espi_spl.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig dm: spi: Read default speed and mode values from DT 2019-04-12 11:54:50 +05:30
Makefile mtd: spi: Add lightweight SPI flash stack for SPL 2019-02-07 15:33:21 +05:30
sandbox.c mtd: spi: Switch to new SPI NOR framework 2019-02-07 15:33:21 +05:30
sf_dataflash.c mtd: spi: Switch to new SPI NOR framework 2019-02-07 15:33:21 +05:30
sf_internal.h mtd: spi: Add lightweight SPI flash stack for SPL 2019-02-07 15:33:21 +05:30
sf_mtd.c mtd: sf: Make sf_mtd.c more robust 2018-12-06 00:45:36 +05:30
sf_probe.c mtd: sf_probe: remove spi-flash compatible 2019-04-12 10:54:27 +05:30
sf-uclass.c sf: Add a method to obtain the block-protect setting 2018-11-20 19:14:22 -07:00
sf.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spi-nor-core.c mtd: spi: Replace ad-hoc default implementation with spi_mem_op 2019-04-12 11:42:48 +05:30
spi-nor-ids.c mtd: spi: Add Macronix MX66U2G45F device 2019-04-12 10:56:25 +05:30
spi-nor-tiny.c mtd: spi: Add lightweight SPI flash stack for SPL 2019-02-07 15:33:21 +05:30