Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Header file for the NXP SCMI CPU Domain Protocol. More...

Go to the source code of this file.

Data Structures

struct  scmi_nxp_cpu_sleep_mode_config
 Describes the parameters for the CPU_STATE_SET command. More...
struct  scmi_pd_lpm_settings
 Low power mode setting for a single power domain. More...
struct  scmi_nxp_cpu_pd_lpm_config
 Describes CPU power domain low power mode setting. More...
struct  scmi_nxp_cpu_irq_mask_config
 Describes the parameters for the CPU_IRQ_WAKE_SET command. More...
struct  scmi_nxp_cpu_vector_config
 Describes the parameters for the CPU_RESET_VECTOR_SET command. More...
struct  scmi_nxp_cpu_info
 Describes the parameters for the CPU_INFO_GET command. More...

Macros

#define SCMI_NXP_CPU_SLEEP_FLAG_IRQ_MUX   0x1U
 CPU sleep flag: wake-up is routed through the IRQ mux.
#define SCMI_PROTOCOL_NXP_CPU_DOMAIN   130
 Protocol ID of the NXP CPU domain protocol.
#define SCMI_NXP_CPU_MAX_PDCONFIGS_T   7U
 Maximum number of power-domain LPM configurations per request.
#define SCMI_NXP_CPU_IRQ_WAKE_NUM   22U
 Maximum number of IRQ wake mask words per request.
#define SCMI_NXP_CPU_VEC_FLAGS_BOOT   BIT(29)
 CPU vector flag: Boot address (cold boot/reset).
#define SCMI_NXP_CPU_VEC_FLAGS_START   BIT(30)
 CPU vector flag: Start address (warm start).
#define SCMI_NXP_CPU_VEC_FLAGS_RESUME   BIT(31)
 CPU vector flag: Resume address (exit from suspend).
#define SCMI_NXP_CPU_PROTOCOL_SUPPORTED_VERSION   0x10000
 Version of the NXP SCMI CPU domain protocol supported by this driver.

Functions

int scmi_nxp_cpu_sleep_mode_set (struct scmi_nxp_cpu_sleep_mode_config *cfg)
 Send the CPU_SLEEP_MODE_SET command and get its reply.
int scmi_nxp_cpu_pd_lpm_set (struct scmi_nxp_cpu_pd_lpm_config *cfg)
 Send the SCMI_NXP_CPU_DOMAIN_MSG_CPU_PD_LPM_CONFIG_SET command and get its reply.
int scmi_nxp_cpu_set_irq_mask (struct scmi_nxp_cpu_irq_mask_config *cfg)
 Send the CPU_IRQ_WAKE_SET command and get its reply.
int scmi_nxp_cpu_reset_vector (struct scmi_nxp_cpu_vector_config *cfg)
 Send the CPU_RESET_VECTOR_SET command and get its reply.
int scmi_nxp_cpu_info_get (uint32_t cpu_id, struct scmi_nxp_cpu_info *cfg)
 Send the CPU_INFO_GET command and get its reply.

Detailed Description

Header file for the NXP SCMI CPU Domain Protocol.