Page MenuHomeFreeBSD

Add support for CPU freq to Raspberry PI 4
ClosedPublic

Authored by me_jamesrm.com on Jun 18 2020, 9:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 23, 10:44 AM
Unknown Object (File)
Thu, May 21, 10:08 PM
Unknown Object (File)
Thu, May 21, 5:43 AM
Unknown Object (File)
Thu, May 21, 12:45 AM
Unknown Object (File)
Wed, May 20, 9:31 AM
Unknown Object (File)
Sun, May 17, 12:52 AM
Unknown Object (File)
Fri, May 15, 5:16 PM
Unknown Object (File)
Fri, May 15, 5:15 PM

Details

Summary

Adds the raspberry pi 4 to the compat data
in the bcm2835_cpufreq driver.

Test Plan

Before this patch running powerd(4) would fail

Afterwards powerd(4) works. Also the output from
sysctl.dev.cpu.0 appears as follows:

dev.cpu.0.temperature: 54.0C
dev.cpu.0.freq_levels: 1500/-1
dev.cpu.0.freq: 1500
dev.cpu.0.%parent: cpulist0
dev.cpu.0.%pnpinfo: name=cpu@0 compat=arm,cortex-a72
dev.cpu.0.%location:
dev.cpu.0.%driver: cpu
dev.cpu.0.%desc: Open Firmware CPU

and the CPU frequency can be controlled via:

sysctl dev.cpu.0.freq=1500

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 31810
Build 29370: arc lint + arc unit