Page MenuHomeFreeBSD

riscv: enable cpufreq_dt driver
ClosedPublic

Authored by mhorne on Dec 17 2024, 8:10 PM.
Tags
None
Referenced Files
F168464311: D48124.id148176.diff
Fri, Aug 28, 1:02 PM
Unknown Object (File)
Tue, Aug 18, 5:29 PM
Unknown Object (File)
Mon, Aug 17, 10:05 PM
Unknown Object (File)
Thu, Aug 13, 8:44 PM
Unknown Object (File)
Thu, Aug 13, 1:24 AM
Unknown Object (File)
Wed, Aug 12, 9:50 PM
Unknown Object (File)
Wed, Aug 12, 7:01 PM
Unknown Object (File)
Wed, Aug 12, 4:50 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