mirror of https://github.com/thesofproject/sof.git
basefw: add support for fw config query for context save
If CONFIG_ADSP_IMR_CONTEXT_SAVE is enabled, base fw will report fw_context_save is supported to host. Driver will assume fw doesn't support this feature if it is not reported. Signed-off-by: Rander Wang <rander.wang@intel.com>
This commit is contained in:
parent
173adc990c
commit
472458ef71
|
@ -111,6 +111,10 @@ static int basefw_config(uint32_t *data_offset, char *data)
|
||||||
sche_cfg.sys_tick_source = SOF_SCHEDULE_LL_TIMER;
|
sche_cfg.sys_tick_source = SOF_SCHEDULE_LL_TIMER;
|
||||||
tlv_value_set(tuple, IPC4_SCHEDULER_CONFIGURATION, sizeof(sche_cfg), &sche_cfg);
|
tlv_value_set(tuple, IPC4_SCHEDULER_CONFIGURATION, sizeof(sche_cfg), &sche_cfg);
|
||||||
|
|
||||||
|
tuple = tlv_next(tuple);
|
||||||
|
tlv_value_uint32_set(tuple, IPC4_FW_CONTEXT_SAVE,
|
||||||
|
IS_ENABLED(CONFIG_ADSP_IMR_CONTEXT_SAVE));
|
||||||
|
|
||||||
tuple = tlv_next(tuple);
|
tuple = tlv_next(tuple);
|
||||||
*data_offset = (int)((char *)tuple - data);
|
*data_offset = (int)((char *)tuple - data);
|
||||||
|
|
||||||
|
|
|
@ -365,6 +365,8 @@ enum ipc4_fw_config_params {
|
||||||
IPC4_KPB_RT_SINK_COUNT = 27,
|
IPC4_KPB_RT_SINK_COUNT = 27,
|
||||||
/* Manual control of DMI L1 state */
|
/* Manual control of DMI L1 state */
|
||||||
IPC4_DMI_FORCE_L1_EXIT = 28,
|
IPC4_DMI_FORCE_L1_EXIT = 28,
|
||||||
|
/* FW context save on D3 entry */
|
||||||
|
IPC4_FW_CONTEXT_SAVE = 29,
|
||||||
/* Total number of FW config parameters */
|
/* Total number of FW config parameters */
|
||||||
IPC4_FW_CFG_PARAMS_COUNT,
|
IPC4_FW_CFG_PARAMS_COUNT,
|
||||||
/* Max config parameter id */
|
/* Max config parameter id */
|
||||||
|
|
Loading…
Reference in New Issue