Skip to content

Commit 1099200

Browse files
keyonjiebroonie
authored andcommitted
ASoC: SOF: ipc: introduce message for DSP power gating
Add new ipc messages which will be sent from driver to FW, to ask FW to enter specific power saving state. Signed-off-by: Keyon Jie <yang.jie@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20191025224122.7718-14-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 7c7eba2 commit 1099200

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

‎include/sound/sof/header.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
#define SOF_IPC_PM_CLK_GET SOF_CMD_TYPE(0x005)
7676
#define SOF_IPC_PM_CLK_REQ SOF_CMD_TYPE(0x006)
7777
#define SOF_IPC_PM_CORE_ENABLE SOF_CMD_TYPE(0x007)
78+
#define SOF_IPC_PM_GATE SOF_CMD_TYPE(0x008)
7879

7980
/* component runtime config - multiple different types */
8081
#define SOF_IPC_COMP_SET_VALUE SOF_CMD_TYPE(0x001)

‎include/sound/sof/pm.h‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,12 @@ struct sof_ipc_pm_core_config {
4545
uint32_t enable_mask;
4646
} __packed;
4747

48+
struct sof_ipc_pm_gate {
49+
struct sof_ipc_cmd_hdr hdr;
50+
uint32_t flags; /* platform specific */
51+
52+
/* reserved for future use */
53+
uint32_t reserved[5];
54+
} __packed;
55+
4856
#endif

0 commit comments

Comments
 (0)