[U-Boot] [PATCH v1 5/5] colibri_t20: enable dfu also for nand

Marcel Ziswiler
2016-09-09T16:10:41Z

Enable USB gadget DFU functionality for NAND as well.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>

---

include/configs/colibri_t20.h | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/include/configs/colibri_t20.h b/include/configs/colibri_t20.h
index c15f0cb..33e1ef5 100644
--- a/include/configs/colibri_t20.h
+++ b/include/configs/colibri_t20.h
@@ -31,6 +31,9 @@
#define CONFIG_GENERIC_MMC
#define CONFIG_TEGRA_MMC

+/* USB DFU */
+#define CONFIG_DFU_NAND
+
/* USB host support */
#define CONFIG_USB_EHCI
#define CONFIG_USB_EHCI_TEGRA
@@ -86,7 +89,10 @@
/* Miscellaneous commands */
#define CONFIG_FAT_WRITE

+#define DFU_ALT_NAND_INFO "u-boot part 0,1;ubi part 0,4"
+
#define BOARD_EXTRA_ENV_SETTINGS \
+ "dfu_alt_info=" DFU_ALT_NAND_INFO "\0" \
"mtdparts=" MTDPARTS_DEFAULT "\0"

/* Increase console I/O buffer size */
--
2.5.5