summaryrefslogtreecommitdiff
path: root/lib/sbi/sbi_pmu.c
diff options
context:
space:
mode:
authorJunhui Liu <junhui.liu@pigmoral.tech>2026-06-23 10:49:25 +0800
committerAnup Patel <anup@brainfault.org>2026-06-28 11:16:36 +0530
commitcc9b4ef8f3b465f4625ca40bf6af5e033df2bd75 (patch)
tree60794d79e8f5d875fe0a236da6fa6dd692240264 /lib/sbi/sbi_pmu.c
parenta2077d44cc5743b2fae084dd3cac9225e81bc2fb (diff)
downloadopensbi-cc9b4ef8f3b465f4625ca40bf6af5e033df2bd75.tar.gz
opensbi-cc9b4ef8f3b465f4625ca40bf6af5e033df2bd75.zip
platform: generic: spacemit: k1: fix wrong address definitions
PMU_AP_CORE2_IDLE_CFG and PMU_AP_CORE3_IDLE_CFG are not continuous with PMU_AP_CORE0_IDLE_CFG and PMU_AP_CORE1_IDLE_CFG. They are at PMU AP base + 0x160 and + 0x164, matching the vendor OpenSBI definitions. After fixing these addresses, the intermediate cluster offset macros are redundant now, so define the wakeup and idle registers directly as PMU_AP_BASE offsets. This makes the actual register addresses easier to inspect and compare against the vendor code. C1_RVBADDR_HI_ADDR is also corrected according to the vendor OpenSBI definition. This was tested by writing an invalid value to the corrected address, which prevents cluster1 CPUs from coming online, while doing the same with the old address does not affect SMP boot. Fixes: 1f84ec2a ("platform: generic: spacemit: add K1") Signed-off-by: Junhui Liu <junhui.liu@pigmoral.tech> Link: https://lore.kernel.org/r/20260623-k1-fix-addr-v1-1-3dbde8c03bd6@pigmoral.tech Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'lib/sbi/sbi_pmu.c')
0 files changed, 0 insertions, 0 deletions