include/spd_bin.h: Add SPD IO layer
By default, PCH SMBus codes will be called to retrieve SPD data. This patch adds a SPD IO layer so that SoC could implement its specific SPD IO layer functions such as using Integrated Memory Controller to get SPD data. Change-Id: I656298aeda409fca3c85266b5b8727fac9bfc917 Signed-off-by: Yuchi Chen <yuchi.chen@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84201 Reviewed-by: Shuo Liu <shuo.liu@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
031c078e86
commit
7a7b4f05fc
4 changed files with 40 additions and 15 deletions
|
|
@ -49,6 +49,10 @@ uintptr_t spd_cbfs_map(u8 spd_index);
|
|||
void dump_spd_info(struct spd_block *blk);
|
||||
void get_spd_smbus(struct spd_block *blk);
|
||||
|
||||
int spd_read_byte(u8 slave_addr, u8 bus_addr);
|
||||
int spd_read_word(u8 slave_addr, u8 bus_addr);
|
||||
void spd_write_byte(u8 slave_addr, u8 bus_addr, u8 value);
|
||||
|
||||
/*
|
||||
* get_spd_sn returns the SODIMM serial number. It only supports DDR3 and DDR4.
|
||||
* return CB_SUCCESS, sn is the serial number and sn=0xffffffff if the dimm is not present.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue