History log of /rk3399_rockchip-uboot/drivers/usb/gadget/ (Results 51 – 75 of 547)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
a61b943413-Jan-2020 Frank Wang <frank.wang@rock-chips.com>

usb: gadget: amend usb download req buffer to 256K

Through contrast test, the use of 256K buffer can improve the
download speed than 128K buffer about 14% for USB2 and 27% for USB3.

The statistics

usb: gadget: amend usb download req buffer to 256K

Through contrast test, the use of 256K buffer can improve the
download speed than 128K buffer about 14% for USB2 and 27% for USB3.

The statistics on RK3328-EVB as below:

Buffer USB2.0 USB3.0
128K 21MB/S 30MB/S
256K 24MB/S 38MB/S

Change-Id: I3b040ed225b212196fc5ca677a4fce240ad290f3
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>

show more ...

7808becd21-Nov-2019 Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>

UPSTREAM: usb: dwc2: fix possible alignment issues

Since upgrading to gcc9, warnings are issued:
"taking address of packed member of ‘...’ may result in an unaligned
pointer value"

Fix this by conv

UPSTREAM: usb: dwc2: fix possible alignment issues

Since upgrading to gcc9, warnings are issued:
"taking address of packed member of ‘...’ may result in an unaligned
pointer value"

Fix this by converting dwc2_fifo_read to use unaligned access since packed
structures may be on an unaligned address, depending on USB hardware.

Change-Id: I2cc286df6fda386353cd2d350534e8ae398e67bb
Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit 7dc0ac6015718f5fb66bb79bf53df19f64fbfeee)

show more ...

bafc57b221-Nov-2019 Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>

UPSTREAM: usb: composite: fix possible alignment issues

Since upgrading to gcc9, warnings are issued:
"taking address of packed member of ‘...’ may result in an unaligned
pointer value"

Fix this by

UPSTREAM: usb: composite: fix possible alignment issues

Since upgrading to gcc9, warnings are issued:
"taking address of packed member of ‘...’ may result in an unaligned
pointer value"

Fix this by converting two functions to use unaligned access since packed
structures may be on an unaligned address, depending on USB hardware.

Conflicts:
drivers/usb/gadget/composite.c

Change-Id: I9a42dcd3ca1a633204396e2a2699069a88df0890
Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit 616ebd8b9cb455c5949bd94c47283835eba1954a)

show more ...

349befe501-Oct-2019 Vignesh Raghavendra <vigneshr@ti.com>

UPSTREAM: usb: gadget: Add gadget_is_cdns3() macro

Add a new bcdDevice entry for Cadence USB gadget controller similar to
other controller and add gadget_is_cdns3() macro as well.

Conflicts:
drive

UPSTREAM: usb: gadget: Add gadget_is_cdns3() macro

Add a new bcdDevice entry for Cadence USB gadget controller similar to
other controller and add gadget_is_cdns3() macro as well.

Conflicts:
drivers/usb/gadget/gadget_chips.h

Change-Id: I9be2baf3a8b57a0b1fb9116f51a04a71d59bb5f0
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit d80effb1847822e521cda17b4c73c83629b035d0)

show more ...

16dff78501-Oct-2019 Sherry Sun <sherry.sun@nxp.com>

UPSTREAM: usb: udc: Introduce ->udc_set_speed() method

This patch was copied from kernel commit: 67fdfda4a99ed.

Sometimes, the gadget driver we want to run has max_speed lower than
what the UDC sup

UPSTREAM: usb: udc: Introduce ->udc_set_speed() method

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.

So here introduce a new optional ->udc_set_speed() method which can be
implemented by interested UDC drivers to achieve this purpose.

Change-Id: I8ce57970c9095a92553ee12520e3724bd029d6b6
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit 8d94e184ffdef48b40942c12d9e7b0290e60a1ef)

show more ...

0943909d01-Oct-2019 Vignesh Raghavendra <vigneshr@ti.com>

UPSTREAM: usb: gadget: Add match_ep() op to usb_gadget_ops

Add match_ep() op to usb_gadget_ops similar to Linux kernel which is
useful in finding a suitable ep match for the function driver. This wi

UPSTREAM: usb: gadget: Add match_ep() op to usb_gadget_ops

Add match_ep() op to usb_gadget_ops similar to Linux kernel which is
useful in finding a suitable ep match for the function driver. This will
avoid adding more gadget_is_xxx() handling code to usb_ep_autoconfig().

