ASoC: SOF: ipc: introduce message for DSP power gating
authorKeyon Jie <yang.jie@linux.intel.com>
Fri, 25 Oct 2019 22:41:09 +0000 (17:41 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 28 Oct 2019 14:43:31 +0000 (14:43 +0000)
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>
include/sound/sof/header.h
include/sound/sof/pm.h

index 332143ff727855e958179a3031914df9ffead5cc..bf3edd9c08b46d7d3f3e4c89d999666b8cf31f1f 100644 (file)
@@ -75,6 +75,7 @@
 #define SOF_IPC_PM_CLK_GET                     SOF_CMD_TYPE(0x005)
 #define SOF_IPC_PM_CLK_REQ                     SOF_CMD_TYPE(0x006)
 #define SOF_IPC_PM_CORE_ENABLE                 SOF_CMD_TYPE(0x007)
+#define SOF_IPC_PM_GATE                                SOF_CMD_TYPE(0x008)
 
 /* component runtime config - multiple different types */
 #define SOF_IPC_COMP_SET_VALUE                 SOF_CMD_TYPE(0x001)
index 003879401d6336ef1a50e85cfbcfac926249a7b5..3cf2e0f39d94a7ddc000b285e971a6eeabc5234c 100644 (file)
@@ -45,4 +45,12 @@ struct sof_ipc_pm_core_config {
        uint32_t enable_mask;
 } __packed;
 
+struct sof_ipc_pm_gate {
+       struct sof_ipc_cmd_hdr hdr;
+       uint32_t flags; /* platform specific */
+
+       /* reserved for future use */
+       uint32_t reserved[5];
+} __packed;
+
 #endif