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)
Mar 6 2024, 6:49 PM
Unknown Object (File)
Mar 6 2024, 6:49 PM
Unknown Object (File)
Feb 29 2024, 1:30 AM
Unknown Object (File)
Dec 20 2023, 6:55 AM
Unknown Object (File)
Dec 19 2023, 6:10 AM
Unknown Object (File)
Dec 13 2023, 3:54 PM
Unknown Object (File)
Sep 30 2023, 2:24 AM
Unknown Object (File)
Sep 24 2023, 9:45 AM

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 31811
Build 29371: arc lint + arc unit