summaryrefslogtreecommitdiff
path: root/src/vendorcode/mediatek/mt8195/dramc/dramc_dvfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vendorcode/mediatek/mt8195/dramc/dramc_dvfs.c')
-rw-r--r--src/vendorcode/mediatek/mt8195/dramc/dramc_dvfs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vendorcode/mediatek/mt8195/dramc/dramc_dvfs.c b/src/vendorcode/mediatek/mt8195/dramc/dramc_dvfs.c
index 7341ae3c0d..81f7fdf773 100644
--- a/src/vendorcode/mediatek/mt8195/dramc/dramc_dvfs.c
+++ b/src/vendorcode/mediatek/mt8195/dramc/dramc_dvfs.c
@@ -1338,12 +1338,10 @@ static void TransferToSPMControl(DRAMC_CTX_T *p)
#endif
void DPMEnableTracking(DRAMC_CTX_T *p, U32 u4Reg, U32 u4Field, U8 u1ShuIdx, U8 u1Enable)
{
- U32 val, fld;
+ U32 fld;
fld = Fld(1, (Fld_shft(u4Field) + u1ShuIdx));
- val = (u1Enable) ? 1 : 0;
-
vIO32WriteFldAlign_All(u4Reg, u1Enable, fld);
}