diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2024-08-14 05:55:33 +0200 |
---|---|---|
committer | Elyes Haouas <ehaouas@noos.fr> | 2024-10-23 23:41:58 +0000 |
commit | 04f8a662953402ee6c01aae89a1a432fa022d785 (patch) | |
tree | 10f13cd37c122c5e7eecffb628096936e73a31d1 /src/include/device/dram | |
parent | d4ac047c78c3fec22107bc66a499144ab5602a5f (diff) |
device/dram/ddr2: Use boolean for spd_dimm_is_registered_ddr2()
Change-Id: I475f0c7582148e9b9f86b542f753a6654e9f9135
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83901
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: coreboot org <coreboot.org@gmail.com>
Diffstat (limited to 'src/include/device/dram')
-rw-r--r-- | src/include/device/dram/ddr2.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/device/dram/ddr2.h b/src/include/device/dram/ddr2.h index f3605b289d..289ba2f072 100644 --- a/src/include/device/dram/ddr2.h +++ b/src/include/device/dram/ddr2.h @@ -17,6 +17,7 @@ #include <stdint.h> #include <spd.h> #include <device/dram/common.h> +#include <stdbool.h> /** Maximum SPD size supported */ #define SPD_SIZE_MAX_DDR2 128 @@ -154,7 +155,7 @@ struct dimm_attr_ddr2_st { u32 serial; }; -int spd_dimm_is_registered_ddr2(enum spd_dimm_type_ddr2 type); +bool spd_dimm_is_registered_ddr2(enum spd_dimm_type_ddr2 type); u8 spd_ddr2_calc_checksum(u8 *spd, int len); u32 spd_decode_spd_size_ddr2(u8 byte0); u32 spd_decode_eeprom_size_ddr2(u8 byte1); |