forked from OERV-BSP/u-boot
Merge tag 'u-boot-imx-master-20250823' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/27447 - Fix the environment location when booting from USB on i.MX93. - Fix env location when booting from USB on phycore-imx93. - Fix conflict early SPL malloc address on imx93 boards.
This commit is contained in:
@@ -635,7 +635,8 @@ enum env_location env_get_location(enum env_operation op, int prio)
|
||||
|
||||
switch (dev) {
|
||||
case QSPI_BOOT:
|
||||
env_loc = ENVL_SPI_FLASH;
|
||||
if (IS_ENABLED(CONFIG_ENV_IS_IN_SPI_FLASH))
|
||||
env_loc = ENVL_SPI_FLASH;
|
||||
break;
|
||||
case SD1_BOOT:
|
||||
case SD2_BOOT:
|
||||
@@ -643,10 +644,16 @@ enum env_location env_get_location(enum env_operation op, int prio)
|
||||
case MMC1_BOOT:
|
||||
case MMC2_BOOT:
|
||||
case MMC3_BOOT:
|
||||
env_loc = ENVL_MMC;
|
||||
if (IS_ENABLED(CONFIG_ENV_IS_IN_MMC))
|
||||
env_loc = ENVL_MMC;
|
||||
break;
|
||||
default:
|
||||
env_loc = ENVL_NOWHERE;
|
||||
if (IS_ENABLED(CONFIG_ENV_IS_NOWHERE))
|
||||
env_loc = ENVL_NOWHERE;
|
||||
else if (IS_ENABLED(CONFIG_ENV_IS_IN_SPI_FLASH))
|
||||
env_loc = ENVL_SPI_FLASH;
|
||||
else if (IS_ENABLED(CONFIG_ENV_IS_IN_MMC))
|
||||
env_loc = ENVL_MMC;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -809,7 +809,13 @@ enum env_location env_get_location(enum env_operation op, int prio)
|
||||
return ENVL_FAT;
|
||||
return ENVL_NOWHERE;
|
||||
default:
|
||||
return ENVL_NOWHERE;
|
||||
if (IS_ENABLED(CONFIG_ENV_IS_NOWHERE))
|
||||
return ENVL_NOWHERE;
|
||||
else if (IS_ENABLED(CONFIG_ENV_IS_IN_SPI_FLASH))
|
||||
return ENVL_SPI_FLASH;
|
||||
else if (IS_ENABLED(CONFIG_ENV_IS_IN_MMC))
|
||||
return ENVL_MMC;
|
||||
return ENVL_UNKNOWN;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -52,8 +52,7 @@ void spl_dram_init(void)
|
||||
int ret;
|
||||
enum phytec_imx93_ddr_eeprom_code ddr_opt = PHYTEC_IMX93_DDR_INVALID;
|
||||
|
||||
/* NOTE: In SPL lpi2c3 is mapped to bus 0 */
|
||||
ret = phytec_eeprom_data_setup(NULL, 0, EEPROM_ADDR);
|
||||
ret = phytec_eeprom_data_setup(NULL, 2, EEPROM_ADDR);
|
||||
if (ret && !IS_ENABLED(CONFIG_PHYCORE_IMX93_RAM_TYPE_FIX))
|
||||
goto out;
|
||||
|
||||
|
||||
@@ -92,6 +92,7 @@ CONFIG_USE_ETHPRIME=y
|
||||
CONFIG_ETHPRIME="eth1"
|
||||
CONFIG_NET_RANDOM_ETHADDR=y
|
||||
CONFIG_SPL_DM=y
|
||||
CONFIG_SPL_DM_SEQ_ALIAS=y
|
||||
CONFIG_SPL_CLK_IMX93=y
|
||||
CONFIG_CLK_IMX93=y
|
||||
CONFIG_DFU_MMC=y
|
||||
|
||||
@@ -11,10 +11,6 @@
|
||||
#define CFG_SYS_UBOOT_BASE \
|
||||
(QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
|
||||
|
||||
#ifdef CONFIG_XPL_BUILD
|
||||
#define CFG_MALLOC_F_ADDR 0x204D0000
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ENV_MMC_DEVICE_INDEX
|
||||
#define IMX93_EVK_MMC_ENV_DEV CONFIG_ENV_MMC_DEVICE_INDEX
|
||||
#else
|
||||
|
||||
@@ -11,10 +11,6 @@
|
||||
#define CFG_SYS_UBOOT_BASE \
|
||||
(QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
|
||||
|
||||
#ifdef CONFIG_XPL_BUILD
|
||||
#define CFG_MALLOC_F_ADDR 0x204D0000
|
||||
#endif
|
||||
|
||||
/* Link Definitions */
|
||||
|
||||
#define CFG_SYS_INIT_RAM_ADDR 0x80000000
|
||||
|
||||
@@ -9,10 +9,6 @@
|
||||
#define CFG_SYS_UBOOT_BASE \
|
||||
(QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
|
||||
|
||||
#ifdef CONFIG_SPL_BUILD
|
||||
#define CFG_MALLOC_F_ADDR 0x204D0000
|
||||
#endif
|
||||
|
||||
#define CFG_SYS_INIT_RAM_ADDR 0x80000000
|
||||
#define CFG_SYS_INIT_RAM_SIZE 0x200000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user