diff mbox

[U-Boot,v3,2/2] ARM: am57xx_evm: enable DFU support

Message ID 20161125085555.16186-3-nsekhar@ti.com
State Accepted
Commit 7e0b87c91ab252515e419b7718606316b0319de8
Delegated to: Tom Rini
Headers show

Commit Message

Sekhar Nori Nov. 25, 2016, 8:55 a.m. UTC
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>
---
 configs/am57xx_evm_defconfig    | 3 +++
 configs/am57xx_hs_evm_defconfig | 3 +++
 include/configs/am57xx_evm.h    | 8 ++++++++
 3 files changed, 14 insertions(+)

Comments

Tom Rini Nov. 26, 2016, 4:17 p.m. UTC | #1
On Fri, Nov 25, 2016 at 02:25:55PM +0530, Sekhar Nori wrote:

> 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>
Tom Rini Dec. 3, 2016, 11:47 p.m. UTC | #2
On Fri, Nov 25, 2016 at 02:25:55PM +0530, Sekhar Nori wrote:

> 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>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/configs/am57xx_evm_defconfig b/configs/am57xx_evm_defconfig
index 12d9a1425f88..a7f0fb60301a 100644
--- a/configs/am57xx_evm_defconfig
+++ b/configs/am57xx_evm_defconfig
@@ -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
diff --git a/configs/am57xx_hs_evm_defconfig b/configs/am57xx_hs_evm_defconfig
index c508b8e4dabc..2b1d6958b64f 100644
--- a/configs/am57xx_hs_evm_defconfig
+++ b/configs/am57xx_hs_evm_defconfig
@@ -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
diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h
index d009900c3976..c457fd4b5406 100644
--- a/include/configs/am57xx_evm.h
+++ b/include/configs/am57xx_evm.h
@@ -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
@@ -59,6 +61,12 @@ 
 	"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. */