From 66f1f382cd3bd5a7250e0a7ad35d9a1c505de47a Mon Sep 17 00:00:00 2001 From: Kane Chen Date: Mon, 16 Oct 2017 19:40:18 +0800 Subject: intel/common/smbus: increase spd read performance This change increases the spd read performance by using smbus word access. BUG=b:67021853 TEST=boot to os and find 80~100 ms boot time improvement on one dimm Change-Id: I98fe67642d8ccd428bccbca7f6390331d6055d14 Signed-off-by: Kane Chen Reviewed-on: https://review.coreboot.org/22072 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/intel/common/block/smbus/smbuslib.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/soc/intel/common/block/smbus/smbuslib.h') diff --git a/src/soc/intel/common/block/smbus/smbuslib.h b/src/soc/intel/common/block/smbus/smbuslib.h index b5be6ca84e..05dafe9947 100644 --- a/src/soc/intel/common/block/smbus/smbuslib.h +++ b/src/soc/intel/common/block/smbus/smbuslib.h @@ -34,5 +34,7 @@ int smbus_read8(unsigned int smbus_base, unsigned int device, unsigned int address); int smbus_write8(unsigned int smbus_base, unsigned int device, unsigned int address, unsigned int data); +int smbus_read16(unsigned int smbus_base, unsigned int device, + unsigned int address); #endif /* SOC_INTEL_COMMON_BLOCK_SMBUS__LIB_H */ -- cgit v1.2.3