PM / devfreq: rockchip-dfi: rk3588: fix total counter get err for lp5

Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
Change-Id: I5e267a3ed4eb5d501d5634111f67ec4cc6d690d6
This commit is contained in:
Zhihuan He
2022-11-08 11:09:59 +08:00
committed by Tao Huang
parent ea5fb26011
commit e50ad473db

View File

@@ -537,7 +537,10 @@ static __maybe_unused __init int rk3588_dfi_init(struct platform_device *pdev,
data->dram_type = READ_DRAMTYPE_INFO(val_2);
data->mon_idx = 0x4000;
data->count_rate = 2;
if (data->dram_type == LPDDR5)
data->count_rate = 1;
else
data->count_rate = 2;
data->dram_dynamic_info_reg = RK3588_PMUGRF_OS_REG(6);
data->ch_msk = READ_CH_INFO(val_2) | READ_CH_INFO(val_4) << 2;
data->clk = NULL;