[coreboot-gerrit] Change in coreboot[master]: sb/intel/i82801gx: Make smbus block r/w functions available ...

Arthur Heymans (Code Review) gerrit at coreboot.org
Fri May 5 21:13:22 CEST 2017


Arthur Heymans has uploaded a new change for review. ( https://review.coreboot.org/19594 )

Change subject: sb/intel/i82801gx: Make smbus block r/w functions available in romstage
......................................................................

sb/intel/i82801gx: Make smbus block r/w functions available in romstage

Those are needed to reconfigure the clockgen on smbus offset 0x69.

Change-Id: I0a06178d2474ce65972de157cb437b42f3354da0
Signed-off-by: Arthur Heymans <arthur at aheymans.xyz>
---
M src/southbridge/intel/i82801gx/early_smbus.c
M src/southbridge/intel/i82801gx/i82801gx.h
2 files changed, 14 insertions(+), 0 deletions(-)


  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/94/19594/1

diff --git a/src/southbridge/intel/i82801gx/early_smbus.c b/src/southbridge/intel/i82801gx/early_smbus.c
index 5d204e9..bb5caf5 100644
--- a/src/southbridge/intel/i82801gx/early_smbus.c
+++ b/src/southbridge/intel/i82801gx/early_smbus.c
@@ -59,3 +59,14 @@
 {
 	return do_i2c_block_read(SMBUS_IO_BASE, device, offset, bytes, buf);
 }
+
+int smbus_block_read(unsigned int device, unsigned int cmd, u8 bytes, u8 *buf)
+{
+	return do_smbus_block_read(SMBUS_IO_BASE, device, cmd, bytes, buf);
+}
+
+int smbus_block_write(unsigned int device, unsigned int cmd, u8 bytes,
+		const u8 *buf)
+{
+	return do_smbus_block_write(SMBUS_IO_BASE, device, cmd, bytes, buf);
+}
diff --git a/src/southbridge/intel/i82801gx/i82801gx.h b/src/southbridge/intel/i82801gx/i82801gx.h
index d1c861d..b3c1b48 100644
--- a/src/southbridge/intel/i82801gx/i82801gx.h
+++ b/src/southbridge/intel/i82801gx/i82801gx.h
@@ -52,6 +52,9 @@
 int smbus_read_byte(unsigned int device, unsigned int address);
 int i2c_block_read(unsigned int device, unsigned int cmd, unsigned int bytes,
 		u8 *buf);
+int smbus_block_read(unsigned int device, unsigned int cmd, u8 bytes, u8 *buf);
+int smbus_block_write(unsigned int device, unsigned int cmd, u8 bytes,
+		const u8 *buf);
 int southbridge_detect_s3_resume(void);
 #endif
 #endif

-- 
To view, visit https://review.coreboot.org/19594
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0a06178d2474ce65972de157cb437b42f3354da0
Gerrit-PatchSet: 1
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Arthur Heymans <arthur at aheymans.xyz>



More information about the coreboot-gerrit mailing list