PROTOCOLS
Power
Defined in fuchsia.hardware.power/power.banjo
GetCurrentVoltage
Get current voltage in uV.
Request
Response
Name | Type |
s |
zx/status
|
current_voltage |
uint32
|
GetPowerDomainStatus
Get power domain status
Request
Response
GetSupportedVoltageRange
Get Supported Voltage Range. min and max are in micorVolts(uV)
Request
Response
Name | Type |
s |
zx/status
|
min |
uint32
|
max |
uint32
|
ReadPmicCtrlReg
Read ctrl register of PMIC
Request
Response
RegisterPowerDomain
Register the callee for this power domain. The callee will be registered until
UnregisterPowerDomain is called. Any voltage changes to the power domain will
be made considering the min_needed_voltage(in uV) and max_supported_voltage(in uV) published here.
If voltages mentioned are out of supported voltage range of domain(obtained by calling
GetSupportedVoltageRange), the callee will be registered with the supported voltage range.
Request
Name | Type |
min_needed_voltage |
uint32
|
max_supported_voltage |
uint32
|
Response
RequestVoltage
Request a particular voltage. The actual_voltage is the voltage that the power domain
is transitioned to after considering supported voltage ranges of all the registered
dependents. "voltage" should be in uV.
Request
Response
Name | Type |
s |
zx/status
|
actual_voltage |
uint32
|
UnregisterPowerDomain
Unregister the callee for this power domain. The callee will no longer be considered as
a dependent of this power domain.
Request
Response
WritePmicCtrlReg
Write to ctrl register of PMIC
Request
Name | Type |
reg_addr |
uint32
|
value |
uint32
|
Response
STRUCTS
ENUMS
PowerDomainStatus
Type: uint8
Defined in fuchsia.hardware.power/power.banjo
Name | Value | Description |
---|
DISABLED |
1 |
|
ENABLED |
2 |
|