mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-21 15:12:04 +00:00
imx: kontron-sl-mx8mm: Prepare for other i.MX8MM SoM types
This sets an env variable 'som_type' from the board code. It can later be used by environment scripts, e. g. to select the proper devicetree for the board. Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de> Reviewed-by: Fabio Estevam <festevam@denx.de>
This commit is contained in:
parent
3a683aefdf
commit
3b846df8ab
2 changed files with 7 additions and 0 deletions
|
@ -121,6 +121,12 @@ int board_init(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int board_late_init(void)
|
||||||
|
{
|
||||||
|
env_set("som_type", "sl");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
enum env_location env_get_location(enum env_operation op, int prio)
|
enum env_location env_get_location(enum env_operation op, int prio)
|
||||||
{
|
{
|
||||||
enum boot_device boot_dev = get_boot_device();
|
enum boot_device boot_dev = get_boot_device();
|
||||||
|
|
|
@ -31,6 +31,7 @@ CONFIG_SPL_LOAD_FIT=y
|
||||||
# CONFIG_USE_SPL_FIT_GENERATOR is not set
|
# CONFIG_USE_SPL_FIT_GENERATOR is not set
|
||||||
CONFIG_OF_BOARD_SETUP=y
|
CONFIG_OF_BOARD_SETUP=y
|
||||||
CONFIG_BOARD_TYPES=y
|
CONFIG_BOARD_TYPES=y
|
||||||
|
CONFIG_BOARD_LATE_INIT=y
|
||||||
CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
|
CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
|
||||||
CONFIG_SPL_BSS_START_ADDR=0x910000
|
CONFIG_SPL_BSS_START_ADDR=0x910000
|
||||||
CONFIG_SPL_BSS_MAX_SIZE=0x2000
|
CONFIG_SPL_BSS_MAX_SIZE=0x2000
|
||||||
|
|
Loading…
Reference in a new issue