diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2022-01-24 07:22:03 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-11-08 14:39:29 +0000 |
commit | 8fe9e541adfcf5f9ae3539e3fe19603605e36476 (patch) | |
tree | f46bfeb92b45167f20f075ef19c8bf4a2bf01b1b /src/soc | |
parent | ad65e8c041b1d375936267bacc578254407e095f (diff) |
soc/ti/am335x/cbmem.c: Use MiB macro
Use "* MiB" instead of "<< 20".
Change-Id: Iab6592804961a34fae6dc8012bfbc70023421a49
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61332
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/soc')
-rw-r--r-- | src/soc/ti/am335x/cbmem.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <cbmem.h> +#include <commonlib/bsd/helpers.h> #include <symbols.h> void *cbmem_top_chipset(void) { - return _dram + (CONFIG_DRAM_SIZE_MB << 20); + return _dram + CONFIG_DRAM_SIZE_MB * MiB; } |