coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
southbridge.h File Reference
#include <types.h>
#include <device/device.h>
#include <device/pci_def.h>
#include <soc/iomap.h>
Include dependency graph for southbridge.h:

Go to the source code of this file.

Data Structures

struct  aoac_devs
 

Macros

#define PM_PCI_CTRL   0x08
 
#define FORCE_SLPSTATE_RETRY   BIT(25)
 
#define FORCE_STPCLK_RETRY   BIT(24)
 
#define PWR_RESET_CFG   0x10
 
#define TOGGLE_ALL_PWR_GOOD   BIT(1)
 
#define PM_SERIRQ_CONF   0x54
 
#define PM_SERIRQ_NUM_BITS_17   0x0000
 
#define PM_SERIRQ_NUM_BITS_18   0x0004
 
#define PM_SERIRQ_NUM_BITS_19   0x0008
 
#define PM_SERIRQ_NUM_BITS_20   0x000c
 
#define PM_SERIRQ_NUM_BITS_21   0x0010
 
#define PM_SERIRQ_NUM_BITS_22   0x0014
 
#define PM_SERIRQ_NUM_BITS_23   0x0018
 
#define PM_SERIRQ_NUM_BITS_24   0x001c
 
#define PM_SERIRQ_MODE   BIT(6)
 
#define PM_SERIRQ_ENABLE   BIT(7)
 
#define PM_EVT_BLK   0x60
 
#define WAK_STS   BIT(15) /*AcpiPmEvtBlkx00 Pm1Status */
 
#define PCIEXPWAK_STS   BIT(14)
 
#define RTC_STS   BIT(10)
 
#define PWRBTN_STS   BIT(8)
 
#define GBL_STS   BIT(5)
 
#define BM_STS   BIT(4)
 
#define TIMER_STS   BIT(0)
 
#define PCIEXPWAK_DIS   BIT(14) /*AcpiPmEvtBlkx02 Pm1Enable */
 
#define RTC_EN   BIT(10)
 
#define PWRBTN_EN   BIT(8)
 
#define GBL_EN   BIT(5)
 
#define TIMER_STS   BIT(0)
 
#define PM1_CNT_BLK   0x62
 
#define PM_TMR_BLK   0x64
 
#define PM_CPU_CTRL   0x66
 
#define PM_GPE0_BLK   0x68
 
#define PM_ACPI_SMI_CMD   0x6a
 
#define PM_ACPI_CONF   0x74
 
#define PM_ACPI_DECODE_STD   BIT(0)
 
#define PM_ACPI_GLOBAL_EN   BIT(1)
 
#define PM_ACPI_RTC_EN_EN   BIT(2)
 
#define PM_ACPI_TIMER_EN_EN   BIT(4)
 
#define PM_ACPI_MASK_ARB_DIS   BIT(6)
 
#define PM_ACPI_BIOS_RLS   BIT(7)
 
#define PM_ACPI_PWRBTNEN_EN   BIT(8)
 
#define PM_ACPI_REDUCED_HW_EN   BIT(9)
 
#define PM_ACPI_BLOCK_PCIE_PME   BIT(24)
 
#define PM_ACPI_PCIE_WAK_MASK   BIT(25)
 
#define PM_ACPI_WAKE_AS_GEVENT   BIT(27)
 
#define PM_ACPI_NB_PME_GEVENT   BIT(28)
 
#define PM_ACPI_RTC_WAKE_EN   BIT(29)
 
#define PM_PCIB_CFG   0xea
 
#define PM_GENINT_DISABLE   BIT(0)
 
#define PM_LPC_GATING   0xec
 
#define PM_LPC_AB_NO_BYPASS_EN   BIT(2)
 
#define PM_LPC_A20_EN   BIT(1)
 
#define PM_LPC_ENABLE   BIT(0)
 
#define PM_USB_ENABLE   0xef
 
#define PM_USB_ALL_CONTROLLERS   0x7f
 
