Commit c9a296d0 authored by Inochi Amaoto's avatar Inochi Amaoto Committed by Anup Patel
Browse files

platform: generic: allwinner: fix OF process for T-HEAD c9xx pmu



T-HEAD c9xx pmu needs to clear OV bits of MCOUNTEROF in any condition
to avoid unnecessary OF interrupts.

In addition, the S-mode SCOUNTEROF only have OF bit set when the related
bits of MCOUNTERWEN is set, so also configure MCOUNTERWEN to allow kernel
to access valid SCOUNTEROF.

Signed-off-by: default avatarHaijiao Liu <haijiao.liu@sophgo.com>
Co-authored-by: default avatarInochi Amaoto <inochiama@outlook.com>
Signed-off-by: default avatarInochi Amaoto <inochiama@outlook.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
Tested-by: default avatarSamuel Holland <samuel@sholland.org>
parent 664692f5
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment