coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
power.c File Reference
#include <device/mmio.h>
#include <halt.h>
#include <soc/dmc.h>
#include <soc/power.h>
#include <soc/setup.h>
Include dependency graph for power.c:

Go to the source code of this file.

Functions

static void ps_hold_setup (void)
 
void power_reset (void)
 Perform a software reset. More...
 
void power_shutdown (void)
 Power off the system; it should never return. More...
 
void power_enable_dp_phy (void)
 
void power_enable_hw_thermal_trip (void)
 
uint32_t power_read_reset_status (void)
 
void power_exit_wakeup (void)
 
int power_init (void)
 
void power_enable_xclkout (void)
 
void power_release_uart_retention (void)
 

Function Documentation

◆ power_enable_dp_phy()

void power_enable_dp_phy ( void  )

Definition at line 36 of file power.c.

References exynos5_power::dptx_phy_control, EXYNOS_DP_PHY_ENABLE, exynos_power, and setbits32.

Referenced by dp_controller_init().

Here is the caller graph for this function:

◆ power_enable_hw_thermal_trip()

void power_enable_hw_thermal_trip ( void  )

Definition at line 41 of file power.c.

References exynos_power, POWER_ENABLE_HW_TRIP, exynos5_power::ps_hold_ctrl, and setbits32.

Referenced by tmu_setup_parameters().

Here is the caller graph for this function:

◆ power_enable_xclkout()

void power_enable_xclkout ( void  )

Definition at line 65 of file power.c.

References clrsetbits32, exynos_power, exynos5_power::pmu_debug, PMU_DEBUG_CLKOUT_SEL_MASK, and PMU_DEBUG_XXTI.

Referenced by mainboard_enable().

Here is the caller graph for this function:

◆ power_exit_wakeup()

void power_exit_wakeup ( void  )

Definition at line 52 of file power.c.

References exynos_power, exynos5_power::inform0, and void().

Referenced by wakeup().

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

◆ power_init()

int power_init ( void  )

Definition at line 59 of file power.c.

References ps_hold_setup().

Referenced by setup_power(), and wakeup().

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

◆ power_read_reset_status()

uint32_t power_read_reset_status ( void  )

Definition at line 47 of file power.c.

References exynos_power, and exynos5_power::inform1.

Referenced by get_wakeup_state().

Here is the caller graph for this function:

◆ power_release_uart_retention()

void power_release_uart_retention ( void  )

Definition at line 72 of file power.c.

References exynos_power, exynos5_power::padret_uart_opt, and write32().

Referenced by wakeup_enable_uart().

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

◆ power_reset()

void power_reset ( void  )

Perform a software reset.

Definition at line 19 of file power.c.

References exynos_power, exynos5_power::inform1, setbits32, and exynos5_power::sw_reset.

Referenced by wakeup().

Here is the caller graph for this function:

◆ power_shutdown()

void power_shutdown ( void  )

Power off the system; it should never return.

Definition at line 28 of file power.c.

References clrbits32, exynos_power, halt(), POWER_PS_HOLD_CONTROL_DATA_HIGH, and exynos5_power::ps_hold_ctrl.

Here is the call graph for this function:

◆ ps_hold_setup()

static void ps_hold_setup ( void  )
static

Definition at line 12 of file power.c.

References exynos_power, POWER_PS_HOLD_CONTROL_DATA_HIGH, exynos5_power::ps_hold_ctrl, and setbits32.

Referenced by power_init().

Here is the caller graph for this function: