Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Keyon Jie and committed by
Mark Brown
10992004 7c7eba24

+9
+1
include/sound/sof/header.h
··· 75 75 #define SOF_IPC_PM_CLK_GET SOF_CMD_TYPE(0x005) 76 76 #define SOF_IPC_PM_CLK_REQ SOF_CMD_TYPE(0x006) 77 77 #define SOF_IPC_PM_CORE_ENABLE SOF_CMD_TYPE(0x007) 78 + #define SOF_IPC_PM_GATE SOF_CMD_TYPE(0x008) 78 79 79 80 /* component runtime config - multiple different types */ 80 81 #define SOF_IPC_COMP_SET_VALUE SOF_CMD_TYPE(0x001)
+8
include/sound/sof/pm.h
··· 45 45 uint32_t enable_mask; 46 46 } __packed; 47 47 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 + 48 56 #endif