diff options
author | Yao Zi <ziyao@disroot.org> | 2025-05-16 13:33:53 +0000 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2025-05-20 13:25:53 +0530 |
commit | 60c3f97de840e6ad35494f9228fc83600d1dc5a2 (patch) | |
tree | 1f7a47b4742a5acf322c9da476193630b7236e0c /lib/utils/cppc | |
parent | 7e31dc80525f752d97c2c5a97eb4b9583054e8bc (diff) | |
download | opensbi-60c3f97de840e6ad35494f9228fc83600d1dc5a2.zip opensbi-60c3f97de840e6ad35494f9228fc83600d1dc5a2.tar.gz opensbi-60c3f97de840e6ad35494f9228fc83600d1dc5a2.tar.bz2 |
lib: utils: fdt: Claim Zicntr if time CSR emulation is possible
OpenSBI is capable of emulating time CSR through an external timer
for HARTs that don't implement a full Zicntr extension. Let's add
Zicntr extension in the FDT if CSR emulation is active.
This avoids hardcoding the extension in the devicetree, which may
confuse pre-SBI bootloaders.
Signed-off-by: Yao Zi <ziyao@disroot.org>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20250516133352.36617-4-ziyao@disroot.org
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'lib/utils/cppc')
0 files changed, 0 insertions, 0 deletions