mb/google/hatch/var/scout: set correct i2c configuration
Scout only uses I2C 1, 2, and 3 in DVT units. This removes extraneous I2C configuration copied from Puff. BUG=b:202195805 TEST=Boot scout, verify no more errors due to missing I2C devices Change-Id: Ide70a53e83b3e14540873062e3bef24d1134d2e1 Signed-off-by: Matt Ziegelbaum <ziegs@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58236 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
This commit is contained in:
parent
fe74240adb
commit
ba358a70d7
|
@ -51,16 +51,14 @@ static const struct pad_config gpio_table[] = {
|
||||||
PAD_CFG_NF(GPP_C13, NONE, DEEP, NF1),
|
PAD_CFG_NF(GPP_C13, NONE, DEEP, NF1),
|
||||||
/* C15 : WLAN_OFF_L */
|
/* C15 : WLAN_OFF_L */
|
||||||
PAD_CFG_GPO(GPP_C15, 1, DEEP),
|
PAD_CFG_GPO(GPP_C15, 1, DEEP),
|
||||||
|
/* C16 : PCH_I2C_RFU_SDA (NC) */
|
||||||
/*
|
PAD_NC(GPP_C16, NONE),
|
||||||
* TODO(b/187094460): Re-enable touch screen I2C after resolving USB
|
/* C17 : PCH_I2C_RFU_SCL (NC) */
|
||||||
* conflict
|
PAD_NC(GPP_C17, NONE),
|
||||||
*/
|
|
||||||
|
|
||||||
/* C18 : PCH_I2C_USI_SDA */
|
/* C18 : PCH_I2C_USI_SDA */
|
||||||
PAD_NC(GPP_C18, NONE),
|
PAD_CFG_NF(GPP_C18, NONE, DEEP, NF1),
|
||||||
/* C19 : PCH_I2C_USI_SDL */
|
/* C19 : PCH_I2C_USI_SDL */
|
||||||
PAD_NC(GPP_C19, NONE),
|
PAD_CFG_NF(GPP_C19, NONE, DEEP, NF1),
|
||||||
|
|
||||||
/* D13 : SMBUS_ISP_SCALAR */
|
/* D13 : SMBUS_ISP_SCALAR */
|
||||||
PAD_CFG_GPO(GPP_D13, 0, DEEP),
|
PAD_CFG_GPO(GPP_D13, 0, DEEP),
|
||||||
|
@ -112,14 +110,22 @@ static const struct pad_config gpio_table[] = {
|
||||||
/* F22 : EMMC_RST_L */
|
/* F22 : EMMC_RST_L */
|
||||||
PAD_CFG_NF(GPP_F22, NONE, DEEP, NF1),
|
PAD_CFG_NF(GPP_F22, NONE, DEEP, NF1),
|
||||||
|
|
||||||
/* H4: PCH_I2C_PCON_SDA */
|
/* H4: PCH_I2C_SCALER_SDA */
|
||||||
PAD_CFG_NF(GPP_H4, NONE, DEEP, NF1),
|
PAD_CFG_NF(GPP_H4, NONE, DEEP, NF1),
|
||||||
/* H5: PCH_I2C_PCON_SCL */
|
/* H5: PCH_I2C_SCALER_SCL */
|
||||||
PAD_CFG_NF(GPP_H5, NONE, DEEP, NF1),
|
PAD_CFG_NF(GPP_H5, NONE, DEEP, NF1),
|
||||||
/* H6 : PCH_I2C_TPU_SDA */
|
/* H6 : PCH_I2C_TPU_SDA */
|
||||||
PAD_CFG_NF(GPP_H6, NONE, DEEP, NF1),
|
PAD_CFG_NF(GPP_H6, NONE, DEEP, NF1),
|
||||||
/* H7 : PCH_I2C_TPU_SCL */
|
/* H7 : PCH_I2C_TPU_SCL */
|
||||||
PAD_CFG_NF(GPP_H7, NONE, DEEP, NF1),
|
PAD_CFG_NF(GPP_H7, NONE, DEEP, NF1),
|
||||||
|
/* H8 : NC */
|
||||||
|
PAD_NC(GPP_H8, NONE),
|
||||||
|
/* H9 : NC */
|
||||||
|
PAD_NC(GPP_H9, NONE),
|
||||||
|
/* H10 : NC */
|
||||||
|
PAD_NC(GPP_H10, NONE),
|
||||||
|
/* H11 : NC */
|
||||||
|
PAD_NC(GPP_H11, NONE),
|
||||||
/* H22 : PWM_PP3300_BIOZZER */
|
/* H22 : PWM_PP3300_BIOZZER */
|
||||||
PAD_CFG_GPO(GPP_H22, 0, DEEP),
|
PAD_CFG_GPO(GPP_H22, 0, DEEP),
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,11 +4,11 @@ chip soc/intel/cannonlake
|
||||||
|
|
||||||
register "SerialIoDevMode" = "{
|
register "SerialIoDevMode" = "{
|
||||||
[PchSerialIoIndexI2C0] = PchSerialIoDisabled,
|
[PchSerialIoIndexI2C0] = PchSerialIoDisabled,
|
||||||
[PchSerialIoIndexI2C1] = PchSerialIoDisabled,
|
[PchSerialIoIndexI2C1] = PchSerialIoPci,
|
||||||
[PchSerialIoIndexI2C2] = PchSerialIoPci,
|
[PchSerialIoIndexI2C2] = PchSerialIoPci,
|
||||||
[PchSerialIoIndexI2C3] = PchSerialIoPci,
|
[PchSerialIoIndexI2C3] = PchSerialIoPci,
|
||||||
[PchSerialIoIndexI2C4] = PchSerialIoPci,
|
[PchSerialIoIndexI2C4] = PchSerialIoDisabled,
|
||||||
[PchSerialIoIndexI2C5] = PchSerialIoPci,
|
[PchSerialIoIndexI2C5] = PchSerialIoDisabled,
|
||||||
[PchSerialIoIndexSPI0] = PchSerialIoPci,
|
[PchSerialIoIndexSPI0] = PchSerialIoPci,
|
||||||
[PchSerialIoIndexSPI1] = PchSerialIoPci,
|
[PchSerialIoIndexSPI1] = PchSerialIoPci,
|
||||||
[PchSerialIoIndexSPI2] = PchSerialIoDisabled,
|
[PchSerialIoIndexSPI2] = PchSerialIoDisabled,
|
||||||
|
@ -150,20 +150,19 @@ chip soc/intel/cannonlake
|
||||||
#| | required to set up a BAR |
|
#| | required to set up a BAR |
|
||||||
#| | for TPM communication |
|
#| | for TPM communication |
|
||||||
#| | before memory is up |
|
#| | before memory is up |
|
||||||
#| I2C0 | RFU |
|
#| I2C1 | USI (Touch screen) |
|
||||||
#| I2C2 | PS175 |
|
#| I2C2 | SCALER |
|
||||||
#| I2C3 | MST |
|
#| I2C3 | TPU |
|
||||||
#| I2C4 | Audio |
|
|
||||||
#+-------------------+---------------------------+
|
#+-------------------+---------------------------+
|
||||||
register "common_soc_config" = "{
|
register "common_soc_config" = "{
|
||||||
.gspi[0] = {
|
.gspi[0] = {
|
||||||
.speed_mhz = 1,
|
.speed_mhz = 1,
|
||||||
.early_init = 1,
|
.early_init = 1,
|
||||||
},
|
},
|
||||||
.i2c[0] = {
|
.i2c[1] = {
|
||||||
.speed = I2C_SPEED_FAST,
|
.speed = I2C_SPEED_FAST,
|
||||||
.rise_time_ns = 0,
|
.rise_time_ns = 60,
|
||||||
.fall_time_ns = 0,
|
.fall_time_ns = 60,
|
||||||
},
|
},
|
||||||
.i2c[2] = {
|
.i2c[2] = {
|
||||||
.speed = I2C_SPEED_FAST,
|
.speed = I2C_SPEED_FAST,
|
||||||
|
@ -175,11 +174,6 @@ chip soc/intel/cannonlake
|
||||||
.rise_time_ns = 60,
|
.rise_time_ns = 60,
|
||||||
.fall_time_ns = 60,
|
.fall_time_ns = 60,
|
||||||
},
|
},
|
||||||
.i2c[4] = {
|
|
||||||
.speed = I2C_SPEED_FAST,
|
|
||||||
.rise_time_ns = 60,
|
|
||||||
.fall_time_ns = 60,
|
|
||||||
},
|
|
||||||
}"
|
}"
|
||||||
|
|
||||||
# PCIe root port 7 for LAN
|
# PCIe root port 7 for LAN
|
||||||
|
@ -380,24 +374,11 @@ chip soc/intel/cannonlake
|
||||||
device pci 15.0 off
|
device pci 15.0 off
|
||||||
# RFU - Reserved for Future Use.
|
# RFU - Reserved for Future Use.
|
||||||
end # I2C #0
|
end # I2C #0
|
||||||
device pci 15.1 off end # I2C #1
|
device pci 15.1 on end # I2C #1, USI (Touch screen)
|
||||||
device pci 15.2 off end # I2C #2, PCON PS175.
|
device pci 15.2 on end # I2C #2, SCALER
|
||||||
device pci 15.3 off end # I2C #3, Realtek RTD2142.
|
device pci 15.3 on end # I2C #3, TPU
|
||||||
device pci 16.0 on end # Management Engine Interface 1
|
device pci 16.0 on end # Management Engine Interface 1
|
||||||
device pci 19.0 on
|
device pci 19.0 off end # I2C #4
|
||||||
chip drivers/i2c/generic
|
|
||||||
register "hid" = ""10EC5682""
|
|
||||||
register "name" = ""RT58""
|
|
||||||
register "desc" = ""Realtek RT5682""
|
|
||||||
register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_H0)"
|
|
||||||
register "property_count" = "1"
|
|
||||||
# Set the jd_src to RT5668_JD1 for jack detection
|
|
||||||
register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER"
|
|
||||||
register "property_list[0].name" = ""realtek,jd-src""
|
|
||||||
register "property_list[0].integer" = "1"
|
|
||||||
device i2c 1a on end
|
|
||||||
end
|
|
||||||
end #I2C #4
|
|
||||||
device pci 1a.0 on end # eMMC
|
device pci 1a.0 on end # eMMC
|
||||||
device pci 1c.6 on # PCI Root Port 7 (LAN)
|
device pci 1c.6 on # PCI Root Port 7 (LAN)
|
||||||
chip drivers/net # RTL8111H Ethernet NIC
|
chip drivers/net # RTL8111H Ethernet NIC
|
||||||
|
|
Loading…
Reference in New Issue