Skip to content
Snippets Groups Projects
Commit cccea4dc authored by Jonas Höppner's avatar Jonas Höppner
Browse files

[ENV][D18] Configure env boot commands to use the eeprom based seco_device_config

This commit enables the functionality from the last commits for the D18.
This is done by changing the MACRO for the fdt_overlay_load2ram command
to a new implementation.
As it also takes into account the settings from seco_config and needs
settings in the devicetree to use the eeprom settings, it will change
the uboot messages also for other D18 platforms but not change the boot
behavior.

[ENV][SECO] Adapt env cmd
parent 3052c80e
No related branches found
No related tags found
No related merge requests found
......@@ -245,6 +245,31 @@
#define ENV_BOOT_TYPE booti
#define SECO_EEPROM_I2C_BUS 0x04
#define SECO_EEPROM_I2C_ADDR 0x50
#include "seco_mx8_env.h"
#ifdef CONFIG_OF_LIBFDT_OVERLAY
#undef MACRO_ENV_FDT_LOAD_OVERLAY_BASE
/* Here we overwrite the the fdt_overlay_load2ram command, to take the
seco_device_config (from eeprom) into account.
As this is currently only used for D18-MV this is implemented in the D18
header for now.
The fdt_overlay_load2ram is called in the default boot_cmd and also in the
seco_boot.scr used to boot clea-os-things.
*/
#define MACRO_ENV_FDT_LOAD_OVERLAY_BASE \
fdt addr ${fdt_loadaddr}; fdt resize ${fdt_resize}; \
if test -n "${fdt_overlay_carrier_file}"; then run fdt_overlay_carrier_cmd; fi; \
seco_config fdtoverlay ; \
seco_eeprom_manager env SECO_EEPROM_I2C_BUS SECO_EEPROM_I2C_ADDR; \
run fdt_overlay_apply_all; \
if test -n "${fdt_overlay_per_cmd}"; then run fdt_overlay_per_cmd; fi; \
#endif
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment