From 0f2dd1eff9930e30dddd9aabceb5d85ee3b4e980 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Tue, 1 Aug 2017 14:02:40 +0200 Subject: include/device: Split i2c.h into three Split `i2c.h` into three pieces to ease reuse of the generic defi- nitions. No code is changed. * `i2c.h` - keeps the generic definitions * `i2c_simple.h` - holds the current, limited to one controller driver per board, devicetree independent I2C interface * `i2c_bus.h` - will become the devicetree compatible interface for native I2C (e.g. non-SMBus) controllers Change-Id: I382d45c70f9314588663e1284f264f877469c74d Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/20845 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/device/i2c.c | 3 ++- src/device/software_i2c.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/device') diff --git a/src/device/i2c.c b/src/device/i2c.c index 67470d4921..6fdd5cff26 100644 --- a/src/device/i2c.c +++ b/src/device/i2c.c @@ -14,7 +14,8 @@ */ #include -#include +#include +#include #include #if ENV_RAMSTAGE diff --git a/src/device/software_i2c.c b/src/device/software_i2c.c index 368d145b3e..ec6722bbed 100644 --- a/src/device/software_i2c.c +++ b/src/device/software_i2c.c @@ -16,7 +16,7 @@ #include #include #include -#include +#include /* * The implementation is based on Wikipedia. -- cgit v1.2.3