mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-09 12:46:17 +09:00
ARM64: zynqmp: Modify the SD and QSPI bootmode values
Modify the SD bootmode value to 0x3 as per latest spec. Also add new boot mode QSPI 32 bit boot mode Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
0d90e9d851
commit
0a5bcc8c0d
|
@ -64,7 +64,10 @@ struct iou_scntr_secure {
|
||||||
|
|
||||||
/* Bootmode setting values */
|
/* Bootmode setting values */
|
||||||
#define BOOT_MODES_MASK 0x0000000F
|
#define BOOT_MODES_MASK 0x0000000F
|
||||||
|
#define QSPI_MODE_24BIT 0x00000001
|
||||||
|
#define QSPI_MODE_32BIT 0x00000002
|
||||||
#define SD_MODE 0x00000003
|
#define SD_MODE 0x00000003
|
||||||
|
#define NAND_MODE 0x00000004
|
||||||
#define EMMC_MODE 0x00000006
|
#define EMMC_MODE 0x00000006
|
||||||
#define JTAG_MODE 0x00000000
|
#define JTAG_MODE 0x00000000
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,13 @@ int board_late_init(void)
|
||||||
bootmode = reg & BOOT_MODES_MASK;
|
bootmode = reg & BOOT_MODES_MASK;
|
||||||
|
|
||||||
switch (bootmode) {
|
switch (bootmode) {
|
||||||
|
case JTAG_MODE:
|
||||||
|
setenv("modeboot", "netboot");
|
||||||
|
break;
|
||||||
|
case QSPI_MODE_24BIT:
|
||||||
|
case QSPI_MODE_32BIT:
|
||||||
|
setenv("modeboot", "qspiboot");
|
||||||
|
break;
|
||||||
case SD_MODE:
|
case SD_MODE:
|
||||||
case EMMC_MODE:
|
case EMMC_MODE:
|
||||||
setenv("modeboot", "sdboot");
|
setenv("modeboot", "sdboot");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user