mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-28 07:03:31 +08:00
ARM: zynq: Setup modeboot variable based on boot mode
modeboot variable is used for saving inforation which bootmode is used. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
5af46ca71a
commit
085b2b8287
@ -85,6 +85,12 @@ int board_init(void)
|
||||
int board_late_init(void)
|
||||
{
|
||||
switch ((zynq_slcr_get_boot_mode()) & ZYNQ_BM_MASK) {
|
||||
case ZYNQ_BM_QSPI:
|
||||
setenv("modeboot", "qspiboot");
|
||||
break;
|
||||
case ZYNQ_BM_NAND:
|
||||
setenv("modeboot", "nandboot");
|
||||
break;
|
||||
case ZYNQ_BM_NOR:
|
||||
setenv("modeboot", "norboot");
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user