• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <lib/mmio.h>
8 
9 #include <imx_regs.h>
10 #include <imx_wdog.h>
11 
imx_wdog_power_down(unsigned long base)12 static void imx_wdog_power_down(unsigned long base)
13 {
14 	struct wdog_regs *wdog = (struct wdog_regs *)base;
15 
16 	mmio_write_16((uintptr_t)&wdog->wmcr, 0);
17 }
18 
imx_wdog_init(void)19 void imx_wdog_init(void)
20 {
21 	imx_wdog_power_down(WDOG1_BASE);
22 	imx_wdog_power_down(WDOG2_BASE);
23 	imx_wdog_power_down(WDOG3_BASE);
24 	imx_wdog_power_down(WDOG4_BASE);
25 }
26