platform/x86/amd/hsmp: Define a struct to hold mailbox regs
authorSuma Hegde <suma.hegde@amd.com>
Sat, 6 Jan 2024 02:25:25 +0000 (02:25 +0000)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 25 Jan 2024 12:51:22 +0000 (14:51 +0200)
commit17998b3e529bf161bb6ab52c7aafb8a9e2270a7f
treed66caac0bbe72955bf1c343acf87c834e056cf93
parente76064e34a371731e3f0da13ffbda16f6e51a202
platform/x86/amd/hsmp: Define a struct to hold mailbox regs

Define struct hsmp_mbaddr_info with register offsets and populate
them during probe, which avoids the usage of macros in core functions.

During ACPI probe, the same fields can be populated from ACPI table.

Also move plat dev init to a static function.

Signed-off-by: Suma Hegde <suma.hegde@amd.com>
Signed-off-by: Naveen Krishna Chatradhi <nchatrad@amd.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240106022532.1746932-4-suma.hegde@amd.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/amd/hsmp.c