u-boot-brain/drivers/usb/host
Marek Vasut 501547cec1 usb: ehci-mx6: Fix bus enumeration for DM case
The EHCI iMX6 driver is only partly converted to DT probing and
still uses a tremendous amount of hard-coded addresses. Worse,
the driver uses hard-coded SoC-model-specific base addresses, which
are derived from values protected by SoC-specific macros, hence the
driver is also compiled for a specific SoC model. Even worse, the
driver depends on specific sequential indexing of the controllers,
from which it derives offsets in the PHY and ANATOP register sets.

However, when the driver is probed from DT, the indexing is not
correct. In fact, each controller has index 0. This patch derives
the index for DT probing case from the controller base addresses,
which is not the way this should be done, however it is the least
intrusive approach, favorable this close to release.

The necessary steps to convert this driver fully to DT probing are
described inside the patch, however this should be done in the next
release and depends on iMX clock driver patches.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Abel Vesa <abel.vesa@nxp.com>
Cc: Adam Ford <aford173@gmail.com>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Ludwig Zenz <lzenz@dh-electronics.com>
Cc: Lukasz Majewski <lukma@denx.de>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Vagrant Cascadian <vagrant@debian.org>
2019-07-05 14:19:40 +02:00
..
dwc2.c usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/ 2018-11-26 21:19:03 +01:00
dwc2.h
dwc3-of-simple.c
dwc3-sti-glue.c
ehci-armada100.c
ehci-atmel.c usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/ 2018-11-26 21:19:03 +01:00
ehci-exynos.c
ehci-faraday.c
ehci-fsl.c usb: ehci: adopt 32 bit address for CONFIG_PPC 2019-05-23 19:53:08 +05:30
ehci-generic.c
ehci-hcd.c usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/ 2018-11-26 21:19:03 +01:00
ehci-marvell.c usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/ 2018-11-26 21:19:03 +01:00
ehci-msm.c
ehci-mx5.c USB: DM: Convert i.MX5 ehci code to driver model 2019-04-25 17:03:25 +02:00
ehci-mx6.c usb: ehci-mx6: Fix bus enumeration for DM case 2019-07-05 14:19:40 +02:00
ehci-mxc.c
ehci-mxs.c
ehci-omap.c
ehci-pci.c usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/ 2018-11-26 21:19:03 +01:00
ehci-rmobile.c
ehci-spear.c
ehci-tegra.c
ehci-vct.c
ehci-vf.c usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/ 2018-11-26 21:19:03 +01:00
ehci-zynq.c
ehci.h
Kconfig usb: ohci: ohci-da8xx: Enable da850-ohci driver with DM support 2019-05-05 08:48:50 -04:00
Makefile usb: host: Drop [e-o]hci-sunxi drivers 2019-01-18 22:19:09 +05:30
ohci-at91.c
ohci-da8xx.c usb: ohci: ohci-da8xx: Cleanup Error handling and fix flags 2019-05-09 19:52:55 -04:00
ohci-ep93xx.c
ohci-generic.c
ohci-hcd.c usb: ohci: Re-enable commented out delay 2019-05-03 17:14:49 +02:00
ohci-lpc32xx.c
ohci.h usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/ 2018-11-26 21:19:03 +01:00
r8a66597-hcd.c
r8a66597.h
sl811-hcd.c
sl811.h
usb-sandbox.c
usb-uclass.c usb: host: Print device name when scanning 2019-04-09 13:11:45 +02:00
utmi-armada100.c
xhci-dwc3.c dwc3: move phy operation to core.c 2018-12-07 16:31:45 +01:00
xhci-exynos5.c
xhci-fsl.c usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/ 2018-11-26 21:19:03 +01:00
xhci-mem.c usb: xhci-mem: Fix scratchpad array issue 2019-01-09 16:03:56 +01:00
xhci-mvebu.c
xhci-omap.c
xhci-pci.c
xhci-rcar-r8a779x_usb3_v3.h
xhci-rcar.c
xhci-ring.c
xhci-rockchip.c
xhci-zynqmp.c
xhci.c usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/ 2018-11-26 21:19:03 +01:00
xhci.h usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/ 2018-11-26 21:19:03 +01:00