]> git.sur5r.net Git - u-boot/commitdiff
cgtqmx6eval: Add DFU support
authorOtavio Salvador <otavio@ossystems.com.br>
Thu, 19 Nov 2015 21:02:38 +0000 (19:02 -0200)
committerStefano Babic <sbabic@denx.de>
Wed, 25 Nov 2015 08:49:40 +0000 (09:49 +0100)
Add MMC and SPI DFU support.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
configs/cgtqmx6eval_defconfig [new file with mode: 0644]
include/configs/cgtqmx6eval.h

diff --git a/configs/cgtqmx6eval_defconfig b/configs/cgtqmx6eval_defconfig
new file mode 100644 (file)
index 0000000..02008ea
--- /dev/null
@@ -0,0 +1,12 @@
+CONFIG_ARM=y
+CONFIG_ARCH_MX6=y
+CONFIG_TARGET_CGTQMX6EVAL=y
+CONFIG_SPL=y
+CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,SPL,MX6QDL"
+# CONFIG_CMD_IMLS is not set
+# CONFIG_CMD_FLASH is not set
+CONFIG_SYS_PROMPT="CGT-QMX6-Quad U-Boot > "
+CONFIG_CMD_GPIO=y
+# CONFIG_CMD_SETEXPR is not set
+CONFIG_DM=y
+CONFIG_DM_THERMAL=y
index 79fc0f668c94ad0d89a03d36aca9bb64e865c66a..487c011cc2de09a1f82046198d489a9e75f49a90 100644 (file)
 #define CONFIG_G_DNL_PRODUCT_NUM       0xa4a5
 #define CONFIG_G_DNL_MANUFACTURER      "Congatec"
 
+/* USB Device Firmware Update support */
+#define CONFIG_CMD_DFU
+#define CONFIG_USB_FUNCTION_DFU
+#define CONFIG_DFU_MMC
+#define CONFIG_DFU_SF
+
 #define CONFIG_USB_FUNCTION_FASTBOOT
 #define CONFIG_CMD_FASTBOOT
 #define CONFIG_ANDROID_BOOT_IMAGE
        "boot_fdt=try\0" \
        "ip_dyn=yes\0" \
        "console=" CONFIG_CONSOLE_DEV "\0" \
+       "dfuspi=dfu 0 sf 0:0:10000000:0\0" \
+       "dfu_alt_info_spl=spl raw 0x400\0" \
+       "dfu_alt_info_img=u-boot raw 0x10000\0" \
+       "dfu_alt_info=spl raw 0x400\0" \
        "bootm_size=0x10000000\0" \
        "mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \
        "mmcpart=1\0" \