From d33ebd13741b7473e93a1a6780edbb1e2dca8258 Mon Sep 17 00:00:00 2001 From: Yidi Lin Date: Tue, 15 Mar 2016 14:38:44 +0800 Subject: device: Add i2c read/write register field API i2c_read_field() - read the value from the specific register field i2c_write_field() - write the value to the specific register field BRANCH=none BUG=none TEST=none Change-Id: I2098715b4583c1936c93b3ff45ec330910964304 Signed-off-by: Patrick Georgi Original-Commit-Id: 0817fc76d07491b39c066f1393a6435f0831b50c Original-Change-Id: I92c187a89d10cfcecf3dfd9291e0bc015459c393 Original-Signed-off-by: Yidi Lin Original-Reviewed-on: https://chromium-review.googlesource.com/332712 Original-Reviewed-by: Julius Werner Reviewed-on: https://review.coreboot.org/14105 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer Reviewed-by: Martin Roth --- src/device/Makefile.inc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/device/Makefile.inc') diff --git a/src/device/Makefile.inc b/src/device/Makefile.inc index c2ade9675f6a..6bad0cde83bc 100644 --- a/src/device/Makefile.inc +++ b/src/device/Makefile.inc @@ -31,3 +31,8 @@ bootblock-$(CONFIG_SOFTWARE_I2C) += software_i2c.c verstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c romstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c ramstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c + +bootblock-y += i2c.c +verstage-y += i2c.c +romstage-y += i2c.c +ramstage-y += i2c.c -- cgit v1.2.3