arm64: zynqmp: Setup the first boot_target at run time
authorMichal Simek <michal.simek@xilinx.com>
Wed, 25 Apr 2018 09:20:43 +0000 (11:20 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 31 May 2018 11:50:39 +0000 (13:50 +0200)
commit2882b39d564bfa531d86aa22900658285483107d
tree348463998c715ab095c1ee610290e0fe2f3b8da9
parent6189f76ae8fb3549349443d1d702d3d652d1244b
arm64: zynqmp: Setup the first boot_target at run time

Detect mmc alias at run time for setting up proper boot_targets sequence.
The first target has to correspond with boot mode.

The purpose of this patch is to get rid of CONFIG_ZYNQ_SDHCI0/1
parameters in full U-Boot.
Unfortunately this patch can't remove it because there is missing
mmc implementation for SPL_DM_SEQ_ALIAS.

Also xilinx_zynqmp.h only setup boot commands for mmc0 and mmc1.
It means using aliases with higher number won't work. But switching
between mmc0 and mmc1 should work properly.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Alexander Graf <agraf@suse.de>
board/xilinx/zynqmp/zynqmp.c