#define GPP_CLK_CNTRL   0x00
 
#define GPP_CLK2_REQ_MAP_SHIFT   8
 
#define GPP_CLK2_REQ_MAP_MASK   (0xf << GPP_CLK2_REQ_MAP_SHIFT)
 
#define GPP_CLK2_REQ_MAP_CLK_REQ2   3
 
#define GPP_CLK0_REQ_MAP_SHIFT   0
 
#define GPP_CLK0_REQ_MAP_MASK   (0xf << GPP_CLK0_REQ_MAP_SHIFT)
 
#define GPP_CLK0_REQ_MAP_CLK_REQ0   1
 
#define MISC_CGPLL_CONFIG1   0x08
 
#define CG1PLL_SPREAD_SPECTRUM_ENABLE   BIT(0)
 
#define MISC_CGPLL_CONFIG3   0x10
 
#define CG1PLL_REFDIV_SHIFT   0
 
#define CG1PLL_REFDIV_MASK   (0x3ff << CG1PLL_REFDIV_SHIFT)
 
#define CG1PLL_FBDIV_SHIFT   10
 
#define CG1PLL_FBDIV_MASK   (0xfff << CG1PLL_FBDIV_SHIFT)
 
#define MISC_CGPLL_CONFIG4   0x14
 
#define SS_STEP_SIZE_DSFRAC_SHIFT   0
 
#define SS_STEP_SIZE_DSFRAC_MASK   (0xffff << SS_STEP_SIZE_DSFRAC_SHIFT)
 
#define SS_AMOUNT_DSFRAC_SHIFT   16
 
#define SS_AMOUNT_DSFRAC_MASK   (0xffff << SS_AMOUNT_DSFRAC_SHIFT)
 
#define MISC_CGPLL_CONFIG5   0x18
 
#define SS_AMOUNT_NFRAC_SLIP_SHIFT   8
 
#define SS_AMOUNT_NFRAC_SLIP_MASK   (0xf << SS_AMOUNT_NFRAC_SLIP_SHIFT)
 
#define MISC_CGPLL_CONFIG6   0x1c
 
#define CG1PLL_LF_MODE_SHIFT   9
 
#define CG1PLL_LF_MODE_MASK   (0x1ff << CG1PLL_LF_MODE_SHIFT)
 
#define MISC_CLK_CNTL1   0x40
 
#define CG1PLL_FBDIV_TEST   BIT(26)
 
#define OSCOUT1_CLK_OUTPUT_ENB   BIT(2) /* 0 = Enabled, 1 = Disabled */
 
#define OSCOUT2_CLK_OUTPUT_ENB   BIT(7) /* 0 = Enabled, 1 = Disabled */
 
#define XHCI_PM_INDIRECT_INDEX   0x48
 
#define XHCI_PM_INDIRECT_DATA   0x4c
 
#define XHCI_OVER_CURRENT_CONTROL   0x30
 
#define USB_OC0   0
 
#define USB_OC1   1
 
#define USB_OC2   2
 
#define USB_OC3   3
 
#define USB_OC4   4
 
#define USB_OC5   5
 
#define USB_OC6   6
 
#define USB_OC7   7
 
#define USB_OC_DISABLE   0xf
 
#define USB_OC_DISABLE_ALL   0xffff
 
#define OC_PORT0_SHIFT   0
 
#define OC_PORT1_SHIFT   4
 
#define OC_PORT2_SHIFT   8
 
#define OC_PORT3_SHIFT   12
 
#define EHCI_OVER_CURRENT_CONTROL   0x70
 
#define EHCI_HUB_CONFIG4   0x90
 
#define DEBUG_PORT_SELECT_SHIFT   16
 
#define DEBUG_PORT_ENABLE   BIT(18)
 
#define DEBUG_PORT_MASK   (BIT(16) | BIT(17) | BIT(18))
 
#define PM1_LIMIT   16
 
#define GPE0_LIMIT   28
 
