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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 15360
Build 15414: arc lint + arc unit

Event Timeline

ian added inline comments.
sys/dev/extres/regulator/regulator.c
155

Extra 'l'

165

space before else

174

Why is this not sysctl_handle_int() ?

352

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.