Xilinx changes for v2021.04-v2

env:
- Unlock redundant variable configuration for all

xilinx:
- Enable seps525 by default
- Export bootseq via variable
- Update board_fdt_blob_setup()

mmc:
- Xenon macro removal
This commit is contained in:
Tom Rini
2021-01-20 10:49:05 -05:00
5 changed files with 35 additions and 30 deletions

View File

@@ -324,25 +324,30 @@ void *board_fdt_blob_setup(void)
{ {
void *fdt_blob; void *fdt_blob;
#if !defined(CONFIG_VERSAL_NO_DDR) && !defined(CONFIG_ZYNQMP_NO_DDR) if (!IS_ENABLED(CONFIG_SPL_BUILD) &&
fdt_blob = (void *)CONFIG_XILINX_OF_BOARD_DTB_ADDR; !IS_ENABLED(CONFIG_VERSAL_NO_DDR) &&
!IS_ENABLED(CONFIG_VERSAL_NO_DDR)) {
fdt_blob = (void *)CONFIG_XILINX_OF_BOARD_DTB_ADDR;
if (fdt_magic(fdt_blob) == FDT_MAGIC) if (fdt_magic(fdt_blob) == FDT_MAGIC)
return fdt_blob; return fdt_blob;
debug("DTB is not passed via %p\n", fdt_blob); debug("DTB is not passed via %p\n", fdt_blob);
#endif }
#ifdef CONFIG_SPL_BUILD if (IS_ENABLED(CONFIG_SPL_BUILD)) {
/* FDT is at end of BSS unless it is in a different memory region */ /*
if (IS_ENABLED(CONFIG_SPL_SEPARATE_BSS)) * FDT is at end of BSS unless it is in a different memory
fdt_blob = (ulong *)&_image_binary_end; * region
else */
fdt_blob = (ulong *)&__bss_end; if (IS_ENABLED(CONFIG_SPL_SEPARATE_BSS))
#else fdt_blob = (ulong *)&_image_binary_end;
/* FDT is at end of image */ else
fdt_blob = (ulong *)&_end; fdt_blob = (ulong *)&__bss_end;
#endif } else {
/* FDT is at end of image */
fdt_blob = (ulong *)&_end;
}
if (fdt_magic(fdt_blob) == FDT_MAGIC) if (fdt_magic(fdt_blob) == FDT_MAGIC)
return fdt_blob; return fdt_blob;

View File

@@ -648,6 +648,7 @@ int board_late_init(void)
if (bootseq >= 0) { if (bootseq >= 0) {
bootseq_len = snprintf(NULL, 0, "%i", bootseq); bootseq_len = snprintf(NULL, 0, "%i", bootseq);
debug("Bootseq len: %x\n", bootseq_len); debug("Bootseq len: %x\n", bootseq_len);
env_set_hex("bootseq", bootseq);
} }
/* /*

View File

@@ -54,6 +54,7 @@ CONFIG_CMD_SPI=y
CONFIG_CMD_USB=y CONFIG_CMD_USB=y
CONFIG_CMD_USB_MASS_STORAGE=y CONFIG_CMD_USB_MASS_STORAGE=y
CONFIG_CMD_TFTPPUT=y CONFIG_CMD_TFTPPUT=y
CONFIG_CMD_BMP=y
CONFIG_CMD_CACHE=y CONFIG_CMD_CACHE=y
CONFIG_CMD_TIME=y CONFIG_CMD_TIME=y
CONFIG_CMD_TIMER=y CONFIG_CMD_TIMER=y
@@ -155,6 +156,15 @@ CONFIG_USB_ETHER=y
CONFIG_USB_ETH_CDC=y CONFIG_USB_ETH_CDC=y
CONFIG_USB_HOST_ETHER=y CONFIG_USB_HOST_ETHER=y
CONFIG_USB_ETHER_ASIX=y CONFIG_USB_ETHER_ASIX=y
CONFIG_DM_VIDEO=y
CONFIG_VIDEO_COPY=y
CONFIG_DISPLAY=y
CONFIG_VIDEO_SEPS525=y
CONFIG_LCD=y
CONFIG_SPLASH_SCREEN=y
CONFIG_BMP_16BPP=y
CONFIG_BMP_24BPP=y
CONFIG_BMP_32BPP=y
CONFIG_WDT=y CONFIG_WDT=y
CONFIG_WDT_CDNS=y CONFIG_WDT_CDNS=y
CONFIG_PANIC_HANG=y CONFIG_PANIC_HANG=y

View File

@@ -104,18 +104,6 @@ DECLARE_GLOBAL_DATA_PTR;
/* Hyperion only have one slot 0 */ /* Hyperion only have one slot 0 */
#define XENON_MMC_SLOT_ID_HYPERION 0 #define XENON_MMC_SLOT_ID_HYPERION 0
#define MMC_TIMING_LEGACY 0
#define MMC_TIMING_MMC_HS 1
#define MMC_TIMING_SD_HS 2
#define MMC_TIMING_UHS_SDR12 3
#define MMC_TIMING_UHS_SDR25 4
#define MMC_TIMING_UHS_SDR50 5
#define MMC_TIMING_UHS_SDR104 6
#define MMC_TIMING_UHS_DDR50 7
#define MMC_TIMING_MMC_DDR52 8
#define MMC_TIMING_MMC_HS200 9
#define MMC_TIMING_MMC_HS400 10
#define XENON_MMC_MAX_CLK 400000000 #define XENON_MMC_MAX_CLK 400000000
#define XENON_MMC_3V3_UV 3300000 #define XENON_MMC_3V3_UV 3300000
#define XENON_MMC_1V8_UV 1800000 #define XENON_MMC_1V8_UV 1800000

5
env/Kconfig vendored
View File

@@ -411,13 +411,14 @@ config ENV_IS_IN_UBI
config SYS_REDUNDAND_ENVIRONMENT config SYS_REDUNDAND_ENVIRONMENT
bool "Enable redundant environment support" bool "Enable redundant environment support"
depends on ENV_IS_IN_EEPROM || ENV_IS_IN_FLASH || ENV_IS_IN_MMC || \
ENV_IS_IN_NAND || ENV_IS_IN_SPI_FLASH || ENV_IS_IN_UBI
help help
Normally, the environemt is stored in a single location. By Normally, the environemt is stored in a single location. By
selecting this option, you can then define where to hold a redundant selecting this option, you can then define where to hold a redundant
copy of the environment data, so that there is a valid backup copy in copy of the environment data, so that there is a valid backup copy in
case there is a power failure during a "saveenv" operation. case there is a power failure during a "saveenv" operation.
Also this config changes the binary environment structure handling
which is used by env import/export commands which are independent of
storing variables to redundant location on a non volatile device.
config ENV_FAT_INTERFACE config ENV_FAT_INTERFACE
string "Name of the block device for the environment" string "Name of the block device for the environment"