Rex-BC Chen has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/63109 )
Change subject: soc/mediatek: Fix assert issue in MT8195 ......................................................................
soc/mediatek: Fix assert issue in MT8195
There is a assertion error for platforms which dram_info are not implemented in blob, like MT8192 and MT8195. Therefore, we remove this assertion to avoid this situation.
BUG=none TEST=build pass
Signed-off-by: Rex-BC Chen rex-bc.chen@mediatek.com Change-Id: Iebe9ea0c1d01890b09fdf586813d85adde9702e1 --- M src/soc/mediatek/common/memory.c 1 file changed, 0 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/09/63109/1
diff --git a/src/soc/mediatek/common/memory.c b/src/soc/mediatek/common/memory.c index 2e460ae..024ceac 100644 --- a/src/soc/mediatek/common/memory.c +++ b/src/soc/mediatek/common/memory.c @@ -119,7 +119,6 @@ mc->type = MEM_CHIP_LPDDR4X; mc->num_channels = CHANNEL_MAX; size = mtk_dram_size(); - assert(size);
for (i = 0; i < mc->num_channels; ++i) { mc->channel[i].density = size / mc->num_channels;