summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorVignesh R <vigneshr@ti.com>2015-10-22 11:30:53 +0530
committerTom Rini <trini@konsulko.com>2015-11-12 18:13:21 -0500
commit42d1b818a866840a5009309b4901b5ce28572467 (patch)
treefcaa4267523aeb75bc7b84bb9ec8f06563d16f77 /include/configs
parent8d7a2b83f9ba0467c3b4888ec2204d6fd13bbb65 (diff)
downloadu-boot-imx-42d1b818a866840a5009309b4901b5ce28572467.zip
u-boot-imx-42d1b818a866840a5009309b4901b5ce28572467.tar.gz
u-boot-imx-42d1b818a866840a5009309b4901b5ce28572467.tar.bz2
am43xx_evm: Add DFU support for qspi flash
This adds support to update firmware on qspi flash present on am437x-sk-evm and am43xx-epos-evm via DFU. On device: => setenv dfu_alt_info ${dfu_alt_info_qspi} => dfu 0 sf 0:0 On host: $ sudo dfu-util -l $ sudo dfu-util -D u-boot.bin -a u-boot.bin Signed-off-by: Vignesh R <vigneshr@ti.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/am43xx_evm.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h
index d93e3e7..b02abd3 100644
--- a/include/configs/am43xx_evm.h
+++ b/include/configs/am43xx_evm.h
@@ -177,11 +177,22 @@
"fdt ram 0x80f80000 0x80000;" \
"ramdisk ram 0x81000000 0x4000000\0"
+#define CONFIG_DFU_SF
+#define DFU_ALT_INFO_QSPI \
+ "dfu_alt_info_qspi=" \
+ "u-boot.bin raw 0x0 0x080000;" \
+ "u-boot.backup raw 0x080000 0x080000;" \
+ "u-boot-spl-os raw 0x100000 0x010000;" \
+ "u-boot-env raw 0x110000 0x010000;" \
+ "u-boot-env.backup raw 0x120000 0x010000;" \
+ "kernel raw 0x130000 0x800000\0"
+
#define DFUARGS \
"dfu_bufsiz=0x10000\0" \
DFU_ALT_INFO_MMC \
DFU_ALT_INFO_EMMC \
- DFU_ALT_INFO_RAM
+ DFU_ALT_INFO_RAM \
+ DFU_ALT_INFO_QSPI
#else
#define DFUARGS
#endif