coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mainboard.c File Reference
Include dependency graph for mainboard.c:

Go to the source code of this file.

Functions

static void init_gpios (void)
 
static void pirq_setup (void)
 
static void mainboard_enable (struct device *dev)
 

Variables

static const u8 mainboard_intr_data []
 
struct chip_operations mainboard_ops
 

Function Documentation

◆ init_gpios()

static void init_gpios ( void  )
static

GPIO32 Pcie Device DeAssert for APU GPIO25 Pcie LAN, APU GPP2 GPIO02 MINIPCIE SLOT1, APU GPP3 GPIO50 Pcie Device DeAssert for Hudson Southbridge GPIO05 Express Card, SB GPP0 GPIO26 NEC USB3.0GPPUSB, SB GPP1 GPIO00 MINIPCIE SLOT2, SB GPP2 GPIO05 Pcie X1 Slot, SB GPP3

Definition at line 22 of file mainboard.c.

References gpio_100_write8(), iomux_read8(), iomux_write8(), pm_read8(), and pm_write8().

Referenced by mainboard_enable().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mainboard_enable()

static void mainboard_enable ( struct device dev)
static

Definition at line 58 of file mainboard.c.

References init_gpios(), pirq_setup(), and pm_write8().

Here is the call graph for this function:

◆ pirq_setup()

static void pirq_setup ( void  )
static

Definition at line 50 of file mainboard.c.

References intr_data_ptr, and mainboard_intr_data.

Referenced by mainboard_enable().

Here is the caller graph for this function:

Variable Documentation

◆ mainboard_intr_data

const u8 mainboard_intr_data[]
static
Initial value:
= {
[0x00] = 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
[0x08] = 0x00, 0x00, 0x00, 0x00, 0x1F, 0x1F, 0x1F, 0x1F,
[0x10] = 0x09, 0x1F, 0x1F, 0x10, 0x1F, 0x12, 0x1F, 0x00,
[0x18] = 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
[0x20] = 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x00, 0x00,
[0x28] = 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
[0x30] = 0x12, 0x11, 0x12, 0x11, 0x12, 0x11, 0x12, 0x00,
[0x38] = 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
[0x40] = 0x11, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
[0x48] = 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
[0x50] = 0x10, 0x11, 0x12, 0x13
}

Definition at line 8 of file mainboard.c.

Referenced by pirq_setup().

◆ mainboard_ops

struct chip_operations mainboard_ops
Initial value:
= {
.enable_dev = mainboard_enable,
}
static void mainboard_enable(struct device *dev)
Definition: mainboard.c:58

Definition at line 58 of file mainboard.c.