8 #define __SIMPLE_DEVICE__
22 #include <soc/iomap.h>
23 #include <soc/pci_devs.h>
25 #include <soc/smbus.h>
26 #include <soc/soc_chip.h>
35 static const char *
const smi_sts_bits[] = {
67 static const char *
const tco_sts_bits[] = {
94 static const char *
const gpe_sts_bits[] = {
105 [15] =
"GPIO Tier-2",
122 disb_val |= (
DISB >> 16);
int acpi_pm_state_for_rtc(const struct chipset_power_state **ps)
#define SMI_ON_SLP_EN_STS_BIT
#define LEGACY_USB_STS_BIT
#define PCI_EXP_SMI_STS_BIT
#define GPIO_UNLOCK_SMI_STS_BIT
#define SMBUS_SMI_STS_BIT
#define SERIRQ_SMI_STS_BIT
#define SWSMI_TMR_STS_BIT
static void write8(void *addr, uint8_t val)
static uint32_t read32(const void *addr)
static uint8_t read8(const void *addr)
#define printk(level,...)
#define clrbits8(addr, clear)
#define PCH_PWRM_BASE_ADDRESS
#define ACPI_BASE_ADDRESS
#define SLEEP_AFTER_POWER_FAIL
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
static int prev_sleep_state(const struct chipset_power_state *ps)
const char *const * soc_std_gpe_sts_array(size_t *a)
uint16_t get_pmbase(void)
void soc_get_gpi_gpe_configs(uint8_t *dw0, uint8_t *dw1, uint8_t *dw2)
const char *const * soc_smi_sts_array(size_t *a)
void pmc_soc_set_afterg3_en(const bool on)
uint8_t * pmc_mmio_regs(void)
int soc_get_rtc_failed(void)
int vbnv_cmos_failed(void)
uint32_t * soc_pmc_etr_addr(void)
int soc_prev_sleep_state(const struct chipset_power_state *ps, int prev_sleep_state)
const char *const * soc_tco_sts_array(size_t *a)
void soc_fill_power_state(struct chipset_power_state *ps)
uintptr_t soc_read_pmc_base(void)
uint16_t tco_read_reg(uint16_t tco_reg)
static int rtc_failed(uint32_t gen_pmcon_b)
static int deep_s3_enabled(void)
static void clear_rtc_failed(void)
static int check_rtc_failed(uint32_t gen_pmcon_b)
static struct tegra_pmc_regs * pmc