<p>Nico Huber <strong>uploaded patch set #3</strong> to this change.</p><p><a href="https://review.coreboot.org/20846">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">[RFC] Reinvent I2C ops<br><br>Do not use the global platform_i2c_transfer() function that can only be<br>implemented by a single driver. Instead, make a `struct device` aware<br>transfer() function the only interface function for I2C controller dri-<br>vers to implement.<br><br>To not force the slave device drivers to be implemented either above<br>generic I2C or specialized SMBus operations, we support SMBus control-<br>lers in the slave device interface too.<br><br>We start with four simple slave functions: i2c_readb(), i2c_writeb(),<br>i2c_readb_at() and i2c_writeb_at(). They are all compatible to respec-<br>tive SMBus functions. But we keep aliases because it would be weird to<br>force e.g. an I2C EEPROM driver to call smbus_read_byte().<br><br>Change-Id: I98386f91bf4799ba3df84ec8bc0f64edd4142818<br>Signed-off-by: Nico Huber <nico.huber@secunet.com><br>---<br>M src/device/Makefile.inc<br>M src/device/i2c.c<br>A src/device/i2c_bus.c<br>M src/include/device/i2c_bus.h<br>M src/include/device/i2c_simple.h<br>M src/soc/intel/common/block/i2c/i2c.c<br>M src/soc/intel/common/block/i2c/lpss_i2c.c<br>M src/soc/intel/common/block/i2c/lpss_i2c.h<br>8 files changed, 266 insertions(+), 108 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/46/20846/3</pre><p>To view, visit <a href="https://review.coreboot.org/20846">change 20846</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/20846"/><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: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: I98386f91bf4799ba3df84ec8bc0f64edd4142818 </div>
<div style="display:none"> Gerrit-Change-Number: 20846 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Nico Huber <nico.h@gmx.de> </div>