diff options
author | Sascha Hauer <[email protected]> | 2023-10-18 08:17:06 +0200 |
---|---|---|
committer | Chanwoo Choi <[email protected]> | 2023-10-19 21:17:42 +0900 |
commit | bbe7cbd07406b75ec845eb261f25373bf88b276a (patch) | |
tree | e1e8e0918743cdc50e4895be7484441a2d17c79b /tools/perf/util/trace-event-scripting.c | |
parent | d1d0b3fe95d888f1ae82a0cf6a594fa0c3cbfa79 (diff) |
PM / devfreq: rockchip-dfi: account for multiple DDRMON_CTRL registers
The currently supported RK3399 has a set of registers per channel, but
it has only a single DDRMON_CTRL register. With upcoming RK3588 this
will be different, the RK3588 has a DDRMON_CTRL register per channel.
Instead of expecting a single DDRMON_CTRL register, loop over the
channels and write the channel specific DDRMON_CTRL register. Break
out early out of the loop when there is only a single DDRMON_CTRL
register like on the RK3399.
Link: https://lore.kernel.org/all/[email protected]/
Reviewed-by: Jonathan Cameron <[email protected]>
Reviewed-by: Sebastian Reichel <[email protected]>
Signed-off-by: Sascha Hauer <[email protected]>
Signed-off-by: Chanwoo Choi <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions