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>
This commit is contained in:
Bryan O'Donoghue 2018-07-27 14:53:43 +01:00
parent 73f432a47c
commit 5ff1751d07
1 changed files with 11 additions and 0 deletions

View 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();
}