diff options
author | Andrejs Cainikovs | 2023-01-16 20:05:14 +0100 |
---|---|---|
committer | Stefano Babic | 2023-01-30 21:09:42 +0100 |
commit | baa7550c14156f9dda65e0c3267f35a0dfc3cf10 (patch) | |
tree | d5377faa46232a5853df0be952cb6d231e787d59 | |
parent | 242abc869387ca250149e225e3360277e7ac7836 (diff) |
apalis-imx8: add M4 boot environment helpers
Add M4 boot environment functions for reference.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
-rw-r--r-- | include/configs/apalis-imx8.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/configs/apalis-imx8.h b/include/configs/apalis-imx8.h index 9eedf36b41e..845705c86db 100644 --- a/include/configs/apalis-imx8.h +++ b/include/configs/apalis-imx8.h @@ -19,6 +19,15 @@ "ramdisk_addr_r=0x9d500000\0" \ "scriptaddr=0x9d480000\0" +/* Boot M4 */ +#define M4_BOOT_ENV \ + "m4_0_image=m4_0.bin\0" \ + "m4_1_image=m4_1.bin\0" \ + "loadm4image_0=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${m4_0_image}\0" \ + "loadm4image_1=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${m4_1_image}\0" \ + "m4boot_0=run loadm4image_0; dcache flush; bootaux ${loadaddr} 0\0" \ + "m4boot_1=run loadm4image_1; dcache flush; bootaux ${loadaddr} 1\0" \ + /* Enable Distro Boot */ #define BOOT_TARGET_DEVICES(func) \ func(MMC, mmc, 1) \ @@ -30,6 +39,7 @@ /* Initial environment variables */ #define CFG_EXTRA_ENV_SETTINGS \ BOOTENV \ + M4_BOOT_ENV \ MEM_LAYOUT_ENV_SETTINGS \ "boot_script_dhcp=boot.scr\0" \ "console=ttyLP1\0" \ |