diff options
author | Oskar Enoksson <enok@lysator.liu.se> | 2011-10-14 02:16:48 +0200 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2011-10-27 19:09:50 +0200 |
commit | 9bfa1c8c68b2f0c11e516e3f45ff1901a5907ab6 (patch) | |
tree | 8c060bbf417094d70acf1c6daa64fd87f1e207e3 /src/southbridge/amd/amd8111/early_smbus.c | |
parent | 07b4215e11537bcbef3848bb520fa201fbcc4eda (diff) |
Added smbus block read/write for amd8111
Signed-off-by: Oskar Enoksson <enok@lysator.liu.se>
Change-Id: I86c80a27fd13c9a2be4034fdfb63be4ab2fadbfc
Reviewed-on: http://review.coreboot.org/281
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/southbridge/amd/amd8111/early_smbus.c')
-rw-r--r-- | src/southbridge/amd/amd8111/early_smbus.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/southbridge/amd/amd8111/early_smbus.c b/src/southbridge/amd/amd8111/early_smbus.c index e6d70847ea..e23628630a 100644 --- a/src/southbridge/amd/amd8111/early_smbus.c +++ b/src/southbridge/amd/amd8111/early_smbus.c @@ -46,3 +46,12 @@ static inline int smbus_write_byte(unsigned device, unsigned address, unsigned c return do_smbus_write_byte(SMBUS_IO_BASE, device, address, val); } +static inline int smbus_block_read(unsigned device, unsigned cmd, u8 bytes, u8 *buf) +{ + return do_smbus_block_read(SMBUS_IO_BASE, device, cmd, bytes, buf); +} + +static inline int smbus_block_write(unsigned device, unsigned cmd, u8 bytes, const u8 *buf) +{ + return do_smbus_block_write(SMBUS_IO_BASE, device, cmd, bytes, buf); +} |