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

Go to the source code of this file.

Data Structures

struct  exynos5_power
 

Macros

#define MIPI_PHY1_CONTROL_ENABLE   (1 << 0)
 
#define MIPI_PHY1_CONTROL_M_RESETN   (1 << 2)
 
#define POWER_USB_PHY_CTRL_EN   (1 << 0)
 
#define POWER_PS_HOLD_CONTROL_DATA_HIGH   (1 << 8)
 
#define POWER_ENABLE_HW_TRIP   (1UL << 31)
 
#define EXYNOS_DP_PHY_ENABLE   (1 << 0)
 
#define PMU_DEBUG_XXTI   0x1000
 
#define PMU_DEBUG_CLKOUT_SEL_MASK   0x1f00
 

Functions

void power_enable_hw_thermal_trip (void)
 
 check_member (exynos5_power, ps_hold_ctrl, 0x330c)
 
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)
 
int power_init (void)
 
uint32_t power_read_reset_status (void)
 
void power_exit_wakeup (void)
 
void power_enable_xclkout (void)
 
void power_release_uart_retention (void)
 

Variables

struct exynos5_power __packed
 
static struct exynos5_power *const exynos_power = (void *)EXYNOS5_POWER_BASE
 

Macro Definition Documentation

◆ EXYNOS_DP_PHY_ENABLE

#define EXYNOS_DP_PHY_ENABLE   (1 << 0)

Definition at line 20 of file power.h.

◆ MIPI_PHY1_CONTROL_ENABLE

#define MIPI_PHY1_CONTROL_ENABLE   (1 << 0)

Definition at line 13 of file power.h.

◆ MIPI_PHY1_CONTROL_M_RESETN

#define MIPI_PHY1_CONTROL_M_RESETN   (1 << 2)

Definition at line 14 of file power.h.

◆ PMU_DEBUG_CLKOUT_SEL_MASK

#define PMU_DEBUG_CLKOUT_SEL_MASK   0x1f00

Definition at line 25 of file power.h.

◆ PMU_DEBUG_XXTI

#define PMU_DEBUG_XXTI   0x1000

Definition at line 23 of file power.h.

◆ POWER_ENABLE_HW_TRIP

#define POWER_ENABLE_HW_TRIP   (1UL << 31)

Definition at line 18 of file power.h.

◆ POWER_PS_HOLD_CONTROL_DATA_HIGH

#define POWER_PS_HOLD_CONTROL_DATA_HIGH   (1 << 8)

Definition at line 17 of file power.h.

◆ POWER_USB_PHY_CTRL_EN

#define POWER_USB_PHY_CTRL_EN   (1 << 0)

Definition at line 16 of file power.h.

Function Documentation

◆ check_member()

check_member ( exynos5_power  ,
ps_hold_ctrl  ,
0x330c   
)

◆ power_enable_dp_phy()

void power_enable_dp_phy ( void  )

Definition at line 42 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 47 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 71 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 58 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 65 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 53 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 78 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 20 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 34 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:

Variable Documentation

◆ __packed

◆ exynos_power