From 6f1af1e358b7a3fbae91af5ba3c8b0999bc1189f Mon Sep 17 00:00:00 2001 From: Kishon Vijay Abraham I Date: Wed, 19 Aug 2015 16:16:27 +0530 Subject: 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 Reviewed-by: Tom Rini --- board/ti/dra7xx/evm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'board/ti/dra7xx') diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c index eaf123c..890b603 100644 --- a/board/ti/dra7xx/evm.c +++ b/board/ti/dra7xx/evm.c @@ -163,6 +163,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) { @@ -209,6 +210,7 @@ int board_usb_cleanup(int index, enum usb_init_type init) default: printf("Invalid Controller Index\n"); } + disable_usb_clocks(index); return 0; } -- cgit v1.1