diff mbox series

[2/2] poplar_defconfig: enable fastboot support

Message ID 20181218095207.11620-3-shawn.guo@linaro.org
State New
Headers show
Series Enable fastboot support for Poplar board | expand

Commit Message

Shawn Guo Dec. 18, 2018, 9:52 a.m. UTC
It enables fastboot support on Poplar board by using DWC2 OTG gadget
driver.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
 configs/poplar_defconfig | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

Comments

Tom Rini Jan. 16, 2019, 2:40 a.m. UTC | #1
On Tue, Dec 18, 2018 at 05:52:07PM +0800, Shawn Guo wrote:

> It enables fastboot support on Poplar board by using DWC2 OTG gadget

> driver.

> 

> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>


Applied to u-boot/master, thanks!

-- 
Tom
diff mbox series

Patch

diff --git a/configs/poplar_defconfig b/configs/poplar_defconfig
index 946e7caf6bea..48e9c6eaac26 100644
--- a/configs/poplar_defconfig
+++ b/configs/poplar_defconfig
@@ -6,6 +6,13 @@  CONFIG_DISTRO_DEFAULTS=y
 CONFIG_NR_DRAM_BANKS=2
 # CONFIG_DISPLAY_CPUINFO is not set
 CONFIG_SYS_PROMPT="poplar# "
+CONFIG_FASTBOOT=y
+CONFIG_USB_FUNCTION_FASTBOOT=y
+CONFIG_CMD_FASTBOOT=y
+CONFIG_FASTBOOT_BUF_ADDR=0x20000000
+CONFIG_FASTBOOT_BUF_SIZE=0x10000000
+CONFIG_FASTBOOT_FLASH=y
+CONFIG_FASTBOOT_FLASH_MMC_DEV=0
 CONFIG_CMD_MMC=y
 CONFIG_CMD_USB=y
 # CONFIG_ISO_PARTITION is not set
@@ -18,6 +25,13 @@  CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_EHCI_GENERIC=y
 CONFIG_USB_STORAGE=y
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DWC2_OTG=y
+CONFIG_USB_GADGET_DWC2_OTG_PHY_BUS_WIDTH_8=y
+CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_USB_GADGET_MANUFACTURER="HiSilicon"
+CONFIG_USB_GADGET_VENDOR_NUM=0x18d1
+CONFIG_USB_GADGET_PRODUCT_NUM=0xd00d
 CONFIG_USB_HOST_ETHER=y
 CONFIG_USB_ETHER_ASIX=y
 CONFIG_FAT_WRITE=y