rv1126-uboot/common/spl
Patrick Delaunay ee9b3572a4 UPSTREAM: 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>
Change-Id: I6f5990b73f33815a7acb9b5da9c90dce48b6211d
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit b0cc1b846fcb310c0ac2f8cbeb4ed5947dc52912)
2019-07-05 19:33:50 +08:00
..
Kconfig UPSTREAM: mtd: spi: Add lightweight SPI flash stack for SPL 2019-07-05 19:33:49 +08:00
Makefile rockchip: spl: add rockchip image load support 2019-06-14 09:27:54 +08:00
spl.c common: spl: printf message when jump to ATF 2019-06-14 09:27:54 +08:00
spl_atf.c common: spl: atf: disable and clean-invalidate icache/dcache 2019-06-21 18:12:15 +08:00
spl_bootrom.c
spl_dfu.c treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
spl_ext.c
spl_fat.c UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-12-24 17:20:37 +08:00
spl_fit.c spl: fit: all rockchip based soc use dram as sram bounce buffer for 2019-05-09 16:49:14 +08:00
spl_mmc.c common: spl: mmc: support load rockchip images 2019-06-14 10:29:57 +08:00
spl_nand.c common: spl: nand: support load rockchip images 2019-06-17 17:28:54 +08:00
spl_net.c UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-12-24 17:20:37 +08:00
spl_nor.c
spl_onenand.c
spl_optee.S
spl_ram.c UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-12-24 17:20:37 +08:00
spl_rkfw.c rockchip: spl: add rockchip image load support 2019-06-14 09:27:54 +08:00
spl_sata.c
spl_sdp.c treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
spl_spi.c UPSTREAM: dm: spi: Read default speed and mode values from DT 2019-07-05 19:33:50 +08:00
spl_ubi.c
spl_usb.c
spl_xip.c
spl_ymodem.c UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-12-24 17:20:37 +08:00