summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHung-Chun Tseng <alan.tseng.cs@gmail.com>2026-10-21 21:21:30 +0800
committerPhilipp Zabel <p.zabel@pengutronix.de>2026-11-03 12:01:30 +0100
commit168cae7e87463c34758db2b51537937a29b753f1 (patch)
treec4ff5ce24b8da14f9462167d4d8062df4cc463d5 /tools/perf/scripts/python
parente3e068a457cebe2e475535685c325d5ca305f44a (diff)
reset: spacemit: Fix the RCPU2 PWM reset registers
Every entry in k1_rcpu2_resets[] uses RCPU2_PWM9_CLK_RST, so asserting or deasserting the reset of any RCPU2 PWM from 0 to 8 acts on PWM9 instead. Each PWM has its own register, RCPU2_PWMn_CLK_RST at offset 4 * n, as k1-syscon.h already defines. On a Milk-V Jupiter running the vendor kernel, which uses RCPU2 PWM2 for the fan, the RCPU2 registers read: 0x00: 0x4 0x04: 0x4 0x08: 0x1 0x0c: 0x4 ... 0x24: 0x4 Only PWM2's register has its reset deasserted, which matches one register per PWM. Use the matching register for each reset. No in-tree device tree uses the RCPU2 PWMs yet, so this has no effect on current boards, but it would break the first one that does. Build-tested only (riscv defconfig, W=1); the fix could not be tested at runtime, as mainline has no RCPU2 PWM node to exercise it. Fixes: c479d7cf06c3 ("reset: spacemit: add support for SpacemiT CCU resets") Signed-off-by: Hung-Chun Tseng <alan.tseng.cs@gmail.com> Reviewed-by: Yixun Lan <dlan@kernel.org> Reviewed-by: Troy Mitchell <troy.mitchell@linux.spacemit.com> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions