From 339f0e7e14c00d7e322fbfc3d0b69af9285bc963 Mon Sep 17 00:00:00 2001 From: Varshit B Pandya Date: Wed, 14 Jul 2021 11:08:23 +0530 Subject: soc/intel/alderlake: Add support for I2C6 and I2C7 As per the EDS revision 1.3 add support for I2C6 and I2C7. Signed-off-by: Varshit B Pandya Change-Id: Id918d55e48b91993af9de8381995917aef55edc9 Reviewed-on: https://review.coreboot.org/c/coreboot/+/55996 Reviewed-by: Tim Wawrzynczak Reviewed-by: Maulik V Vaghela Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- src/soc/intel/alderlake/i2c.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/soc/intel/alderlake/i2c.c') diff --git a/src/soc/intel/alderlake/i2c.c b/src/soc/intel/alderlake/i2c.c index ef34e2ef1c..5fcca2a9e7 100644 --- a/src/soc/intel/alderlake/i2c.c +++ b/src/soc/intel/alderlake/i2c.c @@ -25,6 +25,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; } @@ -44,6 +48,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; } -- cgit v1.2.3