lib/spd_bin: Use proper I2C addresses
Use the plain address instead of the weird shifted encoding (e.g. if we'd use `0xa0` as address, it's actually `0x50` encoded into a write command). Change-Id: I6febb2e04e1c6de4294dfa37bde16b147a80b7a8 Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/20405 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
		| @@ -43,7 +43,7 @@ | ||||
| #define LPDDR4_SPD_PART_LEN	20 | ||||
|  | ||||
| struct spd_block { | ||||
| 	u8 addr_map[CONFIG_DIMM_MAX]; | ||||
| 	u8 addr_map[CONFIG_DIMM_MAX]; /* 7 bit I2C addresses */ | ||||
| 	u8 *spd_array[CONFIG_DIMM_MAX]; | ||||
| 	/* Length of each dimm */ | ||||
| 	u16 len; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user