diff options
author | Xi Chen <xixi.chen@mediatek.corp-partner.google.com> | 2022-02-17 16:48:52 +0800 |
---|---|---|
committer | Hung-Te Lin <hungte@chromium.org> | 2022-03-23 11:54:28 +0000 |
commit | ad63eabe3a35b32cbea47a20bd2f36510fb7a506 (patch) | |
tree | 811b1320ac9d0fd74a3c129bcd6ab573ad8bc99c /3rdparty | |
parent | 555c2aeb674567e641930dba014c3219c92f6e9e (diff) |
src/mediatek/mt8186: Implement sdram_size() to get real dram size
Originally, dram size is hard-coded to 4GB by default. To support
different dram size, calculate it from the mem chip info stored
in CBMEM.
BUG=b:206014043
TEST=Output "dram size: 0x100000000" on Kingler
Signed-off-by: Xi Chen <xixi.chen@mediatek.corp-partner.google.com>
Change-Id: I017e9d1a2d6e26f1fc21b67b5962dfb5c6ade8a5
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62065
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to '3rdparty')
0 files changed, 0 insertions, 0 deletions