#define TOTAL_BITS(a)   (8 * sizeof(a))
 
#define SATA_MISC_CONTROL_REG   0x40
 
#define SATA_MISC_SUBCLASS_WREN   BIT(0)
 
#define SATA_CAPABILITIES_REG   0xfc
 
#define SATA_CAPABILITY_SPM   BIT(12)
 
#define PSP_MAILBOX_BAR   PCI_BASE_ADDRESS_4 /* BKDG: "BAR3" */
 
#define PSP_BAR_ENABLES   0x48
 
#define BAR3HIDE   BIT(12) /* Bit to hide BAR3 addr */
 
#define PSP_MAILBOX_BAR_EN   BIT(4)
 
#define XHCI_FW_SIG_OFFSET   0xc
 
#define XHCI_FW_ADDR_OFFSET   0x6
 
#define XHCI_FW_SIZE_OFFSET   0x8
 
#define XHCI_FW_BOOTRAM_SIZE   0x8000
 

Typedefs

typedef struct aoac_devs aoac_devs_t
 

Functions

void soc_enable_psp_early (void)
 
void bootblock_fch_early_init (void)
 
void bootblock_fch_init (void)
 
void fch_init (void *chip_info)
 
void fch_final (void *chip_info)
 
void enable_aoac_devices (void)
 
void fch_clk_output_48Mhz (u32 osc)
 
int mainboard_get_xhci_oc_map (uint16_t *usb_oc_map)
 
int mainboard_get_ehci_oc_map (uint16_t *usb_oc_map)
 

Macro Definition Documentation

◆ BAR3HIDE

#define BAR3HIDE   BIT(12) /* Bit to hide BAR3 addr */

Definition at line 150 of file southbridge.h.

◆ BM_STS

#define BM_STS   BIT(4)

Definition at line 42 of file southbridge.h.

◆ CG1PLL_FBDIV_MASK

#define CG1PLL_FBDIV_MASK   (0xfff << CG1PLL_FBDIV_SHIFT)

Definition at line 91 of file southbridge.h.

◆ CG1PLL_FBDIV_SHIFT

#define CG1PLL_FBDIV_SHIFT   10

Definition at line 90 of file southbridge.h.

◆ CG1PLL_FBDIV_TEST

#define CG1PLL_FBDIV_TEST   BIT(26)

Definition at line 104 of file southbridge.h.

◆ CG1PLL_LF_MODE_MASK

#define CG1PLL_LF_MODE_MASK   (0x1ff << CG1PLL_LF_MODE_SHIFT)

Definition at line 102 of file southbridge.h.

◆ CG1PLL_LF_MODE_SHIFT

#define CG1PLL_LF_MODE_SHIFT   9

Definition at line 101 of file southbridge.h.

◆ CG1PLL_REFDIV_MASK

#define CG1PLL_REFDIV_MASK   (0x3ff << CG1PLL_REFDIV_SHIFT)

Definition at line 89 of file southbridge.h.

◆ CG1PLL_REFDIV_SHIFT

#define CG1PLL_REFDIV_SHIFT   0

Definition at line 88 of file southbridge.h.

◆ CG1PLL_SPREAD_SPECTRUM_ENABLE

#define CG1PLL_SPREAD_SPECTRUM_ENABLE   BIT(0)

Definition at line 86 of file southbridge.h.

◆ DEBUG_PORT_ENABLE

#define DEBUG_PORT_ENABLE   BIT(18)

Definition at line 130 of file southbridge.h.

◆ DEBUG_PORT_MASK

#define DEBUG_PORT_MASK   (BIT(16) | BIT(17) | BIT(18))

Definition at line 131 of file southbridge.h.

◆ DEBUG_PORT_SELECT_SHIFT

#define DEBUG_PORT_SELECT_SHIFT   16

Definition at line 129 of file southbridge.h.

◆ EHCI_HUB_CONFIG4

#define EHCI_HUB_CONFIG4   0x90

