ASoC: SOF: Intel: hda: Revisit IMR boot sequence
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 21 Apr 2022 20:20:31 +0000 (15:20 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 22 Apr 2022 23:16:27 +0000 (00:16 +0100)
commit2a68ff846164922196c38718ad8dc216819ccd38
treeeeb0c0871d53caa1b25be1bcbabfb0a61da8d359
parent95fa7a62e164630981c5f10d36c2967004f74237
ASoC: SOF: Intel: hda: Revisit IMR boot sequence

The sequence for IMR boot is essentially the same as normal boot with the
difference that instead of DMA from host the firmware is loaded from IMR.

Re-structure the code to use the existing sequence and also add fallback
handling in case the IMR boot fails.

Introduce a new flag to make the IMR boot support check simpler.

Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220421202031.1548362-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-loader.c
sound/soc/sof/intel/hda.h
sound/soc/sof/intel/icl.c