Also sync usb_ep_caps struct thats is usually used in the match_ep()
callback by the gadget controller driver

Change-Id: I94fe5d1b3ae984cbf3f6e10f86020191d8ca8090
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit 77dcbdf3c1ce96de19c00caca0766b5bbaa0cf28)

show more ...

10daf97402-Oct-2019 Marek Szyprowski <m.szyprowski@samsung.com>

UPSTREAM: gadget: f_thor: properly enable 3rd endpoint defined by the protocol

This is needed to make Windows THOR flash tool happy, because it
starts sending data only when interrupt packet is rece

UPSTREAM: gadget: f_thor: properly enable 3rd endpoint defined by the protocol

This is needed to make Windows THOR flash tool happy, because it
starts sending data only when interrupt packet is received on the 3rd
endpoint.

Change-Id: I51b9eee20646a7a0f65a1282fe96a575d3ebead7
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit ade08db8993687926773b32a477d9a24a9ede9e7)

show more ...


/rk3399_rockchip-uboot/MAINTAINERS
/rk3399_rockchip-uboot/common/usb.c
/rk3399_rockchip-uboot/common/usb_kbd.c
/rk3399_rockchip-uboot/common/usb_storage.c
/rk3399_rockchip-uboot/configs/avnet_ultra96_rev1_defconfig
/rk3399_rockchip-uboot/configs/xilinx_zynqmp_zc1751_xm015_dc1_defconfig
/rk3399_rockchip-uboot/configs/xilinx_zynqmp_zc1751_xm016_dc2_defconfig
/rk3399_rockchip-uboot/configs/xilinx_zynqmp_zc1751_xm017_dc3_defconfig
/rk3399_rockchip-uboot/configs/xilinx_zynqmp_zcu100_revC_defconfig
/rk3399_rockchip-uboot/configs/xilinx_zynqmp_zcu102_rev1_0_defconfig
/rk3399_rockchip-uboot/configs/xilinx_zynqmp_zcu102_revA_defconfig
/rk3399_rockchip-uboot/configs/xilinx_zynqmp_zcu102_revB_defconfig
/rk3399_rockchip-uboot/configs/xilinx_zynqmp_zcu104_revA_defconfig
/rk3399_rockchip-uboot/configs/xilinx_zynqmp_zcu104_revC_defconfig
/rk3399_rockchip-uboot/configs/xilinx_zynqmp_zcu106_revA_defconfig
/rk3399_rockchip-uboot/configs/xilinx_zynqmp_zcu111_revA_defconfig
/rk3399_rockchip-uboot/drivers/usb/dwc3/core.c
/rk3399_rockchip-uboot/drivers/usb/dwc3/core.h
/rk3399_rockchip-uboot/drivers/usb/dwc3/dwc3-generic.c
/rk3399_rockchip-uboot/drivers/usb/emul/sandbox_keyb.c
/rk3399_rockchip-uboot/drivers/usb/emul/usb-emul-uclass.c
f_thor.c
/rk3399_rockchip-uboot/drivers/usb/host/Kconfig
/rk3399_rockchip-uboot/drivers/usb/host/Makefile
/rk3399_rockchip-uboot/drivers/usb/host/dwc2.c
/rk3399_rockchip-uboot/drivers/usb/host/ehci-generic.c
/rk3399_rockchip-uboot/drivers/usb/host/ehci-hcd.c
/rk3399_rockchip-uboot/drivers/usb/host/ehci-mx6.c
/rk3399_rockchip-uboot/drivers/usb/host/ohci-generic.c
/rk3399_rockchip-uboot/drivers/usb/host/ohci-hcd.c
/rk3399_rockchip-uboot/drivers/usb/host/r8a66597-hcd.c
/rk3399_rockchip-uboot/drivers/usb/host/r8a66597.h
/rk3399_rockchip-uboot/drivers/usb/host/sl811-hcd.c
/rk3399_rockchip-uboot/drivers/usb/host/usb-sandbox.c
/rk3399_rockchip-uboot/drivers/usb/host/usb-uclass.c
/rk3399_rockchip-uboot/drivers/usb/host/xhci-dwc3.c
/rk3399_rockchip-uboot/drivers/usb/host/xhci-exynos5.c
/rk3399_rockchip-uboot/drivers/usb/host/xhci-fsl.c
/rk3399_rockchip-uboot/drivers/usb/host/xhci-mem.c
/rk3399_rockchip-uboot/drivers/usb/host/xhci-mvebu.c
/rk3399_rockchip-uboot/drivers/usb/host/xhci-omap.c
/rk3399_rockchip-uboot/drivers/usb/host/xhci-pci.c
/rk3399_rockchip-uboot/drivers/usb/host/xhci-rcar.c
/rk3399_rockchip-uboot/drivers/usb/host/xhci-ring.c
/rk3399_rockchip-uboot/drivers/usb/host/xhci-rockchip.c
/rk3399_rockchip-uboot/drivers/usb/host/xhci.c
/rk3399_rockchip-uboot/drivers/usb/musb-new/musb_uboot.c
/rk3399_rockchip-uboot/drivers/usb/musb/musb_hcd.c
/rk3399_rockchip-uboot/drivers/usb/phy/omap_usb_phy.c
/rk3399_rockchip-uboot/include/usb.h
/rk3399_rockchip-uboot/include/usb/xhci.h
2b5fff1c28-Jun-2019 Ralph Siemsen <ralph.siemsen@linaro.org>

