![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <device/mmio.h>
#include <assert.h>
#include <console/console.h>
#include <soc/addressmap.h>
#include <soc/pmc.h>
#include <soc/power.h>
Go to the source code of this file.
Enumerations | |
enum | { POWER_GATE = 0 , POWER_UNGATE = 1 } |
Functions | |
static int | partition_powered (int id) |
static void | power_gate_toggle_request (uint32_t id, int request) |
void | power_gate_partition (uint32_t id) |
void | power_ungate_partition (uint32_t id) |
uint8_t | pmc_rst_status (void) |
void | pmc_print_rst_status (void) |
static int | partition_clamp_on (int id) |
void | remove_clamps (int id) |
void | pmc_override_pwr_det (uint32_t bits, uint32_t override) |
Variables | |
static struct tegra_pmc_regs *const | pmc = (void *)TEGRA_PMC_BASE |
static const char *const | power_gate_string [] |
static const char * | pmc_rst_status_str [PMC_RST_STATUS_NUM_SOURCES] |
|
static |
Definition at line 95 of file power.c.
References tegra_pmc_regs::clamp_status, pmc, and read32().
Referenced by remove_clamps().
|
static |
Definition at line 17 of file power.c.
References pmc, POWER_GATE, POWER_UNGATE, tegra_pmc_regs::pwrgate_status, and read32().
Referenced by power_gate_toggle_request().
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().
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().
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().
Definition at line 64 of file power.c.
References POWER_GATE, and power_gate_toggle_request().
Referenced by powergate_unused_partitions().
Definition at line 30 of file power.c.
References BIOS_INFO, partition_powered(), pmc, PMC_PWRGATE_TOGGLE_PARTID_MASK, PMC_PWRGATE_TOGGLE_PARTID_SHIFT, PMC_PWRGATE_TOGGLE_START, power_gate_string, printk, tegra_pmc_regs::pwrgate_toggle, read32(), and write32().
Referenced by power_gate_partition(), and power_ungate_partition().
Definition at line 69 of file power.c.
References power_gate_toggle_request(), and POWER_UNGATE.
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().
|
static |
Definition at line 10 of file power.c.
Referenced by partition_clamp_on(), partition_powered(), pmc_override_pwr_det(), pmc_rst_status(), power_gate_toggle_request(), and remove_clamps().
|
static |
Definition at line 79 of file power.c.
Referenced by pmc_print_rst_status().
|
static |
Definition at line 25 of file power.c.
Referenced by power_gate_toggle_request().