![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci.h>
#include <soc/gpio.h>
#include <soc/pm.h>
#include <soc/smm.h>
Go to the source code of this file.
Macros | |
#define | GPIO_DEBUG |
Functions | |
static void | setup_gpio_route (const struct soc_gpio_map *sw_gpios, const struct soc_gpio_map *n_gpios) |
static void | setup_gpios (const struct soc_gpio_map *gpios, const struct gpio_bank *community) |
void | setup_soc_gpios (struct soc_gpio_config *config, u8 enable_xdp_tap) |
__weak struct soc_gpio_config * | mainboard_get_gpios (void) |
Variables | |
static const u8 | gpncommunity_gpio_to_pad [GP_NORTH_COUNT] |
static const u8 | gpsecommunity_gpio_to_pad [GP_SOUTHEAST_COUNT] |
static const u8 | gpswcommunity_gpio_to_pad [GP_SOUTHWEST_COUNT] |
static const u8 | gpecommunity_gpio_to_pad [GP_EAST_COUNT] |
static const struct gpio_bank | gpnorth_community |
static const struct gpio_bank | gpsoutheast_community |
static const struct gpio_bank | gpsouthwest_community |
static const struct gpio_bank | gpeast_community |
__weak struct soc_gpio_config* mainboard_get_gpios | ( | void | ) |
Definition at line 262 of file gpio.c.
References BIOS_DEBUG, NULL, and printk.
|
static |
Definition at line 77 of file gpio.c.
References ACPI_BASE_ADDRESS, BIOS_DEBUG, GP_NORTH_COUNT, GP_SOUTHWEST_COUNT, soc_gpio_map::gpe, GPE0A_EN_REG, GPIO_LIST_END, outl(), soc_gpio_map::pad_conf0, printk, SCI, SMI, SMM_SAVE_PARAM_GPIO_ROUTE, and smm_southcluster_save_param().
Referenced by setup_soc_gpios().
|
static |
Definition at line 157 of file gpio.c.
References BIOS_DEBUG, config, FAMILY_PAD_REGS_OFF, FAMILY_PAD_REGS_SIZE, gpio_bank::gpio_count, GPIO_INTERRUPT_MASK, GPIO_LIST_END, GPIO_REGS_SIZE, gpio_bank::gpio_to_pad, GPIO_WAKE_MASK_REG0, GPIO_WAKE_MASK_REG1, MAX_FAMILY_PAD_GPIO_NO, gpio_bank::pad_base, PAD_CONF0_REG, PAD_CONF1_REG, printk, and write32().
Referenced by setup_soc_gpios().
void setup_soc_gpios | ( | struct soc_gpio_config * | config, |
u8 | enable_xdp_tap | ||
) |
Definition at line 228 of file gpio.c.
References BIOS_DEBUG, COMMUNITY_GPSOUTHWEST_BASE, config, gpeast_community, gpnorth_community, gpsoutheast_community, gpsouthwest_community, printk, setup_gpio_route(), setup_gpios(), and write32().
|
static |
Definition at line 39 of file gpio.c.
Referenced by setup_soc_gpios().
|
static |
|
static |
|
static |
Definition at line 39 of file gpio.c.
Referenced by setup_soc_gpios().
|
static |
|
static |
Definition at line 39 of file gpio.c.
Referenced by setup_soc_gpios().
|
static |
Definition at line 39 of file gpio.c.
Referenced by setup_soc_gpios().
|
static |