diff options
| author | Tom Rini <[email protected]> | 2022-01-21 14:01:41 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-01-21 14:01:41 -0500 |
| commit | e6786b0354372c8a68d01e4d633a19cdce373b70 (patch) | |
| tree | 027e1693c9765fe67f3879d2e65d38ac695dde98 /common | |
| parent | 2d7a463e82daeba4f6a7fb59bac0fe94d6f6d3a2 (diff) | |
| parent | 3425decf5299bb7d3ce12d7f8e43cd2d49b9cad6 (diff) | |
Merge branch '2022-01-21-Kconfig-migrations'
- Migrate CONFIG_KEEP_SERVERADDR, CONFIG_UDP_CHECKSUM, CONFIG_TIMESTAMP,
CONFIG_BOOTP_SERVERIP, CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR,
CONFIG_SYS_MAX_FLASH_BANKS_DETECT, CONFIG_SYS_MAX_FLASH_BANKS and
CONFIG_AT91_EFLASH to Kconfig
Diffstat (limited to 'common')
| -rw-r--r-- | common/flash.c | 2 | ||||
| -rw-r--r-- | common/spl/Kconfig | 16 | ||||
| -rw-r--r-- | common/spl/spl_mmc.c | 13 | ||||
| -rw-r--r-- | common/update.c | 4 |
4 files changed, 27 insertions, 8 deletions
diff --git a/common/flash.c b/common/flash.c index bb82385c1f7..f939c2f9e95 100644 --- a/common/flash.c +++ b/common/flash.c @@ -91,7 +91,7 @@ addr2info(ulong addr) flash_info_t *info; int i; - for (i=0, info = &flash_info[0]; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i, ++info) { + for (i = 0, info = &flash_info[0]; i < CFI_FLASH_BANKS; ++i, ++info) { if (info->flash_id != FLASH_UNKNOWN && addr >= info->start[0] && /* WARNING - The '- 1' is needed if the flash diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 4a739a74215..e0d0a6f77b5 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -919,6 +919,22 @@ config SYS_OS_BASE endif # SPL_OS_BOOT +config SPL_FALCON_BOOT_MMCSD + bool "Enable Falcon boot from MMC or SD media" + depends on SPL_OS_BOOT && SPL_MMC + help + Select this if the Falcon mode OS image mode is on MMC or SD media. + +config SYS_MMCSD_RAW_MODE_KERNEL_SECTOR + hex "Falcon mode: Sector to load kernel uImage from MMC" + depends on SPL_FALCON_BOOT_MMCSD + help + When Falcon mode is used with an MMC or SD media, SPL needs to know + where to look for the kernel uImage. The image is expected to begin + at the raw MMC specified in this config. + Note that the Falcon mode image can also be a FIT, if FIT support is + enabled. + config SPL_PAYLOAD string "SPL payload" default "tpl/u-boot-with-tpl.bin" if TPL diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index d550da2d97e..1c41d24ff45 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -222,7 +222,7 @@ static int mmc_load_image_raw_partition(struct spl_image_info *spl_image, } #endif -#if CONFIG_IS_ENABLED(OS_BOOT) +#if CONFIG_IS_ENABLED(FALCON_BOOT_MMCSD) static int mmc_load_image_raw_os(struct spl_image_info *spl_image, struct spl_boot_device *bootdev, struct mmc *mmc) @@ -257,10 +257,6 @@ static int mmc_load_image_raw_os(struct spl_image_info *spl_image, return 0; } #else -int spl_start_uboot(void) -{ - return 1; -} static int mmc_load_image_raw_os(struct spl_image_info *spl_image, struct spl_boot_device *bootdev, struct mmc *mmc) @@ -269,6 +265,13 @@ static int mmc_load_image_raw_os(struct spl_image_info *spl_image, } #endif +#ifndef CONFIG_SPL_OS_BOOT +int spl_start_uboot(void) +{ + return 1; +} +#endif + #ifdef CONFIG_SYS_MMCSD_FS_BOOT_PARTITION static int spl_mmc_do_fs_boot(struct spl_image_info *spl_image, struct spl_boot_device *bootdev, diff --git a/common/update.c b/common/update.c index f5c8684f1b2..b9ad475d9d4 100644 --- a/common/update.c +++ b/common/update.c @@ -112,12 +112,12 @@ static int update_flash_protect(int prot, ulong addr_first, ulong addr_last) if (prot == 0) { saved_prot_info = - calloc(CONFIG_SYS_MAX_FLASH_BANKS * CONFIG_SYS_MAX_FLASH_SECT, 1); + calloc(CFI_FLASH_BANKS * CONFIG_SYS_MAX_FLASH_SECT, 1); if (!saved_prot_info) return 1; } - for (bank = 0; bank < CONFIG_SYS_MAX_FLASH_BANKS; ++bank) { + for (bank = 0; bank < CFI_FLASH_BANKS; ++bank) { cnt = 0; info = &flash_info[bank]; |
