platform/x86:intel/pmc: Use SSRAM to discover pwrm base address of primary PMC
authorXi Pardee <xi.pardee@intel.com>
Tue, 13 Jun 2023 22:53:45 +0000 (15:53 -0700)
committerHans de Goede <hdegoede@redhat.com>
Tue, 20 Jun 2023 10:51:08 +0000 (12:51 +0200)
commit23e74e3ca6b56d12c14c7369d940187713c85d43
tree310e4c1b867f5846451729444186e67153b47d79
parent1b8c7b843c0043dd1b81e162e5b5fbed4b256896
platform/x86:intel/pmc: Use SSRAM to discover pwrm base address of primary PMC

On older platforms, the base address for PMC was hardcoded in the
driver. Newer platforms can now retrieve the base address from SSRAM.
Use SSRAM to discover pwrm base address on Meteor Lake platform. If
this method fails, it will fall back to the hardcoded value.

Signed-off-by: Xi Pardee <xi.pardee@intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230613225347.2720665-7-rajvi.jingar@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/pmc/mtl.c