Google is committed to advancing racial equity for Black communities. See how.

fuchsia.hardware.power

PROTOCOLS

Power

Defined in fuchsia.hardware.power/power.banjo

GetCurrentVoltage

Get current voltage in uV.

Request

NameType
index uint32

Response

NameType
s zx/status
current_voltage uint32

GetPowerDomainStatus

Get power domain status

Request

NameType

Response

NameType
s zx/status
status PowerDomainStatus

GetSupportedVoltageRange

Get Supported Voltage Range. min and max are in micorVolts(uV)

Request

NameType

Response

NameType
s zx/status
min uint32
max uint32

ReadPmicCtrlReg

Read ctrl register of PMIC

Request

NameType
reg_addr uint32

Response

NameType
s zx/status
value uint32

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

NameType
min_needed_voltage uint32
max_supported_voltage uint32

Response

NameType
s zx/status

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

NameType
voltage uint32

Response

NameType
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

NameType

Response

NameType
s zx/status

WritePmicCtrlReg

Write to ctrl register of PMIC

Request

NameType
reg_addr uint32
value uint32

Response

NameType
s zx/status

STRUCTS

ENUMS

PowerDomainStatus

Type: uint8

Defined in fuchsia.hardware.power/power.banjo

NameValueDescription
DISABLED 1
ENABLED 2