<p>Arthur Heymans has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/20880">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">sb/intel/i82801jx: Add romstage smbus and i2c block operations<br><br>Change-Id: I76bf1ed392d3d18059792106fc482d2259a3f084<br>Signed-off-by: Arthur Heymans <arthur@aheymans.xyz><br>---<br>M src/southbridge/intel/i82801jx/early_smbus.c<br>M src/southbridge/intel/i82801jx/i82801jx.h<br>2 files changed, 21 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/80/20880/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/southbridge/intel/i82801jx/early_smbus.c b/src/southbridge/intel/i82801jx/early_smbus.c<br>index a950992..16932e0 100644<br>--- a/src/southbridge/intel/i82801jx/early_smbus.c<br>+++ b/src/southbridge/intel/i82801jx/early_smbus.c<br>@@ -51,3 +51,19 @@<br> {<br>   return do_smbus_read_byte(SMBUS_IO_BASE, device, address);<br> }<br>+<br>+int i2c_block_read(unsigned int device, unsigned int offset, u32 bytes, u8 *buf)<br>+{<br>+     return do_i2c_block_read(SMBUS_IO_BASE, device, offset, bytes, buf);<br>+}<br>+<br>+int smbus_block_read(unsigned int device, unsigned int cmd, u8 bytes, u8 *buf)<br>+{<br>+     return do_smbus_block_read(SMBUS_IO_BASE, device, cmd, bytes, buf);<br>+}<br>+<br>+int smbus_block_write(unsigned int device, unsigned int cmd, u8 bytes,<br>+          const u8 *buf)<br>+{<br>+   return do_smbus_block_write(SMBUS_IO_BASE, device, cmd, bytes, buf);<br>+}<br>diff --git a/src/southbridge/intel/i82801jx/i82801jx.h b/src/southbridge/intel/i82801jx/i82801jx.h<br>index fd74d2a..fe55157 100644<br>--- a/src/southbridge/intel/i82801jx/i82801jx.h<br>+++ b/src/southbridge/intel/i82801jx/i82801jx.h<br>@@ -224,6 +224,11 @@<br> #if defined(__PRE_RAM__)<br> void enable_smbus(void);<br> int smbus_read_byte(unsigned device, unsigned address);<br>+int i2c_block_read(unsigned int device, unsigned int cmd, unsigned int bytes,<br>+          u8 *buf);<br>+int smbus_block_read(unsigned int device, unsigned int cmd, u8 bytes, u8 *buf);<br>+int smbus_block_write(unsigned int device, unsigned int cmd, u8 bytes,<br>+         const u8 *buf);<br> void i82801jx_early_init(void);<br> void i82801jx_dmi_setup(void);<br> void i82801jx_dmi_poll_vc1(void);<br></pre><p>To view, visit <a href="https://review.coreboot.org/20880">change 20880</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/20880"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I76bf1ed392d3d18059792106fc482d2259a3f084 </div>
<div style="display:none"> Gerrit-Change-Number: 20880 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Arthur Heymans <arthur@aheymans.xyz> </div>