summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/picasso
diff options
context:
space:
mode:
authorFelix Held <felix.held@amd.corp-partner.google.com>2021-10-12 21:39:27 +0200
committerFelix Held <felix-coreboot@felixheld.de>2021-12-08 00:30:07 +0000
commit6ebcdf38724bd1c89cb5e769b54cb50b302b3062 (patch)
tree4a96aaf887b38b7698ac48d2ff5d120b5d8b0773 /src/soc/amd/picasso
parentc90d406008c2bd0b947a11530218c0652fd63b55 (diff)
downloadcoreboot-6ebcdf38724bd1c89cb5e769b54cb50b302b3062.tar.gz
coreboot-6ebcdf38724bd1c89cb5e769b54cb50b302b3062.tar.bz2
coreboot-6ebcdf38724bd1c89cb5e769b54cb50b302b3062.zip
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 <felix-coreboot@felixheld.de> Change-Id: I56c380190b11aa3214cce31b82974327e3d15000 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59936 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'src/soc/amd/picasso')
-rw-r--r--src/soc/amd/picasso/agesa_acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/amd/picasso/agesa_acpi.c b/src/soc/amd/picasso/agesa_acpi.c
index 782600754aed..4ab31e5229c6 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++;
}