imx7: imx7_clock: wdog: Initialize the watchdog clocks
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Fri, 27 Jul 2018 13:53:43 +0000 (14:53 +0100)
committerBryan O'Donoghue <bryan.odonoghue@linaro.org>
Tue, 4 Sep 2018 12:36:23 +0000 (13:36 +0100)
This patch initializes the watchdog clocks for the i.MX7.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
plat/imx/common/imx7_clock.c

index ce43a02127d1a262dc7c8771b92a5ee0e2dab9ad..5e8bf2dad128009444300d7e29a19019566003ed 100644 (file)
@@ -14,6 +14,14 @@ static void imx7_clock_uart_init(void)
                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 @@ void imx_clock_init(void)
 
        /* Initialize UART clocks */
        imx7_clock_uart_init();
+
+       /* Watchdog clocks */
+       imx7_clock_wdog_init();
 }