platform/x86/intel/pmt: add register access helpers
authorMichael J. Ruhl <michael.j.ruhl@intel.com>
Sun, 13 Jul 2025 17:29:40 +0000 (13:29 -0400)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 22 Jul 2025 14:39:06 +0000 (17:39 +0300)
commitf57b32cb4adb28b62f61c4729f7b85f55518cb2b
tree5814b93b87b603ea3a9f50f4cbe4a4fed7906c6e
parent8ab4f88d46c70bade0633b56a0f03e20102bf10c
platform/x86/intel/pmt: add register access helpers

The control register is used in a read/modify/write pattern.
The status register is used in a read/check bit pattern.

Add helpers to eliminate common code.

Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Link: https://lore.kernel.org/r/20250713172943.7335-11-michael.j.ruhl@intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/pmt/crashlog.c