diff options
author | Frans Hendriks <fhendriks@eltan.com> | 2019-06-19 11:01:27 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2019-06-20 15:25:51 +0000 |
commit | e48be35bca9a0656d1becb0c8a030a11eb8ffaa7 (patch) | |
tree | 636b4299c20c7ccc8d0912e672304be6792843af /COPYING | |
parent | b09de70eda443d2fc9f4891c7647aac4526a8e99 (diff) | |
download | coreboot-e48be35bca9a0656d1becb0c8a030a11eb8ffaa7.tar.xz |
southbridge/intel/common/smbus: Add do_i2c_block_write()
Intel Braswell supports i2c block writes using SMBus controller.
This support is missing in actual smbus routines.
Add do_i2c_block_write() which is a based on do_smbus_block_write() but
also write first byte to SMBHSTDAT1.
The caller needs to configure the SMBus controller in i2c mode.
In i2c mode SMBus controller will send the next sequence:
SMBXINTADD, SMBHSTDAT1, SMBBLKDAT .. SMBBLKDAT
To ensure the the command is send over the bus the SMBHSTCMD register must
be written also
BUG=N/A
TEST=Config eDP for LCD display on Facebook FBG-1701
Change-Id: I40f8c0f5257a62398189f36892b8159052481693
Signed-off-by: Frans Hendriks <fhendriks@eltan.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/30800
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions