]> git.sur5r.net Git - u-boot/commitdiff
ARM: at91: ma5d4: Enable DFU and UMS
authorMarek Vasut <marex@denx.de>
Tue, 2 May 2017 18:27:43 +0000 (20:27 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 29 Jun 2017 17:30:49 +0000 (13:30 -0400)
Enable DFU and USB mass storage support for the DENX MA5D4 SoM.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andreas Bießmann <andreas.devel@googlemail.com>
configs/ma5d4evk_defconfig
include/configs/ma5d4evk.h

index eca10d3c854bed9baaa5a418d6c046501bf12991..bb2a88796e45a07a3fd8ba76b90183a7c5a4a86a 100644 (file)
@@ -43,3 +43,11 @@ CONFIG_USB_GADGET_ATMEL_USBA=y
 CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
 # CONFIG_EFI_LOADER is not set
+CONFIG_CMD_DFU=y
+CONFIG_CMD_USB_MASS_STORAGE=y
+CONFIG_DFU_MMC=y
+CONFIG_DFU_SF=y
+CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_G_DNL_MANUFACTURER="AriesEmbedded"
+CONFIG_G_DNL_VENDOR_NUM=0x0525
+CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
index f55d81f5f26590c19c5f2a268da81007a3fce535..4bcbf2cb13ae9053547316aa1586c11f119eae23 100644 (file)
 #define CONFIG_USB_ETHER
 #define CONFIG_USB_ETH_RNDIS
 #define CONFIG_USBNET_MANUFACTURER      "AriesEmbedded"
+#define CONFIG_USB_FUNCTION_MASS_STORAGE
+#define CONFIG_SYS_DFU_DATA_BUF_SIZE   (1 * 1024 * 1024)
+#define DFU_DEFAULT_POLL_TIMEOUT       300
 #endif
 
 /*
        "bootpart=1:1\0"                                                \
        "rootdev=/dev/mmcblk1p2\0"                                      \
        "netdev=eth0\0"                                                 \
+       "dfu_alt_info=mmc raw 0 3867148288\0"                           \
        "kernel_addr_r=0x22000000\0"                                    \
        "update_spi_firmware_spl_addr=0x21000000\0"                     \
        "update_spi_firmware_spl_filename=boot.bin\0"                   \