mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02:00
platform/x86/amd/pmc: Use FCH_PM_BASE definition
The s2idle MMIO quirk uses a scratch register in the FCH. Adjust the code to clarify that. Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Hans de Goede <hdegoede@redhat.com> Cc: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Cc: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> Cc: Yazen Ghannam <yazen.ghannam@amd.com> Cc: platform-driver-x86@vger.kernel.org Link: https://lore.kernel.org/r/20250422234830.2840784-5-superm1@kernel.org
This commit is contained in:
parent
624b0d5696
commit
7094702a9e
|
|
@ -7,5 +7,6 @@
|
|||
/* Register offsets from PM base: */
|
||||
#define FCH_PM_DECODEEN 0x00
|
||||
#define FCH_PM_DECODEEN_SMBUS0SEL GENMASK(20, 19)
|
||||
#define FCH_PM_SCRATCH 0x80
|
||||
|
||||
#endif /* _ASM_X86_AMD_FCH_H_ */
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
#include <linux/dmi.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/ioport.h>
|
||||
#include <asm/amd/fch.h>
|
||||
|
||||
#include "pmc.h"
|
||||
|
||||
|
|
@ -20,7 +21,7 @@ struct quirk_entry {
|
|||
};
|
||||
|
||||
static struct quirk_entry quirk_s2idle_bug = {
|
||||
.s2idle_bug_mmio = 0xfed80380,
|
||||
.s2idle_bug_mmio = FCH_PM_BASE + FCH_PM_SCRATCH,
|
||||
};
|
||||
|
||||
static struct quirk_entry quirk_spurious_8042 = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user