]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(nxp/common/setup): fix total dram size checking
authorJiafei Pan <Jiafei.Pan@nxp.com>
Thu, 21 Oct 2021 07:17:51 +0000 (15:17 +0800)
committerJiafei Pan <Jiafei.Pan@nxp.com>
Wed, 19 Jan 2022 03:36:23 +0000 (11:36 +0800)
commit0259a3e8282ed17c1d378a27f820f44b3bebab07
treec9f8717812755a35e2eb4b86c8ca244ef760c827
parent3ccc8ac3e5da48819a2fc90ec48a175515de38cb
fix(nxp/common/setup): fix total dram size checking

total_dram_size should be signed value because it is equal to return
value of init_ddr(), so if it is lower or equal zero, report
error as DDR is not initialized correctly.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: Idbc40da103f60f10cb18c5306e97b764c1a9d372
plat/nxp/common/setup/include/plat_common.h
plat/nxp/common/setup/ls_bl2_el3_setup.c