summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2015-10-14 08:52:29 +0200
committerFelipe Balbi <balbi@ti.com>2015-10-14 08:40:15 -0500
commit09a75e8577901489f77a14a3b305a9a1f67bf25b (patch)
tree70fa7f23a08ce55aa0c1d4ebb7aaa6e1ae38fe0d /drivers/usb/gadget
parent758ed196fcc4373a129fd661875af52d7e7d4e73 (diff)
downloadlinux-09a75e8577901489f77a14a3b305a9a1f67bf25b.tar.bz2
usb: dwc2: refactor common low-level hw code to platform.c
DWC2 module on some platforms needs three additional hardware resources: phy controller, clock and power supply. All of them must be enabled/activated to properly initialize and operate. This was initially handled in s3c-hsotg driver, which has been converted to 'gadget' part of dwc2 driver. Unfortunately, not all of this code got moved to common platform code, what resulted in accessing DWC2 registers without enabling low-level hardware resources. This fails for example on Exynos SoCs. This patch moves all the code for managing those resources to common platform.c file and provides convenient wrappers for controlling them. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Acked-by: John Youn <johnyoun@synopsys.com> Tested-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget')
0 files changed, 0 insertions, 0 deletions