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)
Wed, Nov 20, 9:21 AM
Unknown Object (File)
Sep 26 2024, 4:27 PM
Unknown Object (File)
Sep 9 2024, 1:52 AM
Unknown Object (File)
Sep 8 2024, 6:34 PM
Unknown Object (File)
Sep 8 2024, 10:47 AM
Unknown Object (File)
Sep 8 2024, 7:45 AM
Unknown Object (File)
Sep 7 2024, 5:21 PM
Unknown Object (File)
Sep 7 2024, 3:28 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.