Definition at line 128 of file southbridge.h.

◆ EHCI_OVER_CURRENT_CONTROL

#define EHCI_OVER_CURRENT_CONTROL   0x70

Definition at line 127 of file southbridge.h.

◆ FORCE_SLPSTATE_RETRY

#define FORCE_SLPSTATE_RETRY   BIT(25)

Definition at line 18 of file southbridge.h.

◆ FORCE_STPCLK_RETRY

#define FORCE_STPCLK_RETRY   BIT(24)

Definition at line 19 of file southbridge.h.

◆ GBL_EN

#define GBL_EN   BIT(5)

Definition at line 47 of file southbridge.h.

◆ GBL_STS

#define GBL_STS   BIT(5)

Definition at line 41 of file southbridge.h.

◆ GPE0_LIMIT

#define GPE0_LIMIT   28

Definition at line 134 of file southbridge.h.

◆ GPP_CLK0_REQ_MAP_CLK_REQ0

#define GPP_CLK0_REQ_MAP_CLK_REQ0   1

Definition at line 84 of file southbridge.h.

◆ GPP_CLK0_REQ_MAP_MASK

#define GPP_CLK0_REQ_MAP_MASK   (0xf << GPP_CLK0_REQ_MAP_SHIFT)

Definition at line 83 of file southbridge.h.

◆ GPP_CLK0_REQ_MAP_SHIFT

#define GPP_CLK0_REQ_MAP_SHIFT   0

Definition at line 82 of file southbridge.h.

◆ GPP_CLK2_REQ_MAP_CLK_REQ2

#define GPP_CLK2_REQ_MAP_CLK_REQ2   3

Definition at line 81 of file southbridge.h.

◆ GPP_CLK2_REQ_MAP_MASK

#define GPP_CLK2_REQ_MAP_MASK   (0xf << GPP_CLK2_REQ_MAP_SHIFT)

Definition at line 80 of file southbridge.h.

◆ GPP_CLK2_REQ_MAP_SHIFT

#define GPP_CLK2_REQ_MAP_SHIFT   8

Definition at line 79 of file southbridge.h.

◆ GPP_CLK_CNTRL

#define GPP_CLK_CNTRL   0x00

Definition at line 78 of file southbridge.h.

◆ MISC_CGPLL_CONFIG1

#define MISC_CGPLL_CONFIG1   0x08

Definition at line 85 of file southbridge.h.

◆ MISC_CGPLL_CONFIG3

#define MISC_CGPLL_CONFIG3   0x10

Definition at line 87 of file southbridge.h.

◆ MISC_CGPLL_CONFIG4

#define MISC_CGPLL_CONFIG4   0x14

Definition at line 92 of file southbridge.h.

◆ MISC_CGPLL_CONFIG5

#define MISC_CGPLL_CONFIG5   0x18

Definition at line 97 of file southbridge.h.

◆ MISC_CGPLL_CONFIG6

#define MISC_CGPLL_CONFIG6   0x1c

Definition at line 100 of file southbridge.h.

◆ MISC_CLK_CNTL1

#define MISC_CLK_CNTL1   0x40

Definition at line 103 of file southbridge.h.

◆ OC_PORT0_SHIFT

#define OC_PORT0_SHIFT   0

Definition at line 122 of file southbridge.h.

◆ OC_PORT1_SHIFT

#define OC_PORT1_SHIFT   4

Definition at line 123 of file southbridge.h.

◆ OC_PORT2_SHIFT

#define OC_PORT2_SHIFT   8

Definition at line 124 of file southbridge.h.

◆ OC_PORT3_SHIFT

#define OC_PORT3_SHIFT   12

Definition at line 125 of file southbridge.h.

◆ OSCOUT1_CLK_OUTPUT_ENB

#define OSCOUT1_CLK_OUTPUT_ENB   BIT(2) /* 0 = Enabled, 1 = Disabled */

Definition at line 105 of file southbridge.h.

◆ OSCOUT2_CLK_OUTPUT_ENB

#define OSCOUT2_CLK_OUTPUT_ENB   BIT(7) /* 0 = Enabled, 1 = Disabled */

Definition at line 106 of file southbridge.h.

◆ PCIEXPWAK_DIS

#define PCIEXPWAK_DIS   BIT(14) /*AcpiPmEvtBlkx02 Pm1Enable */

Definition at line 44 of file southbridge.h.

◆ PCIEXPWAK_STS

#define PCIEXPWAK_STS   BIT(14)

Definition at line 38 of file southbridge.h.

◆ PM1_CNT_BLK

#define PM1_CNT_BLK   0x62

Definition at line 49 of file southbridge.h.

◆ PM1_LIMIT

#define PM1_LIMIT   16

Definition at line 133 of file southbridge.h.

◆ PM_ACPI_BIOS_RLS

#define PM_ACPI_BIOS_RLS   BIT(7)

Definition at line 60 of file southbridge.h.

◆ PM_ACPI_BLOCK_PCIE_PME

#define PM_ACPI_BLOCK_PCIE_PME   BIT(24)

Definition at line 63 of file southbridge.h.

◆ PM_ACPI_CONF

#define PM_ACPI_CONF   0x74

Definition at line 54 of file southbridge.h.

◆ PM_ACPI_DECODE_STD

#define PM_ACPI_DECODE_STD   BIT(0)

Definition at line 55 of file southbridge.h.

◆ PM_ACPI_GLOBAL_EN

#define PM_ACPI_GLOBAL_EN   BIT(1)

Definition at line 56 of file southbridge.h.

◆ PM_ACPI_MASK_ARB_DIS

#define PM_ACPI_MASK_ARB_DIS   BIT(6)

Definition at line 59 of file southbridge.h.

◆ PM_ACPI_NB_PME_GEVENT

#define PM_ACPI_NB_PME_GEVENT   BIT(28)

Definition at line 66 of file southbridge.h.

◆ PM_ACPI_PCIE_WAK_MASK

#define PM_ACPI_PCIE_WAK_MASK   BIT(25)

Definition at line 64 of file southbridge.h.

◆ PM_ACPI_PWRBTNEN_EN

#define PM_ACPI_PWRBTNEN_EN   BIT(8)

Definition at line 61 of file southbridge.h.

◆ PM_ACPI_REDUCED_HW_EN

#define PM_ACPI_REDUCED_HW_EN   BIT(9)

Definition at line 62 of file southbridge.h.

◆ PM_ACPI_RTC_EN_EN

#define PM_ACPI_RTC_EN_EN   BIT(2)

Definition at line 57 of file southbridge.h.

◆ PM_ACPI_RTC_WAKE_EN

#define PM_ACPI_RTC_WAKE_EN   BIT(29)

Definition at line 67 of file southbridge.h.

◆ PM_ACPI_SMI_CMD

#define PM_ACPI_SMI_CMD   0x6a

Definition at line 53 of file southbridge.h.

◆ PM_ACPI_TIMER_EN_EN

#define PM_ACPI_TIMER_EN_EN   BIT(4)

Definition at line 58 of file southbridge.h.

◆ PM_ACPI_WAKE_AS_GEVENT

#define PM_ACPI_WAKE_AS_GEVENT   BIT(27)

Definition at line 65 of file southbridge.h.

◆ PM_CPU_CTRL

#define PM_CPU_CTRL   0x66

Definition at line 51 of file southbridge.h.

◆ PM_EVT_BLK

#define PM_EVT_BLK   0x60

Definition at line 36 of file southbridge.h.

◆ PM_GENINT_DISABLE

#define PM_GENINT_DISABLE   BIT(0)

Definition at line 69 of file southbridge.h.

◆ PM_GPE0_BLK

#define PM_GPE0_BLK   0x68

Definition at line 52 of file southbridge.h.

◆ PM_LPC_A20_EN

#define PM_LPC_A20_EN   BIT(1)

Definition at line 72 of file southbridge.h.

◆ PM_LPC_AB_NO_BYPASS_EN

#define PM_LPC_AB_NO_BYPASS_EN   BIT(2)

Definition at line 71 of file southbridge.h.

◆ PM_LPC_ENABLE

#define PM_LPC_ENABLE   BIT(0)

Definition at line 73 of file southbridge.h.

◆ PM_LPC_GATING

#define PM_LPC_GATING   0xec

Definition at line 70 of file southbridge.h.

◆ PM_PCI_CTRL

#define PM_PCI_CTRL   0x08

Definition at line 17 of file southbridge.h.

◆ PM_PCIB_CFG

#define PM_PCIB_CFG   0xea

Definition at line 68 of file southbridge.h.

◆ PM_SERIRQ_CONF

#define PM_SERIRQ_CONF   0x54

Definition at line 24 of file southbridge.h.

◆ PM_SERIRQ_ENABLE

#define PM_SERIRQ_ENABLE   BIT(7)

Definition at line 34 of file southbridge.h.

◆ PM_SERIRQ_MODE

#define PM_SERIRQ_MODE   BIT(6)

Definition at line 33 of file southbridge.h.

◆ PM_SERIRQ_NUM_BITS_17

#define PM_SERIRQ_NUM_BITS_17   0x0000

Definition at line 25 of file southbridge.h.

◆ PM_SERIRQ_NUM_BITS_18

#define PM_SERIRQ_NUM_BITS_18   0x0004

Definition at line 26 of file southbridge.h.

◆ PM_SERIRQ_NUM_BITS_19

#define PM_SERIRQ_NUM_BITS_19   0x0008

Definition at line 27 of file southbridge.h.

◆ PM_SERIRQ_NUM_BITS_20

#define PM_SERIRQ_NUM_BITS_20   0x000c

Definition at line 28 of file southbridge.h.

◆ PM_SERIRQ_NUM_BITS_21

#define PM_SERIRQ_NUM_BITS_21   0x0010

Definition at line 29 of file southbridge.h.

◆ PM_SERIRQ_NUM_BITS_22

#define PM_SERIRQ_NUM_BITS_22   0x0014

Definition at line 30 of file southbridge.h.

◆ PM_SERIRQ_NUM_BITS_23

#define PM_SERIRQ_NUM_BITS_23   0x0018

Definition at line 31 of file southbridge.h.

◆ PM_SERIRQ_NUM_BITS_24

#define PM_SERIRQ_NUM_BITS_24   0x001c

Definition at line 32 of file southbridge.h.

◆ PM_TMR_BLK

#define PM_TMR_BLK   0x64

Definition at line 50 of file southbridge.h.

◆ PM_USB_ALL_CONTROLLERS

#define PM_USB_ALL_CONTROLLERS   0x7f

Definition at line 75 of file southbridge.h.

◆ PM_USB_ENABLE

#define PM_USB_ENABLE   0xef

Definition at line 74 of file southbridge.h.

◆ PSP_BAR_ENABLES

#define PSP_BAR_ENABLES   0x48

Definition at line 149 of file southbridge.h.

◆ PSP_MAILBOX_BAR

#define PSP_MAILBOX_BAR   PCI_BASE_ADDRESS_4 /* BKDG: "BAR3" */

Definition at line 147 of file southbridge.h.

◆ PSP_MAILBOX_BAR_EN

#define PSP_MAILBOX_BAR_EN   BIT(4)

Definition at line 151 of file southbridge.h.

◆ PWR_RESET_CFG

#define PWR_RESET_CFG   0x10

Definition at line 21 of file southbridge.h.

◆ PWRBTN_EN

#define PWRBTN_EN   BIT(8)

Definition at line 46 of file southbridge.h.

◆ PWRBTN_STS

#define PWRBTN_STS   BIT(8)

