PCV services: Difference between revisions

No edit summary
better names
(9 intermediate revisions by the same user not shown)
Line 378: Line 378:
| 0 || [[#OpenSession]]
| 0 || [[#OpenSession]]
|-
|-
| 1 || GetTemperatureThresholds
| 1 || [[#GetTemperatureThresholds]]
|-
|-
| 2 || SetTemperature
| 2 || [[#SetTemperature]]
|-
|-
| 3 ||  
| 3 || [[#GetModuleStateTable]]
|-
|-
| 4 ||  
| 4 || GetModuleStateTableEvent
|-
|-
| 5 || [[#GetClockModuleNumLimit]]
| 5 || [[#GetModuleStateTableMaxCount]]
|}
|}


Line 392: Line 392:
Takes an input [[#Module|DeviceCode]] and an input u32. Returns an [[#IClkrstSession]].
Takes an input [[#Module|DeviceCode]] and an input u32. Returns an [[#IClkrstSession]].


== GetClockModuleNumLimit ==
== GetModuleStateTableMaxCount ==
Unofficial name.
 
Returns 0x1A.
Returns 0x1A.


Line 453: Line 455:
| 0 || [[#OpenSession]]
| 0 || [[#OpenSession]]
|-
|-
| 1 ||  
| 1 || [[#GetPowerDomainStateTable]]
|-
|-
| 2 ||  
| 2 || GetPowerDomainStateTableEvent
|-
|-
| 3 || [[#GetPowerModuleNumLimit]]
| 3 || [[#GetPowerDomainStateTableMaxCount]]
|}
|}


Line 463: Line 465:
Takes an input [[#PowerDomain|DeviceCode]] and returns an [[#IRegulatorSession]].
Takes an input [[#PowerDomain|DeviceCode]] and returns an [[#IRegulatorSession]].


== GetPowerModuleNumLimit ==
== GetPowerDomainStateTableMaxCount ==
Unofficial name.
 
Returns 0x3.
Returns 0x3.


Line 475: Line 479:
| 0 || SetVoltageEnabled
| 0 || SetVoltageEnabled
|-
|-
| 1 ||
| 1 || PowerOn
|-
|-
| 2 || GetVoltageEnabled
| 2 || GetVoltageEnabled
Line 481: Line 485:
| 3 || GetVoltageRange
| 3 || GetVoltageRange
|-
|-
| 4 || GetVoltageValue
| 4 || GetVoltage
|-
|-
| 5 || SetVoltageValue
| 5 || SetVoltageValue
|-
|-
| 6 || ChangeVoltage
| 6 || PowerOff
|}
|}


Line 505: Line 509:
| 4 || [[#ClearRtcResetDetected_2|ClearRtcResetDetected]]
| 4 || [[#ClearRtcResetDetected_2|ClearRtcResetDetected]]
|-
|-
| 10 || [10.0.0+]
| 10 || [10.0.0+] [[#EnableRtcAlarm|EnableRtcAlarm]]
|-
|-
| 11 || [10.0.0+]  
| 11 || [10.0.0+] [[#DisableRtcAlarm|DisableRtcAlarm]]
|}
|}


Line 524: Line 528:
== ClearRtcResetDetected ==
== ClearRtcResetDetected ==
Same as [[#ClearRtcResetDetected|ClearRtcResetDetected]], but takes an input [[Bus_services#I2cDevice|DeviceCode]] ([[#bpc:r|bpc:r]] uses hardcoded value 0x3B000001).
Same as [[#ClearRtcResetDetected|ClearRtcResetDetected]], but takes an input [[Bus_services#I2cDevice|DeviceCode]] ([[#bpc:r|bpc:r]] uses hardcoded value 0x3B000001).
== EnableRtcAlarm ==
Unofficial name.
Takes an input [[#Module|DeviceCode]], an input u32 '''RtcAlarmId''' (0 = RtcAlarm1, 1 = RtcAlarm2) and an u64 '''RtcAlarmTime'''. No output.
== DisableRtcAlarm ==
Unofficial name.
Takes an input [[#Module|DeviceCode]] and an input u32 '''RtcAlarmId''' (0 = RtcAlarm1, 1 = RtcAlarm2). No output.


= time:u, time:a, time:s =
= time:u, time:a, time:s =
Line 920: Line 934:
|-
|-
| [6.0.0+] 86 || Extperiph2 || 0x40000057 || VddSoc
| [6.0.0+] 86 || Extperiph2 || 0x40000057 || VddSoc
|-
| [8.0.0+] - || OscClk || 0x40000080 || None
|}
|}


Line 951: Line 967:
| 10 || Max77620_Ldo6 || 0x3A0000A6 || TouchPanel, ALS (2.9v)
| 10 || Max77620_Ldo6 || 0x3A0000A6 || TouchPanel, ALS (2.9v)
|-
|-
| 11 || Max77620_Ldo7 || 0x3A0000A7 || Xusb, MillauNfc (1.05v)
| 11 || Max77620_Ldo7 || 0x3A0000A7 || Xusb (1.05v)
|-
|-
| 12 || Max77620_Ldo8 || 0x3A0000A8 || DisplayPort, HDMI, SioMcu (1.05v)
| 12 || Max77620_Ldo8 || 0x3A0000A8 || DisplayPort, HDMI, SioMcu (1.05v)
Line 966: Line 982:
|}
|}


= ClockRatesListType =
= PowerControlTarget =
This is "nn::pcv::ClockRatesListType".
This is "nn::pcv::PowerControlTarget".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Value || Description
! Value || Name || DeviceCode || Description
|-
| 0 || || 0x3C000004 || SdCard (Ldo2)
|-
|-
| 0 || Invalid
| 1 || || 0x34000007 || DisplayPort, HDMI (Ldo8)
|-
|-
| 1 || Discrete
| 2 || || || Invalid (Ldo7)
|-
|-
| 2 || Range
| 3 || || 0x3500041A || SioMcu (Ldo8)
|}
|}


Line 998: Line 1,016:
|-
|-
| 0x8 || 0x4 || MinVClockRate
| 0x8 || 0x4 || MinVClockRate
|}
= PowerDomainState =
This is "nn::pcv::PowerDomainState".
{| class="wikitable" border="1"
|-
! Offset || Size || Description
|-
| 0x0 || 0x1 || Enabled
|-
| 0x1 || 0x3 || Reserved
|-
| 0x4 || 0x4 || Voltage
|}
|}


Line 1,012: Line 1,044:
|}
|}


= PowerControlTarget =
= ClockRatesListType =
This is "nn::pcv::PowerControlTarget".
This is "nn::pcv::ClockRatesListType".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Value || Name || DeviceCode || Description
! Value || Description
|-
|-
| 0 || || 0x3C000004 || SdCard
| 0 || Invalid
|-
|-
| 1 || || 0x34000007 || DisplayPort, HDMI
| 1 || Discrete
|-
|-
| 2 || || || MillauNfc
| 2 || Range
|-
| 3 || || 0x3500041A || SioMcu
|}
|}
= PowerDomainState =
This is "nn::pcv::PowerDomainState".


= SteadyClockTimePoint =
= SteadyClockTimePoint =