From 6ebcdf38724bd1c89cb5e769b54cb50b302b3062 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 12 Oct 2021 21:39:27 +0200 Subject: soc/amd: use KiB and MiB definitions Use KiB and MiB instead of multiplying/dividing with/by the numeric value when doing region size calculations. Signed-off-by: Felix Held Change-Id: I56c380190b11aa3214cce31b82974327e3d15000 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59936 Tested-by: build bot (Jenkins) Reviewed-by: Felix Singer --- src/soc/amd/picasso/agesa_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/amd/picasso') diff --git a/src/soc/amd/picasso/agesa_acpi.c b/src/soc/amd/picasso/agesa_acpi.c index 782600754a..4ab31e5229 100644 --- a/src/soc/amd/picasso/agesa_acpi.c +++ b/src/soc/amd/picasso/agesa_acpi.c @@ -82,7 +82,7 @@ static unsigned long gen_crat_memory_entries(struct acpi_crat_header *crat, if (memory_base == 0) { current = create_crat_memory_entry(0, 0ull, 0xa0000ull, current); - memory_base = (1 * 1024 * 1024); + memory_base = 1 * MiB; memory_length = memory_base; new_entries++; } -- cgit v1.2.3