Page MenuHomeFreeBSD

extres/regulators: Add sysctls for regulator
ClosedPublic

Authored by manu on Mar 3 2018, 7:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 6:16 PM
Unknown Object (File)
Fri, May 3, 5:34 PM
Unknown Object (File)
Fri, May 3, 5:31 PM
Unknown Object (File)
Thu, May 2, 10:44 AM
Unknown Object (File)
Dec 22 2023, 10:08 PM
Unknown Object (File)
Nov 15 2023, 8:14 AM
Unknown Object (File)
Nov 13 2023, 8:11 AM
Unknown Object (File)
Nov 10 2023, 4:15 PM
Subscribers

Details

Summary

For each regulators create an hw.<regname>. :
uvolt: Current value
always_on: 1 If the reg is always on
boot_on: 1 If the reg is set at boot time
enable_cnt: Number of consumer(s)
enable_delay: Delay before enabling the regulator
ramp_delay: The Ramp delay
max_uamp: The maximum value of the regulator in uAmps
min_uamp: The minimal value of the regulator in uAmps
max_uvolt: The maximum value of the regulator in uVolts
min_uvolt: The minimal value of the regulator in uVolts

Test Plan

Tested-On: Pine64-LTS

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ian added inline comments.
sys/dev/extres/regulator/regulator.c
155 ↗(On Diff #39923)

Extra 'l'

165 ↗(On Diff #39923)

space before else

174 ↗(On Diff #39923)

Why is this not sysctl_handle_int() ?

352 ↗(On Diff #39923)

leading tab vs spaces? phab is showing CTLFLAG_RD aligned differently than others, but you can't trust phab's rendering of tabs much. same with the one below.

Update after ian@ comments

manu marked 4 inline comments as done.Mar 3 2018, 8:27 PM
This revision is now accepted and ready to land.Mar 3 2018, 8:40 PM
This revision was automatically updated to reflect the committed changes.