ARM64: zynqmp: Fix bootmode SD_MODE1
authorMichal Simek <michal.simek@xilinx.com>
Fri, 6 Nov 2015 09:22:37 +0000 (10:22 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 27 Jan 2016 14:55:57 +0000 (15:55 +0100)
commit2d9925bce3060c91f2495e741a1220eb827338c0
treea7d8d61ce32fa92539c59ae0023995b742e4e174
parent78678feeacc32f4fca9cb9a4aa9168396d8101c6
ARM64: zynqmp: Fix bootmode SD_MODE1

When only sdhci1 IP is enabled and SD_MODE1 bootmode is selected
U-Boot using sdboot1 variable which refers to mmc dev 1.
But this device doesn't exist because only one controller is available.

This patch fix logic around sdboot mode with using sdbootdev internal
variable.

Reported-by: Chris Kohn <ckohn@xilinx.com>
Acked-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/zynqmp/zynqmp.c
include/configs/xilinx_zynqmp.h