soc/amd/stoneyridge: Rewrite smbus_read/write, add asf
commit753c225c2c22df0260a97d3eabaaf15aeb0c4bd6
authorMarshall Dawson <marshalldawson3rd@gmail.com>
Sun, 5 May 2019 20:08:59 +0000 (5 14:08 -0600)
committerMartin Roth <martinroth@google.com>
Wed, 8 May 2019 13:49:09 +0000 (8 13:49 +0000)
treec77382b804ab89722d69e28d34dfffa1830d8d3b
parent6ac87c4986e8af2fbbe8b3ddc6da868422a28101
soc/amd/stoneyridge: Rewrite smbus_read/write, add asf

Convert smbus_read8() and smbus_write8() functions to use the same
arguments as the other AcpiMmio blocks, and add 16 and 32 bit versions.
Add matching functions for the ASF controller.

Change-Id: I3b0ecf21f20472245da98ab5e711a54e99dca93a
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32644
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-by: Martin Roth <martinroth@google.com>
src/soc/amd/stoneyridge/include/soc/southbridge.h
src/soc/amd/stoneyridge/sb_util.c
src/soc/amd/stoneyridge/smbus.c
src/soc/amd/stoneyridge/southbridge.c