Definition at line 40 of file southbridge.h.

◆ RTC_EN

#define RTC_EN   BIT(10)

Definition at line 45 of file southbridge.h.

◆ RTC_STS

#define RTC_STS   BIT(10)

Definition at line 39 of file southbridge.h.

◆ SATA_CAPABILITIES_REG

#define SATA_CAPABILITIES_REG   0xfc

Definition at line 141 of file southbridge.h.

◆ SATA_CAPABILITY_SPM

#define SATA_CAPABILITY_SPM   BIT(12)

Definition at line 142 of file southbridge.h.

◆ SATA_MISC_CONTROL_REG

#define SATA_MISC_CONTROL_REG   0x40

Definition at line 138 of file southbridge.h.

◆ SATA_MISC_SUBCLASS_WREN

#define SATA_MISC_SUBCLASS_WREN   BIT(0)

Definition at line 139 of file southbridge.h.

◆ SS_AMOUNT_DSFRAC_MASK

#define SS_AMOUNT_DSFRAC_MASK   (0xffff << SS_AMOUNT_DSFRAC_SHIFT)

Definition at line 96 of file southbridge.h.

◆ SS_AMOUNT_DSFRAC_SHIFT

#define SS_AMOUNT_DSFRAC_SHIFT   16

Definition at line 95 of file southbridge.h.

◆ SS_AMOUNT_NFRAC_SLIP_MASK

#define SS_AMOUNT_NFRAC_SLIP_MASK   (0xf << SS_AMOUNT_NFRAC_SLIP_SHIFT)

Definition at line 99 of file southbridge.h.

◆ SS_AMOUNT_NFRAC_SLIP_SHIFT

#define SS_AMOUNT_NFRAC_SLIP_SHIFT   8

Definition at line 98 of file southbridge.h.

◆ SS_STEP_SIZE_DSFRAC_MASK

#define SS_STEP_SIZE_DSFRAC_MASK   (0xffff << SS_STEP_SIZE_DSFRAC_SHIFT)

Definition at line 94 of file southbridge.h.

◆ SS_STEP_SIZE_DSFRAC_SHIFT

#define SS_STEP_SIZE_DSFRAC_SHIFT   0

Definition at line 93 of file southbridge.h.

◆ TIMER_STS [1/2]

#define TIMER_STS   BIT(0)

Definition at line 48 of file southbridge.h.

◆ TIMER_STS [2/2]

#define TIMER_STS   BIT(0)

Definition at line 48 of file southbridge.h.

◆ TOGGLE_ALL_PWR_GOOD

#define TOGGLE_ALL_PWR_GOOD   BIT(1)

Definition at line 22 of file southbridge.h.

◆ TOTAL_BITS

#define TOTAL_BITS (   a)    (8 * sizeof(a))

Definition at line 135 of file southbridge.h.

◆ USB_OC0

#define USB_OC0   0

Definition at line 112 of file southbridge.h.

◆ USB_OC1

#define USB_OC1   1

Definition at line 113 of file southbridge.h.

◆ USB_OC2

#define USB_OC2   2

Definition at line 114 of file southbridge.h.

◆ USB_OC3

#define USB_OC3   3

Definition at line 115 of file southbridge.h.

◆ USB_OC4

#define USB_OC4   4

Definition at line 116 of file southbridge.h.

◆ USB_OC5

#define USB_OC5   5

Definition at line 117 of file southbridge.h.

◆ USB_OC6

#define USB_OC6   6

Definition at line 118 of file southbridge.h.

◆ USB_OC7

#define USB_OC7   7

Definition at line 119 of file southbridge.h.

◆ USB_OC_DISABLE

#define USB_OC_DISABLE   0xf

Definition at line 120 of file southbridge.h.

◆ USB_OC_DISABLE_ALL

#define USB_OC_DISABLE_ALL   0xffff

Definition at line 121 of file southbridge.h.

◆ WAK_STS

