Added smbus block read/write for amd8111
[coreboot.git] / src / southbridge / amd / amd8111 / early_smbus.c
index e6d70847ea8dcf4f4717d81c4b4b6715fbcb31e6..e23628630a6f4dca47ecbe9a4413731e18850763 100644 (file)
@@ -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);
+}