coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci.h>
#include <console/console.h>
#include <soc/gpio.h>
#include <soc/pm.h>
#include <soc/smm.h>
Go to the source code of this file.
Functions | |
static void | setup_gpios (const struct soc_gpio_map *gpios, const struct gpio_bank *bank) |
static void | setup_gpio_route (const struct soc_gpio_map *sus, const struct soc_gpio_map *core) |
static void | setup_dirqs (const u8 dirq[GPIO_MAX_DIRQS], const struct gpio_bank *bank) |
void | setup_soc_gpios (struct soc_gpio_config *config, u8 enable_xdp_tap) |
struct soc_gpio_config *__weak | mainboard_get_gpios (void) |
Variables | |
static const u8 | gpncore_gpio_to_pad [GPNCORE_COUNT] |
static const u8 | gpscore_gpio_to_pad [GPSCORE_COUNT] |
static const u8 | gpssus_gpio_to_pad [GPSSUS_COUNT] |
static const struct gpio_bank | gpncore_bank |
static const struct gpio_bank | gpscore_bank |
static const struct gpio_bank | gpssus_bank |
struct soc_gpio_config* __weak mainboard_get_gpios | ( | void | ) |
Definition at line 226 of file gpio.c.
References BIOS_DEBUG, NULL, and printk.
Definition at line 183 of file gpio.c.
References BIOS_DEBUG, gpio_bank::pad_base, PAD_BASE_DIRQ_OFFSET, printk, val, and write32().
Referenced by setup_soc_gpios().
|
static |
Definition at line 160 of file gpio.c.
References ROUTE_SCI, ROUTE_SMI, soc_gpio_map::sci, soc_gpio_map::smi, SMM_SAVE_PARAM_GPIO_ROUTE, and smm_southcluster_save_param().
Referenced by setup_soc_gpios().
|
static |
Definition at line 72 of file gpio.c.
References BIOS_DEBUG, config, GP_LEGACY_BASE_NONE, soc_gpio_map::gp_lvl, gpio_bank::gpio_count, gpio_bank::gpio_f1_range_start, GPIO_LIST_END, gpio_bank::gpio_to_pad, gpio_bank::has_wake_en, soc_gpio_map::io_sel, gpio_bank::legacy_base, LEGACY_GP_LVL_REG, LEGACY_IO_SEL_REG, LEGACY_TNE_REG, LEGACY_TPE_REG, LEGACY_TS_REG, LEGACY_USE_SEL_REG, LEGACY_WAKE_EN_REG, outl(), gpio_bank::pad_base, soc_gpio_map::pad_conf0, PAD_CONF0_REG, PAD_CONF1_REG, PAD_FUNC0, PAD_FUNC1, PAD_VAL_REG, printk, soc_gpio_map::tne, soc_gpio_map::tpe, soc_gpio_map::use_sel, soc_gpio_map::wake_en, and write32().
Referenced by setup_soc_gpios().
void setup_soc_gpios | ( | struct soc_gpio_config * | config, |
u8 | enable_xdp_tap | ||
) |
Definition at line 202 of file gpio.c.
References BIOS_DEBUG, config, gpncore_bank, gpscore_bank, gpssus_bank, GPSSUS_PAD_BASE, printk, setup_dirqs(), setup_gpio_route(), setup_gpios(), and write32().
Referenced by baytrail_init_pre_device(), and soc_init_pre_device().
|
static |
Definition at line 33 of file gpio.c.
Referenced by setup_soc_gpios().
|
static |
|
static |
Definition at line 33 of file gpio.c.
Referenced by setup_soc_gpios().
|
static |
|
static |
Definition at line 33 of file gpio.c.
Referenced by setup_soc_gpios().
|
static |