summaryrefslogtreecommitdiffstats
path: root/src/include/device/smbus_host.h
diff options
context:
space:
mode:
authorChristian Walter <christian.walter@9elements.com>2020-03-27 11:59:43 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-05-12 20:08:20 +0000
commit04953ebf5f343dcb37e1288705a160b4cf1b64cf (patch)
tree48281e7a1038886dbc1614f1fecd2d72678d2a7b /src/include/device/smbus_host.h
parent5cb34e2ea0034f3d3781006234a0c8b66f4efcfe (diff)
downloadcoreboot-04953ebf5f343dcb37e1288705a160b4cf1b64cf.tar.gz
coreboot-04953ebf5f343dcb37e1288705a160b4cf1b64cf.tar.bz2
coreboot-04953ebf5f343dcb37e1288705a160b4cf1b64cf.zip
southbridge/intel/common: Add Process Call
Add functionality to use process call cycle. It can be used to write/read data to/from e.g. EEPROM attached to SMBus Controller via I2C. Tested on: * C246 Change-Id: Ifdac6cf70a4ce744601f5d152a83d2125ea88360 Signed-off-by: Christian Walter <christian.walter@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39875 Reviewed-by: Patrick Rudolph <siro@das-labor.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include/device/smbus_host.h')
-rw-r--r--src/include/device/smbus_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/device/smbus_host.h b/src/include/device/smbus_host.h
index 6e6163f0624e..d9390eaf2d5c 100644
--- a/src/include/device/smbus_host.h
+++ b/src/include/device/smbus_host.h
@@ -17,6 +17,7 @@ int do_smbus_write_word(uintptr_t base, u8 device, u8 address, u16 data);
int do_smbus_block_read(uintptr_t base, u8 device, u8 cmd, size_t max_bytes, u8 *buf);
int do_smbus_block_write(uintptr_t base, u8 device, u8 cmd, size_t bytes, const u8 *buf);
+int do_smbus_process_call(uintptr_t base, u8 device, u8 cmd, u16 data, u16 *buf);
/* For Intel, implemented since ICH5. */
int do_i2c_eeprom_read(uintptr_t base, u8 device, u8 offset, size_t bytes, u8 *buf);