imx7: imx7_clock: usb: Initialize the USB core clocks
This patch initializes USB core clocks for the i.MX7.
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
diff --git a/plat/imx/common/imx7_clock.c b/plat/imx/common/imx7_clock.c
index 5e8bf2d..6bd2e0e 100644
--- a/plat/imx/common/imx7_clock.c
+++ b/plat/imx/common/imx7_clock.c
@@ -22,6 +22,12 @@
imx_clock_disable_wdog(i);
}
+static void imx7_clock_usb_init(void)
+{
+ /* Disable the clock root */
+ imx_clock_target_clr(CCM_TRT_ID_USB_HSIC_CLK_ROOT, 0xFFFFFFFF);
+}
+
void imx_clock_init(void)
{
/*
@@ -40,5 +46,10 @@
imx7_clock_uart_init();
/* Watchdog clocks */
+
imx7_clock_wdog_init();
+
+ /* USB clocks */
+ imx7_clock_usb_init();
+
}