rockchip: rk3399: change boot_target based on u-boot, spl-boot-device
authorKlaus Goger <klaus.goger@theobroma-systems.com>
Thu, 24 May 2018 15:15:53 +0000 (17:15 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 20 Jul 2018 23:55:26 +0000 (01:55 +0200)
commit41826f6a342b23bc43fa52f5836f466c2ecc567d
tree1c86b5b64c27840a0a9e08893fb496b471772960
parente5f2ecc75001e40a698e56299869ec2bda941c44
rockchip: rk3399: change boot_target based on u-boot, spl-boot-device

The order distroboot searches for a boot.scr is fixed at compile time.
To make BIOS_DISABLE work as expected and boot from mmc1 instead of
mmc0 if enabled, we need to change the environment at runtime.
Especially as commit: 482cf22333 ("rockchip: rk3399-puma: add boot-on
regulator to override BIOS_DISABLE") enables the eMMC in U-Boot even
if BIOS_DISABLE is active.

Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
board/theobroma-systems/puma_rk3399/puma-rk3399.c