Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/74549 )
Change subject: vendorcode/mediatek/mt8195: Fix casting enum of different types ......................................................................
vendorcode/mediatek/mt8195: Fix casting enum of different types
Clang warns about this.
Change-Id: I18ff23c3c18b7cd74f0d6fe0b308b9096ce269ae Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M src/vendorcode/mediatek/mt8195/dramc/dramc_top.c 1 file changed, 14 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/49/74549/1
diff --git a/src/vendorcode/mediatek/mt8195/dramc/dramc_top.c b/src/vendorcode/mediatek/mt8195/dramc/dramc_top.c index e6b9333..848523d 100644 --- a/src/vendorcode/mediatek/mt8195/dramc/dramc_top.c +++ b/src/vendorcode/mediatek/mt8195/dramc/dramc_top.c @@ -1497,8 +1497,8 @@ if (!u1IsLP4Family(dram_type) || read_offline_dram_mdl_data(&dram_info) < 0) { #endif - dram_mode = (u1IsLP4Family(dram_type))? - CBT_BYTE_MODE1 : CBT_NORMAL_MODE; + dram_mode = (DRAM_CBT_MODE_EXTERN_T)((u1IsLP4Family(dram_type))? + CBT_BYTE_MODE1 : CBT_NORMAL_MODE); #if defined(SLT) SLT_Test_Main_Flow(dram_type, dram_mode, &dram_info, SLT_USED); #endif @@ -2280,4 +2280,3 @@
} #endif -