54 #ifndef SCICLIENT_PM_H_ 55 #define SCICLIENT_PM_H_ 72 #define DOMGRP_00 ((0x01U) << 0U) 74 #define DOMGRP_01 ((0x01U) << 1U) 76 #define DOMGRP_02 ((0x01U) << 2U) 78 #define DOMGRP_03 ((0x01U) << 3U) 80 #define DOMGRP_04 ((0x01U) << 4U) 82 #define DOMGRP_05 ((0x01U) << 5U) 84 #define DOMGRP_06 ((0x01U) << 6U) 147 uint32_t *moduleState,
148 uint32_t *resetState,
149 uint32_t *contextLossState,
218 uint32_t additionalFlag,
344 uint32_t additionalFlag,
380 uint32_t additionalFlag,
410 uint64_t *respFreqHz,
444 uint64_t *respFreqHz,
int32_t Sciclient_pmModuleGetClkStatus(uint32_t moduleId, uint32_t clockId, uint32_t *state, uint32_t timeout)
Message to get the clock state to or from a hardware block.
int32_t Sciclient_pmGetWakeupReason(uint8_t mode[32], uint8_t reason[32], uint32_t *time_ms, uint32_t timeout)
Request wakeup reason After a wakeup, the host can request the deepest sleep/idle mode reached and th...
int32_t Sciclient_pmSetModuleClkFreq(uint32_t moduleId, uint32_t clockId, uint64_t freqHz, uint32_t additionalFlag, uint32_t timeout)
Message to set the clock frequency. This is typically desired when the default frequency of the hardw...
int32_t Sciclient_pmDeviceReset(uint32_t timeout)
Objective: Trigger a SoC level reset Usage: Used to trigger a system level reset. NOTE: Depending on ...
int32_t Sciclient_pmSetModuleRst_flags(uint32_t moduleId, uint32_t resetBit, uint32_t reqFlag, uint32_t timeout)
Set the device reset state, allowing for user to set reqFlags This is used to set or release various ...
int32_t Sciclient_pmQueryModuleClkFreqRange(uint32_t moduleId, uint32_t clockId, uint64_t reqFreqHz, uint64_t minFreqHz, uint64_t maxFreqHz, uint64_t *respFreqHz, uint32_t timeout)
Message to query the best clock frequency in the given range. This message does no real operation,...
int32_t Sciclient_pmDomainReset(domgrp_t domGrp, uint32_t timeout)
Objective: Trigger a SoC level reset to parts of the SoC.
int32_t Sciclient_pmSetModuleClkParent(uint32_t moduleId, uint32_t clockId, uint32_t parent, uint32_t timeout)
Message to Set Clock Parent: This message allows SoC specific customization for setting up a specific...
int32_t Sciclient_pmDisableWakeup(uint32_t timeout)
This message is part of the CPU Off sequence. The sequence is:
int32_t Sciclient_pmSetModuleState(uint32_t moduleId, uint32_t state, uint32_t reqFlag, uint32_t timeout)
Message to set the hardware block/module state This is used to request or release a device....
uint8_t domgrp_t
Defines the sysfw DOMGRP type. This is meant to be used in code or data structures that require disti...
Definition: sciclient.h:235
int32_t Sciclient_pmGetModuleClkFreq(uint32_t moduleId, uint32_t clockId, uint64_t *freqHz, uint32_t timeout)
Message to Get Clock Frequency This is most used functionality and is meant for usage when the driver...
int32_t Sciclient_pmModuleClkRequest(uint32_t moduleId, uint32_t clockId, uint32_t state, uint32_t additionalFlag, uint32_t timeout)
Message to set the clock state: This requests for finer control of hardware device's clocks....
int32_t Sciclient_pmGetModuleClkNumParent(uint32_t moduleId, uint32_t clockId, uint32_t *numParent, uint32_t timeout)
Message to get the number of clock parents for a given module. This is typically used to get the max ...
int32_t Sciclient_pmDevicePowerOff(uint32_t timeout)
Some processors have a special sequence for powering off the core that provides notification to the P...
uint32_t time_ms
Definition: tisci_pm_core.h:132
int32_t Sciclient_pmQueryModuleClkFreq(uint32_t moduleId, uint32_t clockId, uint64_t reqFreqHz, uint64_t *respFreqHz, uint32_t timeout)
Message to query the best clock frequency in the given range. This message does no real operation,...
int32_t Sciclient_pmIsModuleValid(uint32_t modId)
This API would check if the given module Id is valid for the device.
char mode[32]
Definition: tisci_pm_core.h:130
uint8_t state
Definition: tisci_pm_clock.h:130
int32_t Sciclient_pmSetModuleRst(uint32_t moduleId, uint32_t resetBit, uint32_t timeout)
Set the device reset state. This is used to set or release various resets of the hardware block/modul...
int32_t Sciclient_pmSetModuleClkFreqRange(uint32_t moduleId, uint32_t clockId, uint64_t freqHz, uint64_t minFreqHz, uint64_t maxFreqHz, uint32_t additionalFlag, uint32_t timeout)
Message to set the clock frequency. This is typically desired when the default frequency of the hardw...
int32_t Sciclient_pmGetModuleClkParent(uint32_t moduleId, uint32_t clockId, uint32_t *parent, uint32_t timeout)
Message to Get Clock Parent: Query the clock parent currently configured for a specific clock source ...
uint8_t parent
Definition: tisci_pm_clock.h:130
int32_t Sciclient_pmGetModuleState(uint32_t moduleId, uint32_t *moduleState, uint32_t *resetState, uint32_t *contextLossState, uint32_t timeout)
Message to get the hardware block/Module state. This request does not require the processing entity t...
int32_t Sciclient_pmEnableWdt(uint32_t timeout)
Enables the WDT controllers within the DMSC.
char reason[32]
Definition: tisci_pm_core.h:131