platform/x86/intel/ifs: Refactor image loading code
authorJithu Joseph <jithu.joseph@intel.com>
Thu, 5 Oct 2023 19:51:30 +0000 (12:51 -0700)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 6 Oct 2023 10:05:15 +0000 (13:05 +0300)
commita138ac2656d1329c3994a227769b7ba3926818a7
tree069964ea80c7861927636cf2a0ad178efe43e0be
parent97a5e801b3045c1e800f76bc0fb544972538089d
platform/x86/intel/ifs: Refactor image loading code

IFS image loading flow is slightly different for newer IFS generations.

In preparation for adding support for newer IFS generations, refactor
portions of existing image loading code for reuse.

Signed-off-by: Jithu Joseph <jithu.joseph@intel.com>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tested-by: Pengfei Xu <pengfei.xu@intel.com>
Link: https://lore.kernel.org/r/20231005195137.3117166-3-jithu.joseph@intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/ifs/load.c