From: Hans de Goede Date: Mon, 19 Sep 2016 16:53:04 +0200 Subject: [U-Boot] [PATCH] A20-OLinuXino-Lime2: Enable USB gadget support In-Reply-To: <1474293812-28644-1-git-send-email-trini@konsulko.com> References: <1474293812-28644-1-git-send-email-trini@konsulko.com> Message-ID: <0cf8f95c-a45c-606d-aa69-754ff40b8332@redhat.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, On 19-09-16 16:03, Tom Rini wrote: > Based on A13-OLinuXino, enable DFU and UMS support. > > Signed-off-by: Tom Rini > --- > With this change I've added DFU to my tests on this board, and assuming a > follow up test with the SD image that kicks the board into FEL works, I'll > then enable the UMS tests on this board (and add DFU to SD, not just DFU to > RAM). > > configs/A20-OLinuXino-Lime2_defconfig | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/configs/A20-OLinuXino-Lime2_defconfig b/configs/A20-OLinuXino-Lime2_defconfig > index 23db07380624..54343de7f351 100644 > --- a/configs/A20-OLinuXino-Lime2_defconfig > +++ b/configs/A20-OLinuXino-Lime2_defconfig > @@ -12,9 +12,17 @@ CONFIG_SYS_EXTRA_OPTIONS="SUNXI_GMAC,RGMII,AHCI,SATAPWR=SUNXI_GPC(3)" > CONFIG_SPL=y > # CONFIG_CMD_IMLS is not set > # CONFIG_CMD_FLASH is not set > +CONFIG_CMD_DFU=y > +CONFIG_CMD_USB_MASS_STORAGE=y Do you need CMD_USB_MASS_STORAGE for your tests ? Enabling CMD_USB_MASS_STORAGE really seems orthogonal to enabling GADGET mode to me, esp. since it is only useful in host mode AFAICT. Chen-Yu did something similar in a patch enabling host mode for a different sunxi board and here is what I replied: " If we want to enable CONFIG_CMD_USB_MASS_STORAGE on sunxi, we really should do so on all boards (feel free to submit a patch for this). e.g. add something like this to board/sunxi/Kconfig: config CMD_USB_MASS_STORAGE default y So that we can still disable it in case there are space constraints, but normally we enable it on all sunxi boards offering a consistent set of available commands. " The same goes for this patch, otherwise this patch is: Reviewed-by: Hans de Goede Ig you want to feel free to apply this directly (given that I've send out a sunxi pull-req recently). Regards, Hans > # CONFIG_CMD_FPGA is not set > CONFIG_RTL8211X_PHY_FORCE_MASTER=y > CONFIG_ETH_DESIGNWARE=y > CONFIG_AXP_ALDO3_VOLT=2800 > CONFIG_AXP_ALDO4_VOLT=2800 > CONFIG_USB_EHCI_HCD=y > +CONFIG_USB_MUSB_GADGET=y > +CONFIG_USB_GADGET=y > +CONFIG_USB_GADGET_DOWNLOAD=y > +CONFIG_G_DNL_MANUFACTURER="Allwinner Technology" > +CONFIG_G_DNL_VENDOR_NUM=0x1f3a > +CONFIG_G_DNL_PRODUCT_NUM=0x1010 >