coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Macros | |
#define | LPC_IOE_EC_4E_4F (1 << 13) |
#define | LPC_IOE_SUPERIO_2E_2F (1 << 12) |
#define | LPC_IOE_EC_62_66 (1 << 11) |
#define | LPC_IOE_KBC_60_64 (1 << 10) |
#define | LPC_IOE_HGE_208 (1 << 9) |
#define | LPC_IOE_LGE_200 (1 << 8) |
#define | LPC_IOE_FDD_EN (1 << 3) |
#define | LPC_IOE_LPT_EN (1 << 2) |
#define | LPC_IOE_COMB_EN (1 << 1) |
#define | LPC_IOE_COMA_EN (1 << 0) |
#define | LPC_NUM_GENERIC_IO_RANGES 4 |
#define | PCR_LPC_PRC 0x341c |
#define | PCR_LPC_CCE_EN 0xf |
#define | PCR_LPC_PCE_EN (9 << 8) |
Enumerations | |
enum | serirq_mode { SERIRQ_QUIET , SERIRQ_CONTINUOUS , SERIRQ_OFF } |
enum serirq_mode |
Definition at line 297 of file lpc_lib.c.
References LPC_PCCTL, LPC_PCCTL_CLKRUN_EN, PCH_DEV_LPC, pci_read_config8(), and pci_write_config8().
Definition at line 218 of file lpc_lib.c.
References lpc_configure_write_protect().
Definition at line 21 of file lpc_lib.c.
References CONFIG, GPMR_LPCIOE, gpmr_write32(), LPC_IO_ENABLES, PCH_DEV_LPC, pci_read_config16(), and pci_write_config16().
Referenced by bootblock_ec_init(), bootblock_soc_early_init(), lpc_io_setup_comm_a_b(), mainboard_ec_init(), mainboard_enable(), and pch_early_iorange_init().
Definition at line 292 of file lpc_lib.c.
References LPC_PCCTL, LPC_PCCTL_CLKRUN_EN, PCH_DEV_LPC, and pci_write_config8().
Referenced by lpc_soc_init(), and variant_mainboard_final().
Definition at line 212 of file lpc_lib.c.
References lpc_configure_write_protect().
Referenced by lpc_lockdown_config().
Definition at line 34 of file lpc_lib.c.
References LPC_IO_DECODE, PCH_DEV_LPC, and pci_read_config16().
Referenced by lpc_set_fixed_io_ranges().
Definition at line 326 of file lpc_lib.c.
References ARRAY_SIZE, and pch_interrupt_routing.
Referenced by generate_pin_irq_map().
Definition at line 249 of file lpc_lib.c.
References CONFIG, lpc_enable_fixed_io_ranges(), LPC_IOD_COMA_RANGE, LPC_IOD_COMA_RANGE_MASK, LPC_IOD_COMB_RANGE, LPC_IOD_COMB_RANGE_MASK, LPC_IOE_COMA_EN, LPC_IOE_COMB_EN, and lpc_set_fixed_io_ranges().
Referenced by bootblock_soc_early_init(), init_cpld(), and pch_early_iorange_init().
Definition at line 128 of file lpc_lib.c.
References base, BIOS_ERR, BIOS_WARNING, CONFIG, GPMR_LPCGMR, gpmr_write32(), LPC_GENERIC_MEM_RANGE, LPC_LGMR_ADDR_MASK, LPC_LGMR_EN, LPC_LGMR_WINDOW_SIZE, PCH_DEV_LPC, pci_read_config32(), pci_write_config32(), and printk.
Referenced by mainboard_init().
Definition at line 71 of file lpc_lib.c.
References ALIGN_UP, base, BIOS_DEBUG, BIOS_ERR, BIOS_SPEW, CONFIG, find_unused_pmio_window(), GPMR_LPCLGIR1, gpmr_write32(), log2_ceil(), LPC_GENERIC_IO_RANGE, LPC_LGIR_ADDR_MASK, LPC_LGIR_AMASK_MASK, LPC_LGIR_EN, LPC_LGIR_MAX_WINDOW_SIZE, LPC_NUM_GENERIC_IO_RANGES, MIN, PCH_DEV_LPC, pci_read_config32(), pci_write_config32(), and printk.
Referenced by bootblock_ec_init(), init_cpld(), and pch_lpc_loop_resources().
Definition at line 177 of file lpc_lib.c.
References LPC_BC_BILD, and lpc_set_bios_control_reg().
Referenced by lpc_lockdown_config().
Definition at line 193 of file lpc_lib.c.
References LPC_BC_EISS, and lpc_set_bios_control_reg().
Referenced by lpc_lockdown_config().
Definition at line 39 of file lpc_lib.c.
References CONFIG, GPMR_LPCIOD, gpmr_write32(), lpc_get_fixed_io_decode(), LPC_IO_DECODE, mask, PCH_DEV_LPC, and pci_write_config16().
Referenced by bootblock_soc_early_init(), lpc_io_setup_comm_a_b(), and pch_early_iorange_init().
Definition at line 185 of file lpc_lib.c.
References LPC_BC_LE, and lpc_set_bios_control_reg().
Referenced by lpc_lockdown_config().
void lpc_set_serirq_mode | ( | enum serirq_mode | mode | ) |
Definition at line 226 of file lpc_lib.c.
References LPC_SCNT_EN, LPC_SCNT_MODE, LPC_SERIRQ_CTL, PCH_DEV_LPC, pci_read_config8(), pci_write_config8(), SERIRQ_CONTINUOUS, SERIRQ_OFF, and SERIRQ_QUIET.
Referenced by lpc_soc_init().
Definition at line 10 of file lpc.c.
References BIOS_SPEW, config, config_of(), i8259_configure_irq_trigger(), isa_dma_init(), lpc_enable_pci_clk_cntl(), lpc_set_serirq_mode(), PCH_DEV_LPC, pch_enable_ioapic(), pch_misc_init(), pch_pirq_init(), pci_and_config8(), printk, rtc_init(), soc_intel_apollolake_config::serirq_mode, and setup_i8259().
Definition at line 307 of file lpc_lib.c.
References IO_APIC_ADDR, ioapic_set_max_vectors(), PCH_REDIR_ETR, setup_ioapic(), and VIO_APIC_VADDR.
Definition at line 282 of file lpc_lib.c.
References ENV_PAYLOAD_LOADER, LPC_NUM_GENERIC_IO_RANGES, lpc_set_gen_decode_range(), pch_pirq_init(), and soc_get_gen_io_dec_range().
void pch_lpc_add_new_resource | ( | struct device * | dev, |
uint8_t | offset, | ||
uintptr_t | base, | ||
size_t | size, | ||
unsigned long | flags | ||
) |
Definition at line 25 of file lpc.c.
References resource::base, base, resource::flags, new_resource(), offset, and resource::size.
Referenced by pch_lpc_add_io_resources(), and pch_lpc_add_mmio_resources().
Definition at line 20 of file lpc.c.
Referenced by pch_lpc_add_io_resources().
Definition at line 353 of file lpc_lib.c.
References all_devices, DEVICE_PATH_PCI, device::enabled, itss_irq_init(), device::next, device::path, pch_interrupt_routing, PCH_IRQ10, PCH_IRQ11, PCI_BDF, PCI_INTERRUPT_LINE, PCI_INTERRUPT_PIN, pci_read_config8(), pci_write_config8(), and device_path::type.
Referenced by pch_enable_lpc().
Definition at line 23 of file espi.c.
References config, and config_of_soc.
Referenced by pch_enable_lpc().
unsigned long southbridge_write_acpi_tables | ( | const struct device * | device, |
unsigned long | current, | ||
struct acpi_rsdp * | rsdp | ||
) |
Definition at line 13 of file tables.c.
References ACPI_ACCESS_SIZE_DWORD_ACCESS, acpi_write_dbg2_pci_uart(), acpi_write_hpet(), CONFIG, and uart_get_device().