summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduard Strehlau <eduard@lionizers.com>2023-04-26 13:04:48 -0300
committerStefano Babic <sbabic@denx.de>2023-05-02 10:57:32 +0200
commit7f932c6b84b61f3d23c8071370d5d857577cde7d (patch)
tree34d6c47c9c99c2f41869105105d905fae81b7507
parentfeb710b3816c8d2dd7b3215bf0253bff9092eee0 (diff)
downloadu-boot-7f932c6b84b61f3d23c8071370d5d857577cde7d.tar.gz
u-boot-7f932c6b84b61f3d23c8071370d5d857577cde7d.tar.bz2
u-boot-7f932c6b84b61f3d23c8071370d5d857577cde7d.zip
smegw01: Enable setting additional boot params
Introduce EXTRA_BOOTPARAMS to allow passing additional parameters to kernel command line. This is useful for debugging purposes. Signed-off-by: Eduard Strehlau <eduard@lionizers.com> Signed-off-by: Fabio Estevam <festevam@denx.de>
-rw-r--r--include/configs/smegw01.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/configs/smegw01.h b/include/configs/smegw01.h
index 11031744be..a356f095a6 100644
--- a/include/configs/smegw01.h
+++ b/include/configs/smegw01.h
@@ -17,6 +17,11 @@
/* MMC Config*/
#define CFG_SYS_FSL_ESDHC_ADDR 0
+/* default to no extra bootparams, we need an empty define for stringification*/
+#ifndef EXTRA_BOOTPARAMS
+#define EXTRA_BOOTPARAMS
+#endif
+
#define CFG_EXTRA_ENV_SETTINGS \
"image=zImage\0" \
"console=ttymxc0\0" \
@@ -26,7 +31,8 @@
"mmcdev=0\0" \
"mmcpart=1\0" \
"mmcargs=setenv bootargs console=${console},${baudrate} " \
- "root=/dev/mmcblk0p${mmcpart} rootwait rw\0" \
+ "root=/dev/mmcblk0p${mmcpart} rootwait rw " \
+ __stringify(EXTRA_BOOTPARAMS) "\0" \
"loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} boot/${image}\0" \
"loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} boot/${fdtfile}\0" \
"mmcboot=echo Booting from mmc ...; " \