If a regulator is enabled but doesn't have the correct value set,
do it (this can happen if the bootloader didn't do the right thing).
Only then we can enable the regulator if it wasn't enabled.
Details
Details
- Reviewers
mmel
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
I think that this is wrong way to fix you issue. We should not rely on preset values from loader. Voltages should be adjusted by drivers, and if this is not possible, the PMIC driver itself should set right values within its initialization - in exactly same way as we do within clocks initialization.
Comment Actions
Mhm you might be right, maybe I should make the rk808 driver init the regulator at attach, or with SYSINIT at the end of boot