From: Michael Walle <michael@walle.cc>
To: u-boot@lists.denx.de
Cc: Marek Vasut <marex@denx.de>, Simon Glass <sjg@chromium.org>,
Ran Wang <ran.wang_1@nxp.com>, Michael Walle <michael@walle.cc>
Subject: [PATCH v2 9/9] board: sl28: enable USB periheral support and gadgets
Date: Fri, 15 Oct 2021 15:15:25 +0200 [thread overview]
Message-ID: <20211015131525.721323-10-michael@walle.cc> (raw)
In-Reply-To: <20211015131525.721323-1-michael@walle.cc>
Enable support to update the board via the DFU protocol and make it
possible to export the block devices via USB mass storage protocol.
This will not work out of the box, yet. You have to change the dr_mode
of the usb0 controller to peripheral manually to make it work. True, OTG
support will hopefully coming soon.
Signed-off-by: Michael Walle <michael@walle.cc>
---
configs/kontron_sl28_defconfig | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/configs/kontron_sl28_defconfig b/configs/kontron_sl28_defconfig
index 5b3ba58d39..0da31a4e54 100644
--- a/configs/kontron_sl28_defconfig
+++ b/configs/kontron_sl28_defconfig
@@ -39,12 +39,14 @@ CONFIG_SYS_SPI_U_BOOT_OFFS=0x230000
CONFIG_CMD_ASKENV=y
CONFIG_CMD_GREPENV=y
CONFIG_CMD_NVEDIT_EFI=y
+CONFIG_CMD_DFU=y
CONFIG_CMD_DM=y
CONFIG_CMD_GPT=y
CONFIG_CMD_I2C=y
CONFIG_CMD_MMC=y
CONFIG_CMD_PCI=y
CONFIG_CMD_USB=y
+CONFIG_CMD_USB_MASS_STORAGE=y
CONFIG_CMD_CACHE=y
CONFIG_CMD_EFIDEBUG=y
CONFIG_CMD_RNG=y
@@ -90,9 +92,12 @@ CONFIG_FSL_DSPI=y
CONFIG_NXP_FSPI=y
CONFIG_USB=y
# CONFIG_SPL_DM_USB is not set
+CONFIG_DM_USB_GADGET=y
CONFIG_USB_XHCI_HCD=y
# CONFIG_USB_XHCI_FSL is not set
CONFIG_USB_DWC3=y
CONFIG_USB_DWC3_LAYERSCAPE=y
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_OF_LIBFDT_ASSUME_MASK=0x0
CONFIG_OF_LIBFDT_OVERLAY=y
--
2.30.2
next prev parent reply other threads:[~2021-10-15 13:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-15 13:15 [PATCH v2 0/9] usb: dwc3: add Layerscape SoC support Michael Walle
2021-10-15 13:15 ` [PATCH v2 1/9] dm: core: add ofnode_for_each_compatible_node() Michael Walle
2021-10-15 13:15 ` [PATCH v2 2/9] test: dm: add test for ofnode_for_each_compatible_node() Michael Walle
2021-10-24 19:53 ` Simon Glass
2021-10-15 13:15 ` [PATCH v2 3/9] armv8: fsl-layerscape: rework the dwc3 snooping enable code Michael Walle
2021-10-15 13:15 ` [PATCH v2 4/9] usb: common: silence dubious errors Michael Walle
2021-10-24 19:53 ` Simon Glass
2021-10-15 13:15 ` [PATCH v2 5/9] usb: dwc3: Add frame length adjustment quirk Michael Walle
2021-10-15 13:15 ` [PATCH v2 6/9] usb: dwc3: Enable undefined length INCR burst type Michael Walle
2021-10-15 13:15 ` [PATCH v2 7/9] usb: dwc3: add layerscape support Michael Walle
2021-10-15 13:15 ` [PATCH v2 8/9] board: sl28: switch to dwc3 driver Michael Walle
2021-10-15 13:15 ` Michael Walle [this message]
2021-10-21 7:21 ` [PATCH v2 0/9] usb: dwc3: add Layerscape SoC support Michael Walle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211015131525.721323-10-michael@walle.cc \
--to=michael@walle.cc \
--cc=marex@denx.de \
--cc=ran.wang_1@nxp.com \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).