rv1126-uboot/common
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
..
eeprom cmd: eeprom: add support for layout aware commands 2016-05-20 17:02:07 -04:00
init serial: ns16550: support using pre-loader serial 2018-10-19 17:40:56 +08:00
spl UPSTREAM: dm: spi: Read default speed and mode values from DT 2019-07-05 19:33:50 +08:00
Kconfig common: console: optimize console record 2019-05-09 18:07:45 +08:00
Makefile common: Makefile: optimize compile rules for TPL/SPL/U-Boot 2019-07-05 19:01:06 +08:00
android_ab.c android: Implement A/B slot select. 2017-11-14 10:55:46 +08:00
android_bootloader.c common: android: fix tries_remaining minus twice in avb & ab system 2019-06-28 09:55:01 +08:00
attestation_key.c common: write_keybox: fix write attestation key compatibility error 2019-03-05 15:09:17 +08:00
autoboot.c common: autoboot: using ctrl+c to exit bootdelay and enter hush 2018-12-19 17:08:17 +08:00
bedbug.c
board_f.c command: board_f/r: add sysmem and bidram 2019-03-26 11:04:33 +08:00
board_info.c UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-12-24 17:20:37 +08:00
board_r.c common: board_r: add console_record_reset_enable() call 2019-05-09 18:07:45 +08:00
boot_fit.c UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-12-24 17:20:37 +08:00
boot_rkimg.c common: rkimg: clear boot mode register when its value is not reboot reason 2019-07-01 15:47:04 +08:00
bootm.c common: bootm: test cmdtp is NULL or not before use it 2018-12-27 19:43:13 +08:00
bootm_os.c UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-12-24 17:20:37 +08:00
bootretry.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
bootstage.c UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-12-24 17:20:37 +08:00
bouncebuf.c
cli.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
cli_hush.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
cli_readline.c common: cli_readline: Improve command line editing 2016-08-20 14:03:24 -04:00
cli_simple.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
command.c Drop command-processing code when CONFIG_CMDLINE is disabled 2016-04-01 17:17:40 -04:00
common_fit.c UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-12-24 17:20:37 +08:00
console.c common: console: fix typo 2019-05-09 18:07:45 +08:00
cros_ec.c
ddr_spd.c
dfu.c treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
dlmalloc.c UPSTREAM: malloc: don't compare pointers to 0 2018-01-17 15:27:28 +08:00
dlmalloc.src
edid.c UPSTREAM: lib: Add hexdump 2019-07-05 19:33:39 +08:00
exports.c
fb_common.c Handle slow MMC writes 2017-11-14 10:55:45 +08:00
fb_mmc.c fastboot: get mmc erase group size for fastboot 2018-08-13 09:58:31 +08:00
fb_nand.c treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
fdt_support.c common: fdt_support: correct function part_mtd_parse to mtd_part_parse 2019-06-25 17:53:27 +08:00
flash.c UPSTREAM: flash: Fix spelling of "ERR_TIMOUT" 2019-07-05 19:33:35 +08:00
hash.c hash: Compile only hardware or software versions of SHA algorithms 2017-08-20 09:53:13 -04:00
hwconfig.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
image-android-dt.c image: android-dt: add dt_for_each_entry() to iterate over all dt entry of DT image 2018-08-06 11:15:19 +08:00
image-android.c common: image-android: print separate load fail message 2019-06-25 08:28:54 +08:00
image-fdt.c lib: sysmem: refactor code 2019-03-26 11:04:33 +08:00
image-fit.c UPSTREAM: fit: Introduce methods for applying overlays on fit-load 2018-01-16 18:16:48 +08:00
image-sig.c UPSTREAM: image-sig: use designated initializers for algorithm 2018-01-17 15:27:28 +08:00
image-sparse.c Implement fastboot flash and erase. 2017-11-14 10:55:45 +08:00
image.c UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-12-24 17:20:37 +08:00
iomux.c console: Don't enable CONFIG-CONSOLE_MUX, etc. in SPL 2017-02-06 11:38:46 +08:00
iotrace.c
kallsyms.c
keymaster.c lib: optee_client: Extract keymaster CA module 2019-01-18 09:09:34 +08:00
kgdb.c Fix spelling of "occurred". 2016-05-02 18:37:09 -04:00
kgdb_stubs.c Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
lcd.c lcd: avoid possible NULL dereference 2017-08-19 20:42:20 +02:00
lcd_console.c
lcd_console_rotation.c
lcd_simplefb.c UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-12-24 17:20:37 +08:00
log.c UPSTREAM: log: Plumb logging into the init sequence 2018-01-17 15:27:28 +08:00
log_console.c UPSTREAM: log: Add a console driver 2018-01-17 15:27:28 +08:00
lynxkdi.c powerpc: remove 4xx support 2017-07-03 17:35:28 -04:00
main.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
malloc_simple.c malloc_simple: Add debug statements to memalign_simple 2017-01-28 14:04:34 -05:00
memsize.c Revert "common/memsize.c: Simplify RAM size detection" 2016-02-10 08:34:42 -05:00
menu.c Fix typo choosen in comments and printf logs 2016-03-27 09:12:23 -04:00
miiphyutil.c common: miiphyutil: Add helper function for mdio bus name 2016-12-20 07:40:04 +01:00
s_record.c
splash.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
splash_source.c splash_source: Verify FIT magic 2017-09-04 23:53:47 +02:00
stdio.c Drop the log buffer 2018-01-17 15:27:28 +08:00
system_map.c
update.c treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
usb.c UPSTREAM: usb: Read device descriptor after device is addressed for xHCI 2018-01-17 15:27:28 +08:00
usb_hub.c UPSTREAM: usb: Correct use of debug() 2018-01-17 15:27:28 +08:00
usb_kbd.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
usb_storage.c UPSTREAM: usb: storage: Fix overwritten in usb_stor_set_max_xfer_blk() 2018-01-17 15:27:28 +08:00
write_keybox.c common: write keybox: fix some non-standard code style 2019-02-25 15:07:42 +08:00
xyzModem.c common/xyzModem.c: Do not use hard-coded address for debug buffer 2017-04-08 09:26:55 -04:00