mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
T1042RDB_PI_NAND_SECURE_BOOT: Guard t104xrdb SPL env code
We can only configure and set the environment in SPL when we have a particular environment location set that is not "nowhere" like it is in SECURE_BOOT designs. Update the code to reflect that. Cc: Priyanka Jain <priyanka.jain@nxp.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
This commit is contained in:
@@ -106,6 +106,8 @@ void board_init_r(gd_t *gd, ulong dest_addr)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* relocate environment function pointers etc. */
|
/* relocate environment function pointers etc. */
|
||||||
|
#if defined(CONFIG_ENV_IS_IN_NAND) || defined(CONFIG_ENV_IS_IN_MMC) || \
|
||||||
|
defined(CONFIG_ENV_IS_IN_SPI_FLASH)
|
||||||
#ifdef CONFIG_SPL_NAND_BOOT
|
#ifdef CONFIG_SPL_NAND_BOOT
|
||||||
nand_spl_load_image(CONFIG_ENV_OFFSET, CONFIG_ENV_SIZE,
|
nand_spl_load_image(CONFIG_ENV_OFFSET, CONFIG_ENV_SIZE,
|
||||||
(uchar *)CONFIG_ENV_ADDR);
|
(uchar *)CONFIG_ENV_ADDR);
|
||||||
@@ -120,6 +122,7 @@ void board_init_r(gd_t *gd, ulong dest_addr)
|
|||||||
#endif
|
#endif
|
||||||
gd->env_addr = (ulong)(CONFIG_ENV_ADDR);
|
gd->env_addr = (ulong)(CONFIG_ENV_ADDR);
|
||||||
gd->env_valid = ENV_VALID;
|
gd->env_valid = ENV_VALID;
|
||||||
|
#endif
|
||||||
|
|
||||||
i2c_init_all();
|
i2c_init_all();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user