UPSTREAM: usb: gadget: f_dfu.c: fix memory leak

dfu_prepare_function() allocates N+1 descriptor header structures,
the last one being the "DFU Functional Descriptor".

dfu_unbind() handles de-alloca

UPSTREAM: usb: gadget: f_dfu.c: fix memory leak

dfu_prepare_function() allocates N+1 descriptor header structures,
the last one being the "DFU Functional Descriptor".

dfu_unbind() handles de-allocation, but fails to free the final
one (eg. "DFU Functional Descriptor"), leading to memory leak.

Fixed by incrementing counter, as in dfu_prepare_function().

Change-Id: I990f3874d6e3dca78036d6f30a05e765fbe38c67
Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit fe876984a428cc0058bdb536ac948397762f3c0d)

show more ...

e7093b5104-Jun-2019 Frieder Schrempf <frieder.schrempf@kontron.de>

UPSTREAM: usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

Add support for loading u-boot FIT images over the USB SDP protocol in
the SPL

Change-Id: I41461b58c088a10eca6e48b0d49c76944c37c

UPSTREAM: usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

Add support for loading u-boot FIT images over the USB SDP protocol in
the SPL

Change-Id: I41461b58c088a10eca6e48b0d49c76944c37c3fa
Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
[Various build fixes]
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Tested-by: Fabio Estevam <festevam@gmail.com>
Tested-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit 2c72ead7387404eba16c556d2f204c52c36c27f9)

show more ...

ba6d0aab18-Jun-2019 Patrick Delaunay <patrick.delaunay@st.com>

UPSTREAM: usb: dwc2: allow peripheral mode for OTG configuration

Allow device mode in DWC2 driver when device tree select the dr_mode
"peripheral" or "otg".

The device mode is not allowed when dr_m

UPSTREAM: usb: dwc2: allow peripheral mode for OTG configuration

Allow device mode in DWC2 driver when device tree select the dr_mode
"peripheral" or "otg".

The device mode is not allowed when dr_mode = "host" in device tree.

Change-Id: Iede854cdf940f5e1ef14a7e394087ac97998213a
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit 7c654683464dc4cd89f9a8198e26336263390b57)

show more ...

aea37ef618-Jun-2019 Patrick Delaunay <patrick.delaunay@st.com>

UPSTREAM: usb: dwc2: correctly handle binding for g-tx-fifo-size

Manage g-tx-fifo-size as a array as specify in the binding.

Change-Id: Ie2f0fa8eda62d762fe79072db377c1b00b23ee4c
Signed-off-by: Patr

UPSTREAM: usb: dwc2: correctly handle binding for g-tx-fifo-size

Manage g-tx-fifo-size as a array as specify in the binding.

Change-Id: Ie2f0fa8eda62d762fe79072db377c1b00b23ee4c
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit 7350a75b517b6162c8f832a9ead09b9e26e8068f)

show more ...

24b360da17-Apr-2019 Fabrice Gasnier <fabrice.gasnier@st.com>

UPSTREAM: usb: dwc2: fix gadget disconnect

