1/* SPDX-License-Identifier:     GPL-2.0+ */
2/*
3 * Copyright 2018-2019 NXP
4 */
5
6#ifndef SC_TIMER_API_H
7#define SC_TIMER_API_H
8
9/* Defines */
10
11/* Defines for type widths */
12#define SC_TIMER_ACTION_W   3U      /* Width of sc_timer_wdog_action_t */
13
14/* Defines for sc_timer_wdog_action_t */
15#define SC_TIMER_WDOG_ACTION_PARTITION      0U   /* Reset partition */
16#define SC_TIMER_WDOG_ACTION_WARM           1U   /* Warm reset system */
17#define SC_TIMER_WDOG_ACTION_COLD           2U   /* Cold reset system */
18#define SC_TIMER_WDOG_ACTION_BOARD          3U   /* Reset board */
19#define SC_TIMER_WDOG_ACTION_IRQ            4U   /* Only generate IRQs */
20
21/* Types */
22
23/*
24 * This type is used to configure the watchdog action.
25 */
26typedef u8 sc_timer_wdog_action_t;
27
28/*
29 * This type is used to declare a watchdog time value in milliseconds.
30 */
31typedef u32 sc_timer_wdog_time_t;
32
33#endif /* SC_TIMER_API_H */
34