diff options
author | Uri Mashiach <uri.mashiach@compulab.co.il> | 2017-02-23 15:39:38 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-05-08 11:38:38 -0400 |
commit | 4acfe1ae46ca7731544dda57ce42d10acc2d63c5 (patch) | |
tree | a8d87f49e3e9b98f0b3b4c55e8024b31538e702e /drivers/usb | |
parent | 1a9a5f7a39d655868d7e51327786ca6bccbbec68 (diff) | |
download | u-boot-4acfe1ae46ca7731544dda57ce42d10acc2d63c5.tar.gz u-boot-4acfe1ae46ca7731544dda57ce42d10acc2d63c5.tar.bz2 u-boot-4acfe1ae46ca7731544dda57ce42d10acc2d63c5.zip |
arm: am57xx: cl-som-am57x: invoke clock API to enable/disable clocks
Invoke enable_usb_clocks during board_usb_init and disable_usb_clocks
during board_usb_exit to enable and disable clocks respectively.
Modifications:
* Enable USB clocks in the OMAP version of the function
board_usb_init.
* Disable USB clocks in the OMAP version of the function
board_usb_cleanup.
Cc: Marek Vasut <marex@denx.de>
Signed-off-by: Uri Mashiach <uri.mashiach@compulab.co.il>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/xhci-omap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-omap.c b/drivers/usb/host/xhci-omap.c index a1b4f2f05c..d6c5744818 100644 --- a/drivers/usb/host/xhci-omap.c +++ b/drivers/usb/host/xhci-omap.c @@ -29,6 +29,7 @@ static struct omap_xhci omap; __weak int omap_xhci_board_usb_init(int index, enum usb_init_type init) { + enable_usb_clocks(index); return 0; } @@ -39,6 +40,7 @@ int board_usb_init(int index, enum usb_init_type init) __weak int omap_xhci_board_usb_cleanup(int index, enum usb_init_type init) { + disable_usb_clocks(index); return 0; } |