coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <device/mmio.h>
#include <console/console.h>
#include <soc/addressmap.h>
#include <soc/clock.h>
#include <soc/flow.h>
#include <soc/pmc.h>
#include <soc/power.h>
Go to the source code of this file.
Functions | |
static int | partition_powered (int id) |
static int | partition_clamp_on (int id) |
static void | power_ungate_partition (uint32_t id) |
void | power_enable_and_ungate_cpu (void) |
int | power_reset_status (void) |
void | ram_repair (void) |
Variables | |
static struct tegra_pmc_regs *const | pmc = (void *)TEGRA_PMC_BASE |
static struct flow_ctlr *const | flow = (void *)TEGRA_FLOW_BASE |
|
static |
Definition at line 19 of file power.c.
References tegra_pmc_regs::clamp_status, pmc, and read32().
Referenced by power_ungate_partition().
|
static |
Definition at line 14 of file power.c.
References pmc, tegra_pmc_regs::pwrgate_status, and read32().
Referenced by power_ungate_partition().
Definition at line 52 of file power.c.
References tegra_pmc_regs::cntrl, tegra_pmc_regs::cpupwrgood_timer, pmc, PMC_CNTRL_CPUPWRREQ_OE, PMC_CNTRL_CPUPWRREQ_POLARITY, POWER_PARTID_C0NC, POWER_PARTID_CE0, POWER_PARTID_CRAIL, power_ungate_partition(), read32(), TEGRA_PCLK_KHZ, and write32().
Referenced by run_next_stage().
int power_reset_status | ( | void | ) |
Definition at line 74 of file power.c.
References pmc, read32(), and tegra_pmc_regs::rst_status.
Referenced by romstage().
Definition at line 24 of file power.c.
References BIOS_DEBUG, BIOS_INFO, partition_clamp_on(), partition_powered(), pmc, PMC_PWRGATE_TOGGLE_PARTID_MASK, PMC_PWRGATE_TOGGLE_PARTID_SHIFT, PMC_PWRGATE_TOGGLE_START, printk, tegra_pmc_regs::pwrgate_toggle, read32(), and write32().
Referenced by enable_cpu_power_partitions(), power_enable_and_ungate_cpu(), soc_configure_ape(), and soc_configure_host1x().
Definition at line 79 of file power.c.
References flow, flow_ctlr::ram_repair, flow_ctlr::ram_repair_cluster1, RAM_REPAIR_REQ, RAM_REPAIR_STS, read32(), and setbits32.
|
static |
Definition at line 12 of file power.c.
Referenced by ram_repair().
|
static |
Definition at line 11 of file power.c.
Referenced by partition_clamp_on(), partition_powered(), power_enable_and_ungate_cpu(), power_reset_status(), and power_ungate_partition().