Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __ASMARM_SMP_TWD_H
0003 #define __ASMARM_SMP_TWD_H
0004 
0005 #define TWD_TIMER_LOAD          0x00
0006 #define TWD_TIMER_COUNTER       0x04
0007 #define TWD_TIMER_CONTROL       0x08
0008 #define TWD_TIMER_INTSTAT       0x0C
0009 
0010 #define TWD_WDOG_LOAD           0x20
0011 #define TWD_WDOG_COUNTER        0x24
0012 #define TWD_WDOG_CONTROL        0x28
0013 #define TWD_WDOG_INTSTAT        0x2C
0014 #define TWD_WDOG_RESETSTAT      0x30
0015 #define TWD_WDOG_DISABLE        0x34
0016 
0017 #define TWD_TIMER_CONTROL_ENABLE    (1 << 0)
0018 #define TWD_TIMER_CONTROL_ONESHOT   (0 << 1)
0019 #define TWD_TIMER_CONTROL_PERIODIC  (1 << 1)
0020 #define TWD_TIMER_CONTROL_IT_ENABLE (1 << 2)
0021 
0022 #endif