u-boot/arch/arm/mach-rockchip
Quentin Schulz 72ebe8b8cb rockchip: rk3399: fix incorrect boot-device in u-boot, spl-boot-device
On RK3399, mmc0 is eMMC and mmc1 is SD card, c.f. console:
MMC:   mmc@fe320000: 1, mmc@fe330000: 0

In arch/arm/mach-rockchip/spl-boot-order.c:board_boot_order, the
boot_device (BOOT_DEVICE_*) value is gotten from spl_node_to_boot_device
function. Said function returns BOOT_DEVICE_MMC1 for mmc0 (eMMC) and
BOOT_DEVICE_MMC2 for mmc1 (SD card).

Since the SD card controller is at mmc@fe320000, it should be associated
with BOOT_DEVICE_MMC2 and not BOOT_DEVICE_MMC1. Same applies to eMMC.

Let's fix that by swapping the two BOOT_DEVICEs.

Cc: Quentin Schulz <foss+uboot@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Tested-by: Xavier Drudis Ferran <xdrudis@tinet.cat>
2022-09-04 20:00:38 +08:00
..
px30 Convert CONFIG_SPL_PAD_TO et al to Kconfig 2022-06-06 12:09:06 -04:00
rk322x Convert CONFIG_SPL_PAD_TO et al to Kconfig 2022-06-06 12:09:06 -04:00
rk3036 rockchip: move ROCKCHIP_STIMER_BASE to Kconfig 2022-04-18 11:25:12 +08:00
rk3066 rockchip: rk3066: add Rikomagic MK808 board 2022-04-18 11:25:13 +08:00
rk3128 rockchip: move ROCKCHIP_STIMER_BASE to Kconfig 2022-04-18 11:25:12 +08:00
rk3188 rockchip: fix boot_devices constants 2022-04-18 11:25:13 +08:00
rk3288 Convert CONFIG_SPL_PAD_TO et al to Kconfig 2022-06-06 12:09:06 -04:00
rk3308 rockchip: rk3308: fix same-as-spl boot order 2022-09-04 20:00:38 +08:00
rk3328 Convert CONFIG_SPL_PAD_TO et al to Kconfig 2022-06-06 12:09:06 -04:00
rk3368 spl: Move SPL_LDSCRIPT defaults to one place 2022-06-28 17:03:31 -04:00
rk3399 rockchip: rk3399: fix incorrect boot-device in u-boot, spl-boot-device 2022-09-04 20:00:38 +08:00
rk3568 rockchip: move ROCKCHIP_STIMER_BASE to Kconfig 2022-04-18 11:25:12 +08:00
rv1108 dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET() 2021-01-05 12:26:35 -07:00
board.c rockchip: board: change condition board_usb_init() in function 2022-06-29 11:28:16 +08:00
boot_mode.c rockchip: boot_mode: fix fastboot command 2021-12-24 15:17:51 +08:00
bootrom.c common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
cpu-info.c rockchip: Separate the reset cause from display cpuinfo 2020-07-22 20:55:13 +08:00
Kconfig rockchip: Add option to prevent booting on power plug-in 2022-06-29 11:42:10 +08:00
make_fit_atf.py mach-rockchip: make_fit_atf.py: support OP-TEE tee.bin v1 format 2022-06-29 11:32:35 +08:00
Makefile rockchip: rk3066: add core support 2022-04-18 11:25:13 +08:00
misc.c dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET() 2021-01-05 12:26:35 -07:00
px30-board-tpl.c Remove #include <version.h> from files which do not need it 2021-09-17 12:10:44 -04:00
rk3036-board-spl.c arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid 2022-04-21 15:27:18 -04:00
sdram.c lib: optee: remove the duplicate CONFIG_OPTEE 2021-10-05 08:44:48 -04:00
spl-boot-order.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
spl.c arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid 2022-04-21 15:27:18 -04:00
tpl.c arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid 2022-04-21 15:27:18 -04:00
u-boot-tpl-v8.lds linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
u-boot-tpl.lds rockchip: rk322x: add tpl support 2019-05-08 17:34:12 +08:00