]> git.sur5r.net Git - u-boot/commitdiff
ARM: am57xx_evm: enable DFU support
authorSekhar Nori <nsekhar@ti.com>
Fri, 25 Nov 2016 08:55:55 +0000 (14:25 +0530)
committerTom Rini <trini@konsulko.com>
Sat, 3 Dec 2016 02:32:37 +0000 (21:32 -0500)
AM57xx GP EVM has USB2 port of the SoC exposed as
USB client port.

It is useful to be able to use this port for USB
DFU downloads.

Enable USB DFU support. Tested on AM57x GP EVM Rev
A3 using DFU to download to connected SD card.

configs for HS version of the AM57x EVM are
included in the patch but not really tested.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
configs/am57xx_evm_defconfig
configs/am57xx_hs_evm_defconfig
include/configs/am57xx_evm.h

index 12d9a1425f88848c44cfa9f41897e392c6bc2379..a7f0fb60301a4576a1713cd7b191ad22862e4550 100644 (file)
@@ -35,6 +35,9 @@ CONFIG_CMD_SF=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_USB=y
+CONFIG_CMD_DFU=y
+CONFIG_DFU_RAM=y
+CONFIG_DFU_MMC=y
 CONFIG_CMD_GPIO=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_DHCP=y
index c508b8e4dabc959f965076852489c3fa9e79ddcc..2b1d6958b64f9193b6aeb9489c4230c769747866 100644 (file)
@@ -36,6 +36,9 @@ CONFIG_CMD_SF=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_USB=y
+CONFIG_CMD_DFU=y
+CONFIG_DFU_RAM=y
+CONFIG_DFU_MMC=y
 CONFIG_CMD_GPIO=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_DHCP=y
index d009900c3976a9c70a9d99d805508de8fa0839d4..c457fd4b5406cab48687ad67b921fa256062a7c0 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef __CONFIG_AM57XX_EVM_H
 #define __CONFIG_AM57XX_EVM_H
 
+#include <environment/ti/dfu.h>
+
 #define CONFIG_AM57XX
 
 #ifdef CONFIG_SPL_BUILD
        "name=ipu2,size=1M,uuid=${uuid_gpt_ipu2};" \
        "name=userdata,size=-,uuid=${uuid_gpt_userdata}"
 
+#define DFUARGS \
+       "dfu_bufsiz=0x10000\0" \
+       DFU_ALT_INFO_MMC \
+       DFU_ALT_INFO_EMMC \
+       DFU_ALT_INFO_RAM \
+
 #include <configs/ti_omap5_common.h>
 
 /* Enhance our eMMC support / experience. */