coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
wakeup.h
Go to the documentation of this file.
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)
14  // A wake up event that can be resumed any time
16  // A wake up event that must be resumed only after
17  // clock and memory controllers are re-initialized
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 */
int get_wakeup_state(void)
Definition: wakeup.c:17
void wakeup_enable_uart(void)
Definition: wakeup.c:34
@ WAKEUP_DIRECT
Definition: wakeup.h:15
@ WAKEUP_NEED_CLOCK_RESET
Definition: wakeup.h:18
@ IS_NOT_WAKEUP
Definition: wakeup.h:13
void wakeup(void)
Definition: wakeup.c:6
int wakeup_need_reset(void)
Definition: wakeup.c:6