src/mb/prodrive/atlas: Add GPIOs for configuration
CLKREQ Pins are intentionally not configured, because there seems to be a current Issue with FSP, that causes pci devices to not work if CLKREQ Pins are configured by coreboot. The msi/ms7d25 mainboard seems to have a similar issue and the cause is also documented in it's gpio.c file. Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com> Change-Id: Iba35076af194de0e85de60ebc93d62fda24e9c24 Reviewed-on: https://review.coreboot.org/c/coreboot/+/72388 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
This commit is contained in:
parent
87b5fa7c9d
commit
db97c6926f
|
@ -6,43 +6,84 @@
|
|||
|
||||
/* Pad configuration in ramstage */
|
||||
static const struct pad_config gpio_table[] = {
|
||||
/*
|
||||
* Do not program virtual wire CPU CLKREQ pins, since CLKREQ of cpu rootports are not
|
||||
* connected on this mainboard.
|
||||
*/
|
||||
|
||||
/* ------- GPIO Group GPP_A ------- */
|
||||
PAD_CFG_NF(GPP_A14, NONE, DEEP, NF1), /* USB_2_3_OC_N */
|
||||
PAD_CFG_NF(GPP_A15, NONE, DEEP, NF1), /* USB_4_5_OC_N */
|
||||
PAD_CFG_NF(GPP_A16, NONE, DEEP, NF1), /* USB_6_7_OC_N */
|
||||
PAD_CFG_NF(GPP_A18, NONE, DEEP, NF1), /* DP1_HPD */
|
||||
PAD_CFG_NF(GPP_A19, NONE, DEEP, NF1), /* DP2_HPD */
|
||||
PAD_CFG_NF(GPP_A20, NONE, DEEP, NF1), /* DP3_HPD */
|
||||
PAD_NC(GPP_A23, NONE), /* ESPI_CS1 */
|
||||
PAD_NC(GPP_A7, NONE),
|
||||
PAD_NC(GPP_A12, NONE),
|
||||
PAD_CFG_NF(GPP_A14, NONE, DEEP, NF1), // USB_2_3_OC_N
|
||||
PAD_CFG_NF(GPP_A15, NONE, DEEP, NF1), // USB_4_5_OC_N
|
||||
PAD_CFG_NF(GPP_A16, NONE, DEEP, NF1), // USB_6_7_OC_N
|
||||
PAD_CFG_NF(GPP_A18, NONE, DEEP, NF1), // DP1_HPD
|
||||
PAD_CFG_NF(GPP_A19, NONE, DEEP, NF1), // DP2_HPD
|
||||
PAD_CFG_NF(GPP_A20, NONE, DEEP, NF1), // DP3_HPD
|
||||
PAD_NC(GPP_A23, NONE), // ESPI_CS1
|
||||
|
||||
/* ------- GPIO Group GPP_B ------- */
|
||||
PAD_CFG_NF(GPP_B0, NONE, DEEP, NF1), /* AUX_VID0 */
|
||||
PAD_CFG_NF(GPP_B1, NONE, DEEP, NF1), /* AUX_VID1 */
|
||||
PAD_CFG_NF(GPP_B14, NONE, DEEP, NF1), /* SATA_SPKR_N */
|
||||
PAD_CFG_NF(GPP_B0, NONE, DEEP, NF1), // AUX_VID0
|
||||
PAD_CFG_NF(GPP_B1, NONE, DEEP, NF1), // AUX_VID1
|
||||
PAD_NC(GPP_B5, NONE),
|
||||
PAD_NC(GPP_B6, NONE),
|
||||
PAD_NC(GPP_B7, NONE),
|
||||
PAD_NC(GPP_B8, NONE),
|
||||
PAD_CFG_NF(GPP_B14, NONE, DEEP, NF1), // SATA_SPKR_N
|
||||
PAD_NC(GPP_B15, NONE),
|
||||
PAD_NC(GPP_B16, NONE),
|
||||
PAD_NC(GPP_B17, NONE),
|
||||
PAD_NC(GPP_B18, NONE),
|
||||
PAD_NC(GPP_B23, NONE), /* SML1_ALERT */
|
||||
PAD_NC(GPP_B23, NONE), // SML1_ALERT
|
||||
|
||||
/* ------- GPIO Group GPP_C ------- */
|
||||
PAD_NC(GPP_C5, NONE), /* SML0_ALERT */
|
||||
PAD_CFG_NF(GPP_C6, NONE, DEEP, NF1), /* SML1_CLK */
|
||||
PAD_CFG_NF(GPP_C7, NONE, DEEP, NF1), /* SML1_DATA */
|
||||
PAD_NC(GPP_C5, NONE), // SML0_ALERT
|
||||
PAD_CFG_NF(GPP_C6, NONE, DEEP, NF1), // SML1_CLK
|
||||
PAD_CFG_NF(GPP_C7, NONE, DEEP, NF1), // SML1_DATA
|
||||
|
||||
/* ------- GPIO Group GPP_D ------- */
|
||||
PAD_NC(GPP_D0, NONE),
|
||||
PAD_NC(GPP_D1, NONE),
|
||||
PAD_NC(GPP_D2, NONE),
|
||||
PAD_NC(GPP_D3, NONE),
|
||||
PAD_NC(GPP_D5, NONE),
|
||||
/*
|
||||
* If this pin is configured by coreboot the pci device (i225) connected to this pin
|
||||
* will not show up in lspci tool in anymore. Configuring CLKREQ seems to be an issue
|
||||
* with current FSP-S. see also comment at top of file.
|
||||
*/
|
||||
//PAD_CFG_NF(GPP_D6, NONE, DEEP, NF1), // PHY0_CLKREQ
|
||||
PAD_NC(GPP_D7, NONE),
|
||||
PAD_NC(GPP_D8, NONE),
|
||||
PAD_NC(GPP_D9, NONE),
|
||||
PAD_NC(GPP_D10, NONE),
|
||||
PAD_NC(GPP_D11, NONE),
|
||||
PAD_NC(GPP_D12, NONE),
|
||||
PAD_NC(GPP_D13, NONE),
|
||||
PAD_NC(GPP_D14, NONE),
|
||||
PAD_NC(GPP_D15, NONE),
|
||||
PAD_NC(GPP_D16, NONE),
|
||||
PAD_NC(GPP_D19, NONE),
|
||||
|
||||
/* ------- GPIO Group GPP_E ------- */
|
||||
PAD_NC(GPP_E0, NONE),
|
||||
PAD_NC(GPP_E1, NONE),
|
||||
PAD_NC(GPP_E2, NONE),
|
||||
PAD_CFG_GPI(GPP_E3, NONE, DEEP), /* TPM INT (todo: check) */
|
||||
PAD_NC(GPP_E4, NONE),
|
||||
PAD_NC(GPP_E5, NONE),
|
||||
PAD_CFG_GPI(GPP_E6, NONE, DEEP),
|
||||
PAD_CFG_GPI_SMI_LOW(GPP_E7, NONE, DEEP, EDGE_SINGLE), /* EC SMI# */
|
||||
PAD_CFG_GPO(GPP_E8, 1, DEEP), /* PERST_CB_RESET_N */
|
||||
PAD_CFG_NF(GPP_E9, NONE, DEEP, NF1), /* USB_0_1_OC_N */
|
||||
PAD_NC(GPP_E10, NONE),
|
||||
PAD_NC(GPP_E11, NONE),
|
||||
PAD_NC(GPP_E12, NONE),
|
||||
PAD_NC(GPP_E13, NONE),
|
||||
PAD_CFG_NF(GPP_E14, NONE, DEEP, NF1), /* DP0_HPD (VGA_RED) */
|
||||
PAD_NC(GPP_E15, NONE),
|
||||
PAD_NC(GPP_E16, NONE),
|
||||
PAD_NC(GPP_E17, NONE),
|
||||
PAD_CFG_NF(GPP_E18, NONE, DEEP, NF1), /* DP3_DDC_CTRLCLK */
|
||||
PAD_CFG_NF(GPP_E19, NONE, DEEP, NF1), /* DP3_DDC_CTRLDATA */
|
||||
PAD_CFG_NF(GPP_E20, NONE, DEEP, NF1), /* DP2_DDC_CTRLCLK */
|
||||
|
@ -57,18 +98,34 @@ static const struct pad_config gpio_table[] = {
|
|||
PAD_NC(GPP_F3, NONE),
|
||||
PAD_NC(GPP_F5, NONE),
|
||||
PAD_CFG_GPO(GPP_F9, 1, DEEP), /* EC_SLP_S0_CS_N */
|
||||
PAD_NC(GPP_F11, NONE),
|
||||
PAD_CFG_GPI(GPP_F12, NONE, DEEP),
|
||||
PAD_CFG_GPI(GPP_F13, NONE, DEEP),
|
||||
PAD_NC(GPP_F17, NONE),
|
||||
PAD_NC(GPP_F18, NONE),
|
||||
PAD_NC(GPP_F20, NONE),
|
||||
PAD_NC(GPP_F21, NONE),
|
||||
PAD_CFG_GPO(GPP_F22, 1, DEEP), /* PERST_PHY0_N */
|
||||
|
||||
/* ------- GPIO Group GPP_H ------- */
|
||||
PAD_NC(GPP_H4, NONE),
|
||||
PAD_NC(GPP_H5, NONE),
|
||||
PAD_NC(GPP_H6, NONE),
|
||||
PAD_NC(GPP_H7, NONE),
|
||||
PAD_NC(GPP_H12, NONE),
|
||||
PAD_NC(GPP_H13, NONE),
|
||||
PAD_CFG_NF(GPP_H15, NONE, DEEP, NF1), /* DDPB_CTRLCLK */
|
||||
PAD_CFG_NF(GPP_H17, NONE, DEEP, NF1), /* DDPB_CTRLDATA */
|
||||
|
||||
/* ------- GPIO Group GPP_R ------- */
|
||||
PAD_CFG_NF(GPP_R5, NONE, DEEP, NF1), /* HDA_SDI1 */
|
||||
PAD_CFG_NF(GPP_R0, NONE, DEEP, NF1), // HDA_BCLK
|
||||
PAD_CFG_NF(GPP_R1, NONE, DEEP, NF1), // HDA_SYNC
|
||||
PAD_CFG_NF(GPP_R2, NONE, DEEP, NF1), // HDA_SDOUT
|
||||
PAD_CFG_NF(GPP_R3, NONE, DEEP, NF1), // HDA_SDIN0
|
||||
PAD_CFG_NF(GPP_R4, NONE, DEEP, NF1), // HDA_RST
|
||||
PAD_CFG_NF(GPP_R5, NONE, DEEP, NF1), // HDA_SDIN1
|
||||
PAD_NC(GPP_R6, NONE),
|
||||
PAD_NC(GPP_R7, NONE),
|
||||
|
||||
/* ------- GPIO Group GPP_T ------- */
|
||||
PAD_NC(GPP_T2, NONE),
|
||||
|
|
Loading…
Reference in New Issue