#define WAK_STS   BIT(15) /*AcpiPmEvtBlkx00 Pm1Status */

Definition at line 37 of file southbridge.h.

◆ XHCI_FW_ADDR_OFFSET

#define XHCI_FW_ADDR_OFFSET   0x6

Definition at line 175 of file southbridge.h.

◆ XHCI_FW_BOOTRAM_SIZE

#define XHCI_FW_BOOTRAM_SIZE   0x8000

Definition at line 177 of file southbridge.h.

◆ XHCI_FW_SIG_OFFSET

#define XHCI_FW_SIG_OFFSET   0xc

Definition at line 174 of file southbridge.h.

◆ XHCI_FW_SIZE_OFFSET

#define XHCI_FW_SIZE_OFFSET   0x8

Definition at line 176 of file southbridge.h.

◆ XHCI_OVER_CURRENT_CONTROL

#define XHCI_OVER_CURRENT_CONTROL   0x30

Definition at line 111 of file southbridge.h.

◆ XHCI_PM_INDIRECT_DATA

#define XHCI_PM_INDIRECT_DATA   0x4c

Definition at line 110 of file southbridge.h.

◆ XHCI_PM_INDIRECT_INDEX

#define XHCI_PM_INDIRECT_INDEX   0x48

Definition at line 109 of file southbridge.h.

Typedef Documentation

◆ aoac_devs_t

typedef struct aoac_devs aoac_devs_t

Function Documentation

◆ bootblock_fch_early_init()

◆ bootblock_fch_init()

void bootblock_fch_init ( void  )

Definition at line 145 of file early_fch.c.

References fch_print_pmxc0_status(), pm_set_power_failure_state(), and show_spi_speeds_and_modes().

Referenced by bootblock_soc_init().

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

◆ enable_aoac_devices()

void enable_aoac_devices ( void  )

Definition at line 41 of file aoac.c.

References ARRAY_SIZE, CONFIG, FCH_AOAC_UART_FOR_CONSOLE, is_aoac_device_enabled(), power_on_aoac_device(), udelay(), and wait_for_aoac_enabled().

Referenced by bootblock_fch_early_init(), fch_pre_init(), and verstage_soc_aoac_init().

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

◆ fch_clk_output_48Mhz()

void fch_clk_output_48Mhz ( u32  osc)

Definition at line 152 of file early_fch.c.

References MISC_CLK_CNTL1, misc_read32(), misc_write32(), OSCOUT1_CLK_OUTPUT_ENB, and OSCOUT2_CLK_OUTPUT_ENB.

Here is the call graph for this function:

◆ fch_final()

void fch_final ( void chip_info)

Definition at line 304 of file fch.c.

References acpi_get_gnvs(), global_nvs::aoac, gnvs, set_sb_aoac(), and set_sb_gnvs().

Here is the call graph for this function:

◆ fch_init()

void fch_init ( void chip_info)

Definition at line 290 of file fch.c.

References acpi_pm_gpe_add_events_print_events(), al2ahb_clock_gate(), cgpll_clock_gate_init(), fch_clk_output_48Mhz(), fch_init_acpi_ports(), fch_init_resets(), gpio_add_events(), gpp_clk_setup(), i2c_soc_init(), and sb_rfmux_config_override().

Referenced by soc_init().

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

◆ mainboard_get_ehci_oc_map()

int mainboard_get_ehci_oc_map ( uint16_t usb_oc_map)

Definition at line 156 of file mainboard.c.

References BIOS_DEBUG, printk, and variant_get_ehci_oc_map().

Referenced by set_usb_over_current().

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

◆ mainboard_get_xhci_oc_map()

int mainboard_get_xhci_oc_map ( uint16_t usb_oc_map)

Definition at line 151 of file mainboard.c.

References BIOS_DEBUG, printk, and variant_get_xhci_oc_map().

Referenced by set_usb_over_current().

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

◆ soc_enable_psp_early()

void soc_enable_psp_early ( void  )