Commit be4e2dae authored by Fang Lijun's avatar Fang Lijun Committed by Yang Yingliang
Browse files

perf: hisi: Add support for HiSilicon SoC LPDDRC PMU driver

ascend inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4D4WR


CVE: NA

---------------------------

This patch adds support for LPDDRC PMU driver in HiSilicon SoC chip, Each
DDRC has own control, counter registers be an separate PMU. For each
LPDDRC PMU, it has 8-fixed-purpose counters which have been
mapped to 8-events by hardware, it assumes that counter index is equal
to event code (0 - 7) in LPDDRC PMU driver. Since the counter register
was read-only, set the perv-count in write_counter instead of wrote the
counter register.

Signed-off-by: default avatarFang Lijun <fanglijun3@huawei.com>
Reviewed-by: default avatarHanjun Guo <guohanjun@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 3eb76d1a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment