imx7: imx7_clock: wdog: Initialize the watchdog clocks
This patch initializes the watchdog 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 ce43a02..5e8bf2d 100644
--- a/plat/imx/common/imx7_clock.c
+++ b/plat/imx/common/imx7_clock.c
@@ -14,6 +14,14 @@
imx_clock_disable_uart(i);
}
+static void imx7_clock_wdog_init(void)
+{
+ unsigned int i;
+
+ for (i = 0; i < MXC_MAX_WDOG_NUM; i++)
+ imx_clock_disable_wdog(i);
+}
+
void imx_clock_init(void)
{
/*
@@ -30,4 +38,7 @@
/* Initialize UART clocks */
imx7_clock_uart_init();
+
+ /* Watchdog clocks */
+ imx7_clock_wdog_init();
}