From 0554fc10c0dea70366992e56f4d344b528364f3a Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Tue, 14 May 2024 15:28:04 +0200 Subject: spd_bin.h: Use same macro for DDR3 and LPDDR3 DDR3 and LPDDR3 share the same PART_NUM and PART_LEN. So use the same macro. This is to prepare SPD de-duplication in following patch. Change-Id: Iea824a847b5072b1cbaa38dc38deae1d484d5b16 Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/82409 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai --- src/include/spd_bin.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/include') diff --git a/src/include/spd_bin.h b/src/include/spd_bin.h index d0cdefcac1..c51e449559 100644 --- a/src/include/spd_bin.h +++ b/src/include/spd_bin.h @@ -3,6 +3,7 @@ #ifndef SPD_BIN_H #define SPD_BIN_H +#include #include #include @@ -27,11 +28,11 @@ #define DDR3_BUS_DEV_WIDTH 8 #define DDR4_ORGANIZATION 12 #define DDR4_BUS_DEV_WIDTH 13 -#define DDR3_SPD_PART_OFF 128 -#define DDR3_SPD_PART_LEN 18 +#define DDR3_SPD_PART_OFF SPD_DDR3_PART_NUM +#define DDR3_SPD_PART_LEN SPD_DDR3_PART_LEN #define DDR3_SPD_SN_OFF 122 -#define LPDDR3_SPD_PART_OFF 128 -#define LPDDR3_SPD_PART_LEN 18 +#define LPDDR3_SPD_PART_OFF SPD_DDR3_PART_NUM +#define LPDDR3_SPD_PART_LEN SPD_DDR3_PART_LEN #define DDR4_SPD_PART_OFF 329 #define DDR4_SPD_PART_LEN 20 #define DDR4_SPD_SN_OFF 325 -- cgit v1.2.3