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)
Tue, Sep 22, 1:09 PM
Unknown Object (File)
Mon, Sep 7, 2:33 PM
Unknown Object (File)
Wed, Sep 2, 4:23 PM
Unknown Object (File)
Wed, Sep 2, 8:34 AM
Unknown Object (File)
Tue, Sep 1, 11:45 PM
Unknown Object (File)
Aug 28 2026, 1:02 PM
Unknown Object (File)
Aug 18 2026, 5:29 PM
Unknown Object (File)
Aug 17 2026, 10:05 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