From 13101a7be09d9db8a8e3a784a262a6d122ff3503 Mon Sep 17 00:00:00 2001 From: Justin TerAvest Date: Wed, 24 Jan 2018 14:23:12 -0700 Subject: soc/amd/stoneyridge: Add I2C devicetree support. This commit establishes the stoneyridge implementation for i2c entries in the devicetree.cb file. BUG=b:72121803 Change-Id: I0d923609bd8fce94c9aee401a5ae2811281b60e5 Signed-off-by: Justin TerAvest Reviewed-on: https://review.coreboot.org/23405 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Aaron Durbin --- src/soc/amd/stoneyridge/chip.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/soc/amd/stoneyridge/chip.h') diff --git a/src/soc/amd/stoneyridge/chip.h b/src/soc/amd/stoneyridge/chip.h index 5688a7397d..c98734d5f3 100644 --- a/src/soc/amd/stoneyridge/chip.h +++ b/src/soc/amd/stoneyridge/chip.h @@ -19,11 +19,16 @@ #include #include #include +#include +#include +#include #define MAX_NODES 1 #define MAX_DRAM_CH 1 #define MAX_DIMMS_PER_CH 2 +#define STONEY_I2C_DEV_MAX 4 + struct soc_amd_stoneyridge_config { u8 spd_addr_lookup[MAX_NODES][MAX_DRAM_CH][MAX_DIMMS_PER_CH]; enum { @@ -44,6 +49,8 @@ struct soc_amd_stoneyridge_config { /* Used if UMAMODE_SPECIFIED_SIZE is set. */ size_t uma_size; + + struct dw_i2c_bus_config i2c[STONEY_I2C_DEV_MAX]; }; typedef struct soc_amd_stoneyridge_config config_t; -- cgit v1.2.3