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
F132298885: D25349.id73293.diff
Wed, Oct 15, 4:04 PM
Unknown Object (File)
Sun, Oct 12, 8:32 PM
Unknown Object (File)
Sun, Oct 12, 8:32 PM
Unknown Object (File)
Sun, Oct 12, 12:55 PM
Unknown Object (File)
Sat, Oct 11, 10:09 PM
Unknown Object (File)
Sat, Oct 11, 10:09 PM
Unknown Object (File)
Sat, Oct 11, 10:09 PM
Unknown Object (File)
Sat, Oct 11, 12:57 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 Not Applicable
Unit
Tests Not Applicable