diff options
author | Frieder Schrempf <frieder.schrempf@kontron.de> | 2022-08-24 16:59:14 +0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2022-10-20 18:35:51 +0300 |
commit | 3b846df8ab46d1c40514747b9de6aef97460467d (patch) | |
tree | c4258f870fe27b1b9d725d3bab5feb71db1cb83c /board/kontron/sl-mx8mm/sl-mx8mm.c | |
parent | 3a683aefdf523b9f32de2fe74ce82a9ce2476a2a (diff) | |
download | u-boot-3b846df8ab46d1c40514747b9de6aef97460467d.tar.xz |
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>
Diffstat (limited to 'board/kontron/sl-mx8mm/sl-mx8mm.c')
-rw-r--r-- | board/kontron/sl-mx8mm/sl-mx8mm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/kontron/sl-mx8mm/sl-mx8mm.c b/board/kontron/sl-mx8mm/sl-mx8mm.c index 416c4cbb40..6e73edeb23 100644 --- a/board/kontron/sl-mx8mm/sl-mx8mm.c +++ b/board/kontron/sl-mx8mm/sl-mx8mm.c @@ -121,6 +121,12 @@ int board_init(void) 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 boot_device boot_dev = get_boot_device(); |