summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Bisson <gary.bisson@boundarydevices.com>2018-11-05 19:33:17 +0300
committerGary Bisson <gary.bisson@boundarydevices.com>2018-11-05 19:44:15 +0300
commit6d47a20b239ff636fe08bc4f9c203067c2d2025a (patch)
treecb3b2d3c8caf988062598c1f2d7d3b51e8d33619
parentb661d854a0643db52b0e75c37cb5bb11afd0ccba (diff)
downloadu-boot-imx6-boundary-imx_v2017.03_4.9.51_imx8m_ga.tar.xz
nitrogen8m: add convenient m4 variables to load and start a fwboundary-imx_v2017.03_4.9.51_imx8m_ga
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
-rw-r--r--include/configs/nitrogen8m.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/configs/nitrogen8m.h b/include/configs/nitrogen8m.h
index 06b196a366..93ee652f08 100644
--- a/include/configs/nitrogen8m.h
+++ b/include/configs/nitrogen8m.h
@@ -245,6 +245,10 @@
#include <config_distro_bootcmd.h>
+/* M4 specific */
+#define SYS_AUXCORE_BOOTDATA_DDR 0x80000000
+#define SYS_AUXCORE_BOOTDATA_TCM 0x007E0000
+
#define CONFIG_EXTRA_ENV_SETTINGS \
"console=" BD_CONSOLE "\0" \
"env_dev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \
@@ -254,6 +258,10 @@
"fdt_high=0xffffffffffffffff\0" \
"imx_cpu=8MQ\0" \
"initrd_high=0xffffffffffffffff\0" \
+ "m4boot=load ${devtype} ${devnum}:1 ${m4loadaddr} ${m4image}; " \
+ "dcache flush; bootaux ${m4loadaddr}\0" \
+ "m4image=m4_fw.bin\0" \
+ "m4loadaddr="__stringify(SYS_AUXCORE_BOOTDATA_TCM)"\0" \
"netargs=setenv bootargs console=${console},115200 root=/dev/nfs rw " \
"ip=dhcp nfsroot=${tftpserverip}:${nfsroot},v3,tcp\0" \
"netboot=run netargs; " \