summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFabio Berton <[email protected]>2017-11-16 09:59:44 -0200
committerStefano Babic <[email protected]>2017-11-20 09:54:09 +0100
commit9cc71cfa1117ea0f0c6d6df3f64bbd978461b79e (patch)
treefb5efb3f6017e9adf41bd89ee6e1ecb45179b10a /include
parentb979e35230042bfeadd5f4eddf66232f29e4bff4 (diff)
pico-imx6ul: Move dfu_alt_info to CONFIG_DFU_ENV_SETTINGS variable
Create CONFIG_DFU_ENV_SETTINGS to set dfu environment settings to improve human readable code. Signed-off-by: Fabio Berton <[email protected]> Signed-off-by: Otavio Salvador <[email protected]> Reviewed-by: Lukasz Majewski <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/configs/pico-imx6ul.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/configs/pico-imx6ul.h b/include/configs/pico-imx6ul.h
index 75658fd4896..d4b29e39503 100644
--- a/include/configs/pico-imx6ul.h
+++ b/include/configs/pico-imx6ul.h
@@ -47,6 +47,9 @@
#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_16M
#define DFU_DEFAULT_POLL_TIMEOUT 300
+#define CONFIG_DFU_ENV_SETTINGS \
+ "dfu_alt_info=boot raw 0x2 0x400 mmcpart 1\0" \
+
#define CONFIG_SYS_MMC_IMG_LOAD_PART 1
#define CONFIG_EXTRA_ENV_SETTINGS \
@@ -60,7 +63,7 @@
"mmcpart=" __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART) "\0" \
"mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \
"mmcautodetect=yes\0" \
- "dfu_alt_info=boot raw 0x2 0x400 mmcpart 1\0" \
+ CONFIG_DFU_ENV_SETTINGS \
"mmcargs=setenv bootargs console=${console},${baudrate} " \
"root=${mmcroot}\0" \
"loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \