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

Go to the source code of this file.

Functions

void power_ungate_partition (uint32_t id)
 
void power_gate_partition (uint32_t id)
 
uint8_t pmc_rst_status (void)
 
void pmc_print_rst_status (void)
 
void remove_clamps (int id)
 
void pmc_override_pwr_det (uint32_t bits, uint32_t override)
 

Function Documentation

◆ pmc_override_pwr_det()

void pmc_override_pwr_det ( uint32_t  bits,
uint32_t  override 
)

Definition at line 113 of file power.c.

References pmc, tegra_pmc_regs::pwr_det_val, read32(), val, and write32().

Referenced by bootblock_mainboard_init().

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

◆ pmc_print_rst_status()

void pmc_print_rst_status ( void  )

Definition at line 87 of file power.c.

References assert, BIOS_INFO, pmc_rst_status(), PMC_RST_STATUS_NUM_SOURCES, pmc_rst_status_str, printk, and tegra_pmc_regs::rst_status.

Referenced by tegra210_main().

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

◆ pmc_rst_status()

uint8_t pmc_rst_status ( void  )

Definition at line 74 of file power.c.

References pmc, PMC_RST_STATUS_SOURCE_MASK, read32(), and tegra_pmc_regs::rst_status.

Referenced by pmc_print_rst_status().

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

◆ power_gate_partition()

void power_gate_partition ( uint32_t  id)

Definition at line 64 of file power.c.

References POWER_GATE, and power_gate_toggle_request().

Referenced by powergate_unused_partitions().

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

◆ power_ungate_partition()

void power_ungate_partition ( uint32_t  id)

Definition at line 69 of file power.c.

References power_gate_toggle_request(), and POWER_UNGATE.

Here is the call graph for this function:

◆ remove_clamps()

void remove_clamps ( int  id)

Definition at line 100 of file power.c.

References partition_clamp_on(), pmc, tegra_pmc_regs::remove_clamping_cmd, and write32().

Referenced by soc_configure_ape(), and soc_configure_host1x().

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