mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 06:30:39 +00:00
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>
This commit is contained in:
parent
78678feeac
commit
2d9925bce3
2 changed files with 8 additions and 3 deletions
|
@ -103,7 +103,10 @@ int board_late_init(void)
|
|||
break;
|
||||
case SD_MODE1:
|
||||
puts("SD_MODE1\n");
|
||||
setenv("modeboot", "sdboot1");
|
||||
#if defined(CONFIG_ZYNQ_SDHCI0) && defined(CONFIG_ZYNQ_SDHCI1)
|
||||
setenv("sdbootdev", "1");
|
||||
#endif
|
||||
setenv("modeboot", "sdboot");
|
||||
break;
|
||||
case NAND_MODE:
|
||||
puts("NAND_MODE\n");
|
||||
|
|
|
@ -156,8 +156,10 @@
|
|||
"kernel_addr=0x80000\0" \
|
||||
"fdt_addr=0x7000000\0" \
|
||||
"fdt_high=0x10000000\0" \
|
||||
"sdboot=mmcinfo && load mmc 0:0 $fdt_addr system.dtb && " \
|
||||
"load mmc 0:0 $kernel_addr Image && booti $kernel_addr - $fdt_addr\0" \
|
||||
"sdbootdev=0\0"\
|
||||
"sdboot=mmc dev $sdbootdev && mmcinfo && load mmc $sdbootdev:$partid $fdt_addr system.dtb && " \
|
||||
"load mmc $sdbootdev:$partid $kernel_addr Image && " \
|
||||
"booti $kernel_addr - $fdt_addr\0" \
|
||||
DFU_ALT_INFO
|
||||
|
||||
#define CONFIG_BOOTARGS "setenv bootargs console=ttyPS0,${baudrate} " \
|
||||
|
|
Loading…
Reference in a new issue