Changes in v2:
- Update the commit log in patch 1/4.
The current patches have been validated on both i.MX8 and i.MX8M platform.
This patchset adds:
1. Add usb_gadget_initialize() and usb_gadget_release() to initialize and
release UDC during sdp download.
2. Add high speed endpoint descriptor for
Need initialize UDC before run sdp download and release it at the end of
sdp.
Signed-off-by: Sherry Sun
Signed-off-by: Frank Li
---
common/spl/spl_sdp.c | 4
1 file changed, 4 insertions(+)
diff --git a/common/spl/spl_sdp.c b/common/spl/spl_sdp.c
index 806bf1327e..7b0a213d4c 100644
---
Hi Aaron,
On Wed, Aug 21, 2019 at 7:26 PM Aaron Williams wrote:
>
> Hi Bin,
>
> I submitted another patch via git. Hopefully it went through. I'm new to
> trying to get email to work with GIT since until now nobody in my group has
> had access to a working SMTP server so I'm still learning how
This driver is ported from NXP i.MX U-Boot version imx_v2019.04
and some changes have also been made to adapt to U-Boot.
Add the Cadence USB3 IP(CDNS3) driver for the gadget (device mode).
The CDNS3 gadget driver support DM mode. CONFIG_DM_USB_GADGET should
be enabled when use this driver.
Since some new fields in usb_ep structure been moved to usb_ss_ep.
The CDNS3 gadget driver should replies on this operation to bind the
usb_ss_ep with the endpoint descriptor when function layer uses
usb_ep_autoconfig to add endpoint descriptors to gadget. So that
CDNS3 driver can know the EP
Like other usb controllers, add gadget_is_cdns3 checking to
provide bcdUSB value in device descriptor.
Signed-off-by: Sherry Sun
---
drivers/usb/gadget/gadget_chips.h | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/usb/gadget/gadget_chips.h
Add the USB3 host driver for NXP imx8 platform, and the
cadence IP is in it. The USB3 host driver support DM
mode, it will probe USB3 host node in dts.
Signed-off-by: Sherry Sun
---
drivers/usb/host/Kconfig | 9 ++
drivers/usb/host/Makefile| 1 +
drivers/usb/host/xhci-imx8.c | 210
This patch was copied from kernel commit: 67fdfda4a99ed.
Sometimes, the gadget driver we want to run has max_speed lower than
what the UDC supports. In such situations, UDC might want to make sure
we don't try to connect on speeds not supported by the gadget
driver because that will just fail.
The SPL SDP is configured as BOOT_DEVICE_BOARD, but for i.MX8 and
i.MX8M, the boot_device_spl is still set to BOOT_DEVICE_USB, which
may cause SDP can't work, in order to fix this issue, when booting
from USB in spl, we change its type to BOOT_DEVICE_BOARD.
Signed-off-by: Sherry Sun
If SDP_WRITE and SDP_JUMP command addr is zero, use CONFIG_SDP_LOADADDR
as default address.
Signed-off-by: Sherry Sun
Signed-off-by: Frank Li
---
drivers/usb/gadget/Kconfig | 4
drivers/usb/gadget/f_sdp.c | 6 --
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git
Because the buffer length of sdp usb request is 65, we have to allocate
65 bytes not 64 bytes. Otherwise there is potential buffer overflow.
So the wMaxPacketSize of fullspeed can't meet the needs. Add HS
endpoint descriptor for SDP. Then we can use high speed endpoint,
and the SDP device can
101 - 111 of 111 matches
Mail list logo