summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorTan, Lean Sheng <lean.sheng.tan@intel.com>2020-12-10 09:06:35 -0800
committerWerner Zeh <werner.zeh@siemens.com>2020-12-14 05:46:21 +0000
commit7d6df608ff03ce67b3883605f050fe22d0f014de (patch)
treeac7a9188ea8382aa5e6be5e24c838a6a075c7de4 /src/soc
parentd14918f6d0a7ead49a724f73fc97a5fbc52529e9 (diff)
soc/intel/elkhartlake: Update SerialIO devices details
Add I2C #6 & #7 and remove GSPI #3 as per EHL EDS. Also update device function number for GSPI #2 in asl file. Signed-off-by: Tan, Lean Sheng <lean.sheng.tan@intel.com> Change-Id: If166fefe567a857ca29527d0367197139efbf6c7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/48540 Reviewed-by: Frans Hendriks <fhendriks@eltan.com> Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/elkhartlake/acpi/serialio.asl20
-rw-r--r--src/soc/intel/elkhartlake/fsp_params.c2
-rw-r--r--src/soc/intel/elkhartlake/i2c.c8
-rw-r--r--src/soc/intel/elkhartlake/include/soc/serialio.h3
4 files changed, 25 insertions, 8 deletions
diff --git a/src/soc/intel/elkhartlake/acpi/serialio.asl b/src/soc/intel/elkhartlake/acpi/serialio.asl
index f7bf452058..ac628d2b6a 100644
--- a/src/soc/intel/elkhartlake/acpi/serialio.asl
+++ b/src/soc/intel/elkhartlake/acpi/serialio.asl
@@ -38,6 +38,18 @@ Device (I2C5)
Name (_DDN, "Serial IO I2C Controller 5")
}
+Device (I2C6)
+{
+ Name (_ADR, 0x00100000)
+ Name (_DDN, "Serial IO I2C Controller 6")
+}
+
+Device (I2C7)
+{
+ Name (_ADR, 0x00100001)
+ Name (_DDN, "Serial IO I2C Controller 7")
+}
+
Device (SPI0)
{
Name (_ADR, 0x001e0002)
@@ -52,16 +64,10 @@ Device (SPI1)
Device (SPI2)
{
- Name (_ADR, 0x00120006)
+ Name (_ADR, 0x00120000)
Name (_DDN, "Serial IO SPI Controller 2")
}
-Device (SPI3)
-{
- Name (_ADR, 0x00130000)
- Name (_DDN, "Serial IO SPI Controller 3")
-}
-
Device (UAR0)
{
Name (_ADR, 0x001e0000)
diff --git a/src/soc/intel/elkhartlake/fsp_params.c b/src/soc/intel/elkhartlake/fsp_params.c
index 83a3699dad..3aed1ac3c7 100644
--- a/src/soc/intel/elkhartlake/fsp_params.c
+++ b/src/soc/intel/elkhartlake/fsp_params.c
@@ -34,6 +34,8 @@ static const pci_devfn_t serial_io_dev[] = {
PCH_DEVFN_I2C3,
PCH_DEVFN_I2C4,
PCH_DEVFN_I2C5,
+ PCH_DEVFN_I2C6,
+ PCH_DEVFN_I2C7,
PCH_DEVFN_GSPI0,
PCH_DEVFN_GSPI1,
PCH_DEVFN_GSPI2,
diff --git a/src/soc/intel/elkhartlake/i2c.c b/src/soc/intel/elkhartlake/i2c.c
index c13a1a6099..78ee37b72d 100644
--- a/src/soc/intel/elkhartlake/i2c.c
+++ b/src/soc/intel/elkhartlake/i2c.c
@@ -19,6 +19,10 @@ int dw_i2c_soc_devfn_to_bus(unsigned int devfn)
return 4;
case PCH_DEVFN_I2C5:
return 5;
+ case PCH_DEVFN_I2C6:
+ return 6;
+ case PCH_DEVFN_I2C7:
+ return 7;
}
return -1;
}
@@ -38,6 +42,10 @@ int dw_i2c_soc_bus_to_devfn(unsigned int bus)
return PCH_DEVFN_I2C4;
case 5:
return PCH_DEVFN_I2C5;
+ case 6:
+ return PCH_DEVFN_I2C6;
+ case 7:
+ return PCH_DEVFN_I2C7;
}
return -1;
}
diff --git a/src/soc/intel/elkhartlake/include/soc/serialio.h b/src/soc/intel/elkhartlake/include/soc/serialio.h
index e42af5f781..bee96f0c6e 100644
--- a/src/soc/intel/elkhartlake/include/soc/serialio.h
+++ b/src/soc/intel/elkhartlake/include/soc/serialio.h
@@ -18,13 +18,14 @@ enum {
PchSerialIoIndexI2C3,
PchSerialIoIndexI2C4,
PchSerialIoIndexI2C5,
+ PchSerialIoIndexI2C6,
+ PchSerialIoIndexI2C7,
};
enum {
PchSerialIoIndexGSPI0,
PchSerialIoIndexGSPI1,
PchSerialIoIndexGSPI2,
- PchSerialIoIndexGSPI3,
};
enum {