From 8fe9e541adfcf5f9ae3539e3fe19603605e36476 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Mon, 24 Jan 2022 07:22:03 +0100 Subject: soc/ti/am335x/cbmem.c: Use MiB macro Use "* MiB" instead of "<< 20". Change-Id: Iab6592804961a34fae6dc8012bfbc70023421a49 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/c/coreboot/+/61332 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/soc/ti/am335x/cbmem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/soc/ti/am335x/cbmem.c b/src/soc/ti/am335x/cbmem.c index 3765874ebe..170695eff8 100644 --- a/src/soc/ti/am335x/cbmem.c +++ b/src/soc/ti/am335x/cbmem.c @@ -1,9 +1,10 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include +#include #include void *cbmem_top_chipset(void) { - return _dram + (CONFIG_DRAM_SIZE_MB << 20); + return _dram + CONFIG_DRAM_SIZE_MB * MiB; } -- cgit v1.2.3