arm64: zynqmp: Handle MMC seq number based on boot device
authorMichal Simek <michal.simek@xilinx.com>
Wed, 19 May 2021 13:16:19 +0000 (15:16 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 23 Jun 2021 07:48:35 +0000 (09:48 +0200)
commit476588c9b484d9483a1d309499cd83dad49cec73
treeac73a01178332905698d54b5d5f3fcb16533c936
parent02ac1553b8329f866c1761f5d9fe66972817782c
arm64: zynqmp: Handle MMC seq number based on boot device

K26 has EMMC and SD and default 0 is not working when system is booting out
of SD which is controller 1. Add controller autodetection via
mmc_get_env_dev(). The same code is used for distro_boot selection done in
board_late_init(). bootseq variable can't be reused because this is called
so late.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/zynqmp/zynqmp.c
configs/xilinx_zynqmp_virt_defconfig