Page MenuHomeFreeBSD

riscv: enable cpufreq_dt driver
ClosedPublic

Authored by mhorne on Dec 17 2024, 8:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jan 27, 4:21 AM
Unknown Object (File)
Jan 10 2025, 9:21 PM
Unknown Object (File)
Dec 26 2024, 10:18 AM
Unknown Object (File)
Dec 24 2024, 10:22 PM
Unknown Object (File)
Dec 20 2024, 10:51 PM
Subscribers

Details

Summary

Implement the small amount of MD code required; copied from arm/arm64.

One tweak is made to cpufreq_dt itself: if the opp-shared property is
missing, but there is only one CPU, then we can still attach. This is
relevant for the single-core Allwinner D1.

Test Plan

Tested on the Allwinner D1 and VisionFive v2 (JH7110) SBCs.

CPUs can have their frequency toggled via sysctl, or powerd -a max. I did not verify the effects, but all the machinery appears to be working.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Jan 10 2025, 7:19 PM
This revision was automatically updated to reflect the committed changes.