This fixes a disconnect issue detected with fastboot command, when using
dwc2 driver.
- On u-boot side:
uboot>$ fastboot 0
- On USB host PC side, few secon

UPSTREAM: usb: dwc2: fix gadget disconnect

This fixes a disconnect issue detected with fastboot command, when using
dwc2 driver.
- On u-boot side:
uboot>$ fastboot 0
- On USB host PC side, few seconds after
PC>$ fastboot reboot # Get stuck, uboot target never reboots

By enabling DEBUG_ISR logs, the bus suspend interrupt is seen before the
PC command has been issued. When the USB bus suspend occurs, there's a HACK
that disables the fastboot (composite driver). Here is the call stack
upon USB bus suspend:
- dwc2_handle_usb_suspend_intr()
- dev->driver->disconnect()
- composite_disconnect()
- reset_config()
- f->disable()
- fastboot_disable()
- usb_ep_disable(f_fb->out_ep);
- usb_ep_disable(f_fb->in_ep);
.. other disable calls.

When the resume interrupt happens, everything has been disabled, then
nothing happens. fastboot command gets stuck on HOST side.

Remove original HACK, that disconnects the composite driver upon
USB bus suspend. Implement disconnect detection instead:
- check GINTSTS OTG interrupt
- read GOTGINT register
- check GOTGINT, SesEndDet bit (e.g. session end)
This is inspired by what is implemented currently in Linux dwc2 driver.

Change-Id: I061bf19a7be2c85fdde3490ef792f18612de9c56
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit 7fd9f31c6bd13609da61b985cf8f5f65ebebd913)

show more ...

db70440629-Mar-2019 Patrick Delaunay <patrick.delaunay@st.com>

UPSTREAM: stm32mp1: add stusb1600 support for DK1 and DK2 board

The DK1 and DK2 boards use the USB Type-C controller STUSB1600.
This patch updates:
- the device tree to add the I2C node in the DT
-

UPSTREAM: stm32mp1: add stusb1600 support for DK1 and DK2 board

The DK1 and DK2 boards use the USB Type-C controller STUSB1600.
This patch updates:
- the device tree to add the I2C node in the DT
- the board stm32mp1 to probe this I2C device and use this controller
to check cable detection.
- the DWC2 driver to support a new dt property
"u-boot,force-b-session-valid" which forces B session and
device mode; it is a workaround because the VBUS sensing and
ID detection isn't available with stusb1600.

Conflicts:
arch/arm/dts/stm32mp157-pinctrl.dtsi
arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi
arch/arm/dts/stm32mp157a-dk1.dts
board/st/stm32mp1/stm32mp1.c

Change-Id: I73b62dce9c3e0661e6d2463b87389229cd3559a7
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
(cherry picked from commit 6fe7dd3327d552bacf4266d7f1ed074bf98ffb92)

show more ...

acd7aca829-Mar-2019 Patrick Delaunay <patrick.delaunay@st.com>

UPSTREAM: usb: dwc2: add support for STM32MP1

Add compatible "st,stm32mp1-hsotg" and associated driver data to manage
the usb33d-supply and the ST specific register for VBus sensing.

Change-Id: If6

UPSTREAM: usb: dwc2: add support for STM32MP1

Add compatible "st,stm32mp1-hsotg" and associated driver data to manage
the usb33d-supply and the ST specific register for VBus sensing.

Change-Id: If60971ebf415cb708b04af38c7b61d5321a13181
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit 931e9d7aa7228867eec7e33fd45718e6018cc96d)

show more ...

6187c34629-Mar-2019 Patrice Chotard <patrice.chotard@st.com>

UPSTREAM: usb: dwc2_udc_otg: Add tx_fifo_sz array support

All TX fifo size can be different, add tx_fifo_sz_array[]
into dwc2_plat_otg_data to be able to set them.

tx_fifo_sz_array[] is 17 Bytes lo

UPSTREAM: usb: dwc2_udc_otg: Add tx_fifo_sz array support

All TX fifo size can be different, add tx_fifo_sz_array[]
into dwc2_plat_otg_data to be able to set them.

tx_fifo_sz_array[] is 17 Bytes long and can contains max 16
tx fifo size (synopsys IP supports max 16 IN endpoints).
First entry of tx_fifo_sz_array[] is the number of valid
fifo size the array contains.

In case of tx_fifo_sz_array[] doesn't contains the same
number of element than max hardware endpoint, display
a warning message.

Compatibility with board which doesn't use tx_fifo_sz_array[]
(Rockchip rk322x/rk3128/rv1108/rk3288/rk3036) is kept.

Change-Id: If32954770f9571a1bb18376239ef9cff9a721178
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit 763bb106f66c147b7d0c3046dbba66a07d7a9dd2)

show more ...

38b0d57429-Mar-2019 Patrick Delaunay <patrick.delaunay@st.com>

UPSTREAM: usb: dwc2_udc_otg: Read MAX_HW_ENDPOINT from HWCFG4 register

Some DWC2 ip variant doesn't use 16 hardware endpoint as hardcoded
in the driver. Bits INEps [29:26] of HWCFG4 register allows

UPSTREAM: usb: dwc2_udc_otg: Read MAX_HW_ENDPOINT from HWCFG4 register

Some DWC2 ip variant doesn't use 16 hardware endpoint as hardcoded
in the driver. Bits INEps [29:26] of HWCFG4 register allows to get
this information.

Change-Id: I22f88ef7ee2749cce3c93f5c8a455a1de165b9dd
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit 5bd97e80730bdda59656ca927d67d62fb2a4ecb6)

show more ...

3015f8be29-Mar-2019 Patrick Delaunay <patrick.delaunay@st.com>

UPSTREAM: usb: dwc2: Add function for session B check

Add a new function to check the session B validity, to be use to check
cable connection.

Change-Id: I914d7353e926df26787261c99f07e5c58dbf24ff
S

UPSTREAM: usb: dwc2: Add function for session B check

Add a new function to check the session B validity, to be use to check
cable connection.

Change-Id: I914d7353e926df26787261c99f07e5c58dbf24ff
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit 2d76160f049c42087011cfa0e6e878aa2ed6b406)

show more ...

5c4beedb29-Mar-2019 Patrick Delaunay <patrick.delaunay@st.com>

UPSTREAM: usb: dwc2: Add force-b-session-valid support

Handle "force-b-session-valid" property from DT.

Change-Id: I5a0bf871506257b449897cb67732fef430704134
Signed-off-by: Patrick Delaunay <patrick

UPSTREAM: usb: dwc2: Add force-b-session-valid support

Handle "force-b-session-valid" property from DT.

Change-Id: I5a0bf871506257b449897cb67732fef430704134
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit 0fdd0bc621f060fcf60fd4ba48a2a32f338ffeac)

show more ...

b486dd9e29-Mar-2019 Patrick Delaunay <patrick.delaunay@st.com>

UPSTREAM: usb: dwc2: force reset assert before to probe the driver

Reset the hardware to be sure of the device state.

Change-Id: Ia86b8b929d6f5316820464a8dbfadbadd7e9d3dc
Signed-off-by: Patrick Del

UPSTREAM: usb: dwc2: force reset assert before to probe the driver

Reset the hardware to be sure of the device state.

Change-Id: Ia86b8b929d6f5316820464a8dbfadbadd7e9d3dc
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit c2c74f97afff9351077f2236ab6fa5638de9bd86)

show more ...

1b9a1ae629-Mar-2019 Patrick Delaunay <patrick.delaunay@st.com>

UPSTREAM: usb: dwc2: convert driver to DM_USB_GADGET

Minimal conversion to driver model by using the uclass
UCLASS_USB_GADGET_GENERIC based on:
- reset uclass
- clock uclass
- generic uclass.

Chang

UPSTREAM: usb: dwc2: convert driver to DM_USB_GADGET

Minimal conversion to driver model by using the uclass
UCLASS_USB_GADGET_GENERIC based on:
- reset uclass
- clock uclass
- generic uclass.

Change-Id: Id366ea00cb1126d14cb8cef2a9e86b86df6cd612
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit c791c8431c34da803fdac4a308999879a6a33834)

show more ...

a0c39c0729-Mar-2019 Patrick Delaunay <patrick.delaunay@st.com>

UPSTREAM: usb: dwc2: remove unused variable regs_otg

Remove the global regs_otg variable.

Change-Id: Iea128368e3b6593cf15d2e2bd31dfe03c445ad32
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.c

UPSTREAM: usb: dwc2: remove unused variable regs_otg

Remove the global regs_otg variable.

