xref: /aosp_15_r20/external/coreboot/src/soc/samsung/common/include/soc/wakeup.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef SOC_SAMSUNG_COMMON_INCLUDE_SOC_WAKEUP_H
4 #define SOC_SAMSUNG_COMMON_INCLUDE_SOC_WAKEUP_H
5 
6 /* Power Down Modes */
7 #define S5P_CHECK_SLEEP	0x00000BAD
8 #define S5P_CHECK_DIDLE	0xBAD00000
9 #define S5P_CHECK_LPA	0xABAD0000
10 
11 enum {
12 	// A normal boot (not suspend/resume)
13 	IS_NOT_WAKEUP,
14 	// A wake up event that can be resumed any time
15 	WAKEUP_DIRECT,
16 	// A wake up event that must be resumed only after
17 	// clock and memory controllers are re-initialized
18 	WAKEUP_NEED_CLOCK_RESET,
19 };
20 
21 int wakeup_need_reset(void);
22 int get_wakeup_state(void);
23 void wakeup(void);
24 void wakeup_enable_uart(void);
25 
26 #endif	/* SOC_SAMSUNG_COMMON_INCLUDE_SOC_WAKEUP_H */
27