xref: /openbmc/u-boot/arch/arm/include/asm/arch-stv0991/stv0991_wdru.h (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1  /* SPDX-License-Identifier: GPL-2.0+ */
2  /*
3   * Copyright (C) 2014, STMicroelectronics - All Rights Reserved
4   * Author(s): Vikas Manocha, <vikas.manocha@st.com> for STMicroelectronics.
5   */
6  
7  #ifndef _STV0991_WD_RST_H
8  #define _STV0991_WD_RST_H
9  #include <asm/arch-stv0991/hardware.h>
10  
11  struct stv0991_wd_ru {
12  	u32 wdru_config;
13  	u32 wdru_ctrl1;
14  	u32 wdru_ctrl2;
15  	u32 wdru_tim;
16  	u32 wdru_count;
17  	u32 wdru_stat;
18  	u32 wdru_wrlock;
19  };
20  
21  struct stv0991_wd_ru *const stv0991_wd_ru_ptr = \
22  		(struct stv0991_wd_ru *)WDRU_BASE_ADDR;
23  
24  /* Watchdog control register */
25  #define WDRU_RST_SYS		0x1
26  
27  #endif
28