162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef __ASMARM_SMP_TWD_H
362306a36Sopenharmony_ci#define __ASMARM_SMP_TWD_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#define TWD_TIMER_LOAD			0x00
662306a36Sopenharmony_ci#define TWD_TIMER_COUNTER		0x04
762306a36Sopenharmony_ci#define TWD_TIMER_CONTROL		0x08
862306a36Sopenharmony_ci#define TWD_TIMER_INTSTAT		0x0C
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci#define TWD_WDOG_LOAD			0x20
1162306a36Sopenharmony_ci#define TWD_WDOG_COUNTER		0x24
1262306a36Sopenharmony_ci#define TWD_WDOG_CONTROL		0x28
1362306a36Sopenharmony_ci#define TWD_WDOG_INTSTAT		0x2C
1462306a36Sopenharmony_ci#define TWD_WDOG_RESETSTAT		0x30
1562306a36Sopenharmony_ci#define TWD_WDOG_DISABLE		0x34
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci#define TWD_TIMER_CONTROL_ENABLE	(1 << 0)
1862306a36Sopenharmony_ci#define TWD_TIMER_CONTROL_ONESHOT	(0 << 1)
1962306a36Sopenharmony_ci#define TWD_TIMER_CONTROL_PERIODIC	(1 << 1)
2062306a36Sopenharmony_ci#define TWD_TIMER_CONTROL_IT_ENABLE	(1 << 2)
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci#endif
23