aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/cannonlake/chip.h
diff options
context:
space:
mode:
authorLijian Zhao <lijian.zhao@intel.com>2017-10-30 17:03:06 -0700
committerMartin Roth <martinroth@google.com>2017-11-04 00:42:00 +0000
commit9bb684a0ec1f3c1a276ec6d7a9e83b5b75aa6350 (patch)
tree288a50a5e9f2299834f4370185b415aee614d00c /src/soc/intel/cannonlake/chip.h
parentf08ed7d790ade3f29680dc300b71cf95a694ce2a (diff)
soc/intel/cannonlake: Install common i2c
Add common i2c support for cannonlake. TEST=N/A Change-Id: I5c60b0579f9e6050308896dcb13dda0bbb724d2b Signed-off-by: Lijian Zhao <lijian.zhao@intel.com> Reviewed-on: https://review.coreboot.org/22238 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/cannonlake/chip.h')
-rw-r--r--src/soc/intel/cannonlake/chip.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/soc/intel/cannonlake/chip.h b/src/soc/intel/cannonlake/chip.h
index 9117d13ed6..9d6f594e87 100644
--- a/src/soc/intel/cannonlake/chip.h
+++ b/src/soc/intel/cannonlake/chip.h
@@ -19,6 +19,7 @@
#define _SOC_CHIP_H_
#include <intelblocks/gspi.h>
+#include <intelblocks/lpss_i2c.h>
#include <stdint.h>
#include <soc/pch.h>
#include <soc/gpio_defs.h>
@@ -27,6 +28,8 @@
#include <soc/usb.h>
#include <soc/vr_config.h>
+#define CANNONLAKE_I2C_DEV_MAX 6
+
struct soc_intel_cannonlake_config {
/* GSPI */
struct gspi_cfg gspi[CONFIG_SOC_INTEL_COMMON_BLOCK_GSPI_MAX];
@@ -250,6 +253,9 @@ struct soc_intel_cannonlake_config {
/* GPIO SD card detect pin */
unsigned int sdcard_cd_gpio;
+
+ /* I2C bus configuration */
+ struct lpss_i2c_bus_config i2c[CANNONLAKE_I2C_DEV_MAX];
};
typedef struct soc_intel_cannonlake_config config_t;