diff options
author | Kishon Vijay Abraham I <kishon@ti.com> | 2015-08-19 10:46:27 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-08-28 16:33:22 (GMT) |
commit | 6f1af1e358b7a3fbae91af5ba3c8b0999bc1189f (patch) | |
tree | 2b294180574d06fc40972b7c14adb5e69d37c44f /board/ti/am43xx | |
parent | 09cc14f4bcbf9df264cc3d23ee19a7233357945f (diff) | |
download | u-boot-6f1af1e358b7a3fbae91af5ba3c8b0999bc1189f.tar.xz |
board: ti: invoke clock API to enable and disable clocks
invoke enable_usb_clocks during board_usb_init and disable_usb_clocks
during board_usb_exit to enable and disable clocks respectively.
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/ti/am43xx')
-rw-r--r-- | board/ti/am43xx/board.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/ti/am43xx/board.c b/board/ti/am43xx/board.c index 1454976..770726c 100644 --- a/board/ti/am43xx/board.c +++ b/board/ti/am43xx/board.c @@ -713,6 +713,7 @@ static struct ti_usb_phy_device usb_phy2_device = { int board_usb_init(int index, enum usb_init_type init) { + enable_usb_clocks(index); switch (index) { case 0: if (init == USB_INIT_DEVICE) { @@ -759,6 +760,7 @@ int board_usb_cleanup(int index, enum usb_init_type init) default: printf("Invalid Controller Index\n"); } + disable_usb_clocks(index); return 0; } |