mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user