aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLukasz Majewski2018-05-11 16:51:02 +0200
committerStefano Babic2018-06-18 15:42:38 +0200
commit2f4372a101c235c6cf2b337df4c989e540b1b3e4 (patch)
tree94ed3741539be1050dfad81da6dc890c6841672c /include
parent86d759ea3c017a9c4549066a7b73d5e644f3d538 (diff)
display5: config: Provide command to flash the whole SPI-NOR memory
It may be necessary to update the content of the whole SPI-NOR memory at once with using a single command (tftp_sf_img). Signed-off-by: Lukasz Majewski <lukma@denx.de>
Diffstat (limited to 'include')
-rw-r--r--include/configs/display5.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/configs/display5.h b/include/configs/display5.h
index f4aa6d5315f..3cb6365367e 100644
--- a/include/configs/display5.h
+++ b/include/configs/display5.h
@@ -253,6 +253,16 @@
"sf write ${loadaddr} 0x400 ${filesize};" \
"fi\0" \
+#define TFTP_UPDATE_SPINOR \
+ "spinorfile=core-image-lwn-display5.spinor\0" \
+ "spinorsize=0x2000000\0" \
+ "tftp_sf_img=" \
+ "if tftp ${loadaddr} ${spinorfile}; then " \
+ "sf probe;" \
+ "sf erase 0x0 ${spinorsize};" \
+ "sf write ${loadaddr} 0x0 ${filesize};" \
+ "fi\0" \
+
#define CONFIG_EXTRA_ENV_SETTINGS \
PARTS_DEFAULT \
"display=tianma-tm070-800x480\0" \
@@ -353,6 +363,7 @@
"BOOT_FROM=ACTIVE\0" \
"BOOT_FROM_RECOVERY=Linux\0" \
TFTP_UPDATE_BOOTLOADER \
+ TFTP_UPDATE_SPINOR \
"kernel_part_active=1\0" \
"kernel_part_backup=3\0" \
__TFTP_UPDATE_KERNEL \