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>
This commit is contained in:
Elyes HAOUAS 2022-01-24 07:22:03 +01:00 committed by Felix Held
parent ad65e8c041
commit 8fe9e541ad
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}