Change-Id: Iea128368e3b6593cf15d2e2bd31dfe03c445ad32
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit a812d77617749eeaddfa8b9796b9a2eece1ad2f5)

show more ...

95dc2be924-Jan-2019 Jean-Jacques Hiblot <jjhiblot@ti.com>

UPSTREAM: usb: udc-uclass: Fixed problem when no alias is defined in DT

commit 801f1fa442 "dm: usb: udc: Use SEQ_ALIAS to index the USB gadget
ports" changed the way the udevice if found. It uses th

UPSTREAM: usb: udc-uclass: Fixed problem when no alias is defined in DT

commit 801f1fa442 "dm: usb: udc: Use SEQ_ALIAS to index the USB gadget
ports" changed the way the udevice if found. It uses the alias to find
a udevice for a given USB port number. In the commit log it was stated
that if no alias is provided, the bind order will be used instead. However
it doesn't work. Fixing this by adding a call to uclass_get_device() if
uclass_get_device_by_seq() fails.

Change-Id: Ib2304c5ecd5d46089c3273ca3ecaa3f9eb5399f8
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Tested-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit e81d9de531fb4c7f14344736bd7568c954e64e14)

show more ...

b1c323b122-Jan-2019 Jean-Jacques Hiblot <jjhiblot@ti.com>

UPSTREAM: usb: ether: call _usb_eth_halt() if initialization fails

If the host does not respond in time, the initialization fails. However
the usb ether driver will still be registered. This will ma

UPSTREAM: usb: ether: call _usb_eth_halt() if initialization fails

If the host does not respond in time, the initialization fails. However
the usb ether driver will still be registered. This will make
usb_gadget_probe_driver() fail the next time the initialization is
attempted because it cannot find an available UDC.

Fixing this by calling _usb_eth_halt() when the init fails.

Change-Id: Id61795e444e12265657a8a070f48b35d4a9ca280
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Acked-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit 1c1464c2b19f1b96885040b8adc9cf5ba3c7b32d)

show more ...

09b32b4117-Jan-2019 Andrew F. Davis <afd@ti.com>

UPSTREAM: spl: Kconfig: Drop the _SUPPORT postfix from SPL_DFU

The symbol CONFIG_SPL_DFU_SUPPORT in SPL build has the same
meaning as CONFIG_DFU in regular U-Boot. Drop the _SUPPORT
to allow for cle

UPSTREAM: spl: Kconfig: Drop the _SUPPORT postfix from SPL_DFU

The symbol CONFIG_SPL_DFU_SUPPORT in SPL build has the same
meaning as CONFIG_DFU in regular U-Boot. Drop the _SUPPORT
to allow for cleaner use in code.

Conflicts:
arch/arm/mach-zynqmp/spl.c
common/Makefile
common/spl/Kconfig
common/spl/spl_ram.c

Change-Id: I93f09d5953284d511df135e6e71c03c0552719a2
Signed-off-by: Andrew F. Davis <afd@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Acked-by: Lukasz Majewski <lukma@denx.de>
(cherry picked from commit 6536ca4d6676bf38e50784298e713edc30b9cde9)

show more ...

9e4d054021-Dec-2018 Jean-Jacques Hiblot <jjhiblot@ti.com>

UPSTREAM: dm: usb: gadget: Fix boot breakage on sunxi platforms

Fixes commit 013116243950 ("dm: usb: create a new UCLASS ID for USB gadget
devices")

The UCLASS_DRIVER for id UCLASS_USB_GADGET_GENER

UPSTREAM: dm: usb: gadget: Fix boot breakage on sunxi platforms

Fixes commit 013116243950 ("dm: usb: create a new UCLASS ID for USB gadget
devices")

The UCLASS_DRIVER for id UCLASS_USB_GADGET_GENERIC needs to be declared
even for platforms that do not enable DM_USB_GADGET. Otherwise the driver
for their usb peripheral controller fails to bind.

Change-Id: Ide6104f24be321d05d399b03a9fc38663f44a2d1
Reported-by: Priit Laes <plaes@plaes.org>
Reported-by: Jagan Teki <jagan@amarulasolutions.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Tested-by: Priit Laes <plaes@plaes.org>
Acked-by: Jagan Teki <jagan@openedev.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit b3c518a88278619b1e109de114c450237d03e032)

show more ...

12345678910>>...22