diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2023-04-19 10:09:51 +0200 |
---|---|---|
committer | Lean Sheng Tan <sheng.tan@9elements.com> | 2023-05-13 17:18:51 +0000 |
commit | 3c2fa3519cb69debbb0b99f17314c35a983a9679 (patch) | |
tree | aef6a40f97ef4468bf662dc9b8c30527ec0b893b | |
parent | e9d9c1e89857498cf6cbcc9bb61283aadb665802 (diff) |
vendorcode/mediatek/mt8195: Fix casting enum of different types
Clang warns about this.
Change-Id: I18ff23c3c18b7cd74f0d6fe0b308b9096ce269ae
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74549
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
-rw-r--r-- | src/vendorcode/mediatek/mt8195/dramc/dramc_top.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vendorcode/mediatek/mt8195/dramc/dramc_top.c b/src/vendorcode/mediatek/mt8195/dramc/dramc_top.c index e6b93335a1..848523dc99 100644 --- a/src/vendorcode/mediatek/mt8195/dramc/dramc_top.c +++ b/src/vendorcode/mediatek/mt8195/dramc/dramc_top.c @@ -1497,8 +1497,8 @@ void dram_auto_detection(void) 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 @@ static unsigned int get_ch_num_by_auxadc(void) } #endif - |