summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-01-31 15:15:11 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-03-01 08:22:28 +0000
commit6e82ebff73d0a2a9d29248885b30384f1f550376 (patch)
treef19901e9a5228dd1cb2c8f9a40e0328feba331a0 /src/arch
parent6724ba4f045cbbe2326463cbeaf59becfb01342e (diff)
downloadcoreboot-6e82ebff73d0a2a9d29248885b30384f1f550376.tar.xz
mb/ocp/deltalake: Fill ECC type in romstage
Fill the ECC type in `struct memory_info` in romstage, and in SoC code. The SMBIOS override is unnecessary, and this is not mainboard-specific. Change-Id: I8370b3ee7d75914b895946b53923598adf87b522 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50179 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Johnny Lin <Johnny_Lin@wiwynn.com> Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-by: Jonathan Zhang <jonzhang@fb.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/smbios.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c
index bd7f4224ec..33ab1ba3fe 100644
--- a/src/arch/x86/smbios.c
+++ b/src/arch/x86/smbios.c
@@ -443,11 +443,6 @@ static int get_socket_type(void)
return 0x02; /* Unknown */
}
-unsigned int __weak smbios_memory_error_correction_type(struct memory_info *meminfo)
-{
- return meminfo->ecc_type;
-}
-
unsigned int __weak smbios_processor_external_clock(void)
{
return 0; /* Unknown */
@@ -1023,7 +1018,7 @@ static int smbios_write_type16(unsigned long *current, int *handle)
t->location = MEMORY_ARRAY_LOCATION_SYSTEM_BOARD;
t->use = MEMORY_ARRAY_USE_SYSTEM;
- t->memory_error_correction = smbios_memory_error_correction_type(meminfo);
+ t->memory_error_correction = meminfo->ecc_type;
/* no error information handle available */
t->memory_error_information_handle = 0xFFFE;