Sound Open Firmware
Loading...
Searching...
No Matches
PM Runtime

SOF PM runtime specification mapping for Zephyr builds. More...

Enumerations

enum  pm_runtime_context { PM_RUNTIME_DSP }
 Runtime power management context. More...

Functions

static void pm_runtime_init (struct sof *sof)
 Initializes runtime power management.
void pm_runtime_get (enum pm_runtime_context context, uint32_t index)
 Retrieves power management resource (async).
static void pm_runtime_get_sync (enum pm_runtime_context context, uint32_t index)
 Retrieves power management resource.
void pm_runtime_put (enum pm_runtime_context context, uint32_t index)
 Releases power management resource (async).
static void pm_runtime_put_sync (enum pm_runtime_context context, uint32_t index)
 Releases power management resource.
void pm_runtime_enable (enum pm_runtime_context context, uint32_t index)
 Enables power management operations for the resource.
void pm_runtime_disable (enum pm_runtime_context context, uint32_t index)
 Disables power management operations for the resource.
bool pm_runtime_is_active (enum pm_runtime_context context, uint32_t index)
 Reports state of the power managed resource.
static void platform_pm_runtime_prepare_d0ix_en (uint32_t index)

Detailed Description

SOF PM runtime specification mapping for Zephyr builds.

This interface is considered deprecated and native Zephyr interfaces should be used instead.

Enumeration Type Documentation

◆ pm_runtime_context

Runtime power management context.

Enumerator
PM_RUNTIME_DSP 

DSP.

Function Documentation

◆ platform_pm_runtime_prepare_d0ix_en()

void platform_pm_runtime_prepare_d0ix_en ( uint32_t index)
inlinestatic

◆ pm_runtime_disable()

void pm_runtime_disable ( enum pm_runtime_context context,
uint32_t index )

Disables power management operations for the resource.

Parameters
[in]contextType of power management context.
[in]indexIndex of the device.

◆ pm_runtime_enable()

void pm_runtime_enable ( enum pm_runtime_context context,
uint32_t index )

Enables power management operations for the resource.

Parameters
[in]contextType of power management context.
[in]indexIndex of the device.

◆ pm_runtime_get()

void pm_runtime_get ( enum pm_runtime_context context,
uint32_t index )

Retrieves power management resource (async).

Parameters
[in]contextType of power management context.
[in]indexIndex of the device.

◆ pm_runtime_get_sync()

void pm_runtime_get_sync ( enum pm_runtime_context context,
uint32_t index )
inlinestatic

Retrieves power management resource.

Parameters
[in]contextType of power management context.
[in]indexIndex of the device.

◆ pm_runtime_init()

void pm_runtime_init ( struct sof * sof)
inlinestatic

Initializes runtime power management.

◆ pm_runtime_is_active()

bool pm_runtime_is_active ( enum pm_runtime_context context,
uint32_t index )

Reports state of the power managed resource.

Parameters
contextType of power management context.
indexIndex of the resource.
Returns
true if the resource is active or pm disabled, false otherwise.

◆ pm_runtime_put()

void pm_runtime_put ( enum pm_runtime_context context,
uint32_t index )

Releases power management resource (async).

Parameters
[in]contextType of power management context.
[in]indexIndex of the device.

◆ pm_runtime_put_sync()

void pm_runtime_put_sync ( enum pm_runtime_context context,
uint32_t index )
inlinestatic

Releases power management resource.

Parameters
[in]contextType of power management context.
[in]indexIndex of the device.