mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
Environment callbacks can already be configured from Kconfig with CONFIG_ENV_CALLBACK_LIST_STATIC, but static environment flags still require board headers to define CFG_ENV_FLAGS_LIST_STATIC. Add CONFIG_ENV_FLAGS_LIST_STATIC and use it as the only board-provided static environment flags list. Convert the remaining default-config users from CFG_ENV_FLAGS_LIST_STATIC to defconfig settings and drop the legacy header macro from ENV_FLAGS_LIST_STATIC. Move the environment flags format documentation out of README and into the developer environment documentation. Include the format in the Kconfig help as well. This lets boards configure writeable-list policy and type validation from defconfig without adding a config header solely for env flags. This preserves the behavior of default configs. Header-only cases that were inactive in upstream defconfigs are not converted into defconfig entries: iot2050 can add its list when enabling ENV_WRITEABLE_LIST, and smegw01 can add mmcdev:dw support if the unlocked SYS_BOOT_LOCKED=n configuration is needed. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Alexander Sverdlin <alexander.sverdlin@siemens.com> Reviewed-by: Walter Schweizer <walter.schweizer@siemens.com>
58 lines
1.4 KiB
C
58 lines
1.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright 2017-2018 NXP
|
|
* Copyright 2019 Siemens AG
|
|
*/
|
|
|
|
#ifndef __IMX8X_CAPRICORN_H
|
|
#define __IMX8X_CAPRICORN_H
|
|
|
|
#include <linux/sizes.h>
|
|
#include <asm/arch/imx-regs.h>
|
|
|
|
/* SPL config */
|
|
#ifdef CONFIG_XPL_BUILD
|
|
#define CFG_MALLOC_F_ADDR 0x00120000
|
|
|
|
#endif /* CONFIG_XPL_BUILD */
|
|
|
|
/* ENET1 connects to base board and MUX with ESAI */
|
|
#define CFG_FEC_ENET_DEV 1
|
|
#define CFG_FEC_MXC_PHYADDR 0x0
|
|
|
|
/* EEPROM */
|
|
#define EEPROM_I2C_BUS 0 /* I2C0 */
|
|
#define EEPROM_I2C_ADDR 0x50
|
|
/* PCA9552 */
|
|
#define PCA9552_1_I2C_BUS 1 /* I2C1 */
|
|
#define PCA9552_1_I2C_ADDR 0x60
|
|
|
|
/* AHAB */
|
|
#ifdef CONFIG_AHAB_BOOT
|
|
#define AHAB_ENV "sec_boot=yes\0"
|
|
#else
|
|
#define AHAB_ENV "sec_boot=no\0"
|
|
#endif
|
|
|
|
/* Initial environment variables */
|
|
#define CFG_EXTRA_ENV_SETTINGS \
|
|
AHAB_ENV
|
|
|
|
/* Default location for tftp and bootm */
|
|
|
|
/* On CCP board, USDHC1 is for eMMC */
|
|
|
|
#define CFG_SYS_SDRAM_BASE 0x80000000
|
|
#define PHYS_SDRAM_1 0x80000000
|
|
#define PHYS_SDRAM_2 0x880000000
|
|
/* Set default values to the smallest DDR we have in capricorn modules
|
|
* Use it in case the system controller would return an error
|
|
*/
|
|
#define PHYS_SDRAM_1_SIZE 0x40000000 /* 1 GB */
|
|
#define PHYS_SDRAM_2_SIZE 0x00000000 /* 0 GB */
|
|
|
|
#define BOOTAUX_RESERVED_MEM_BASE 0x88000000
|
|
#define BOOTAUX_RESERVED_MEM_SIZE SZ_128M /* Reserve from second 128MB */
|
|
|
|
#endif /* __IMX8X_CAPRICORN_H */
|