From cd7068703e48e0069ede21fcb8cb19e9713612c8 Mon Sep 17 00:00:00 2001 From: Naresh G Solanki Date: Mon, 21 Nov 2016 16:55:36 +0530 Subject: [PATCH] include/device/early_smbus.h: Declare smbus write function Add declaration for smbus write. Early smbus access also needs smbus write function specially to read spd for DDR4 wherein page has to be switched by smbus write. Change-Id: I246cbdf0b52923f01dd036f63df17bf9af043c9f Signed-off-by: Naresh G Solanki Reviewed-on: https://review.coreboot.org/17557 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/include/device/early_smbus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/device/early_smbus.h b/src/include/device/early_smbus.h index 8080cbf7b1..e3fe4fe982 100644 --- a/src/include/device/early_smbus.h +++ b/src/include/device/early_smbus.h @@ -64,7 +64,7 @@ int smbus_print_error(u32 smbus_dev, u8 host_status, int loops); int smbus_is_busy(u32 smbus_dev); int smbus_wait_until_ready(u32 smbus_dev); u8 smbus_read_byte(u32 smbus_dev, u8 addr, u8 offset); - +u8 smbus_write_byte(u32 smbus_dev, u8 addr, u8 offset, u8 value); void smbus_delay(void); #endif /* DEVICE_EARLY_SMBUS_H */