18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef __ASMARM_SMP_TWD_H
38c2ecf20Sopenharmony_ci#define __ASMARM_SMP_TWD_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#define TWD_TIMER_LOAD			0x00
68c2ecf20Sopenharmony_ci#define TWD_TIMER_COUNTER		0x04
78c2ecf20Sopenharmony_ci#define TWD_TIMER_CONTROL		0x08
88c2ecf20Sopenharmony_ci#define TWD_TIMER_INTSTAT		0x0C
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#define TWD_WDOG_LOAD			0x20
118c2ecf20Sopenharmony_ci#define TWD_WDOG_COUNTER		0x24
128c2ecf20Sopenharmony_ci#define TWD_WDOG_CONTROL		0x28
138c2ecf20Sopenharmony_ci#define TWD_WDOG_INTSTAT		0x2C
148c2ecf20Sopenharmony_ci#define TWD_WDOG_RESETSTAT		0x30
158c2ecf20Sopenharmony_ci#define TWD_WDOG_DISABLE		0x34
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#define TWD_TIMER_CONTROL_ENABLE	(1 << 0)
188c2ecf20Sopenharmony_ci#define TWD_TIMER_CONTROL_ONESHOT	(0 << 1)
198c2ecf20Sopenharmony_ci#define TWD_TIMER_CONTROL_PERIODIC	(1 << 1)
208c2ecf20Sopenharmony_ci#define TWD_TIMER_CONTROL_IT_ENABLE	(1 << 2)
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#endif
23