coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
wakeup.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define S5P_CHECK_SLEEP   0x00000BAD
 
#define S5P_CHECK_DIDLE   0xBAD00000
 
#define S5P_CHECK_LPA   0xABAD0000
 

Enumerations

enum  { IS_NOT_WAKEUP , WAKEUP_DIRECT , WAKEUP_NEED_CLOCK_RESET }
 

Functions

int wakeup_need_reset (void)
 
int get_wakeup_state (void)
 
void wakeup (void)
 
void wakeup_enable_uart (void)
 

Macro Definition Documentation

◆ S5P_CHECK_DIDLE

#define S5P_CHECK_DIDLE   0xBAD00000

Definition at line 8 of file wakeup.h.

◆ S5P_CHECK_LPA

#define S5P_CHECK_LPA   0xABAD0000

Definition at line 9 of file wakeup.h.

◆ S5P_CHECK_SLEEP

#define S5P_CHECK_SLEEP   0x00000BAD

Definition at line 7 of file wakeup.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
IS_NOT_WAKEUP 
WAKEUP_DIRECT 
WAKEUP_NEED_CLOCK_RESET 

Definition at line 11 of file wakeup.h.

Function Documentation

◆ get_wakeup_state()

int get_wakeup_state ( void  )

Definition at line 17 of file wakeup.c.

References IS_NOT_WAKEUP, power_read_reset_status(), S5P_CHECK_DIDLE, S5P_CHECK_LPA, S5P_CHECK_SLEEP, WAKEUP_DIRECT, and WAKEUP_NEED_CLOCK_RESET.

Referenced by bootblock_soc_init(), and main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wakeup()

void wakeup ( void  )

Definition at line 6 of file wakeup.c.

References dcache_mmu_disable(), power_exit_wakeup(), power_init(), power_reset(), and wakeup_need_reset().

Referenced by bootblock_soc_init(), and main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wakeup_enable_uart()

void wakeup_enable_uart ( void  )

Definition at line 34 of file wakeup.c.

References power_release_uart_retention().

Here is the call graph for this function:

◆ wakeup_need_reset()

int wakeup_need_reset ( void  )

Definition at line 6 of file wakeup.c.

References gpio_get_value(), GPIO_X06, and GPIO_Y10.

Referenced by wakeup().

Here is the call graph for this function:
Here is the caller graph for this function: