We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 624b0d5 commit 7094702Copy full SHA for 7094702
arch/x86/include/asm/amd/fch.h
@@ -7,5 +7,6 @@
7
/* Register offsets from PM base: */
8
#define FCH_PM_DECODEEN 0x00
9
#define FCH_PM_DECODEEN_SMBUS0SEL GENMASK(20, 19)
10
+#define FCH_PM_SCRATCH 0x80
11
12
#endif /* _ASM_X86_AMD_FCH_H_ */
drivers/platform/x86/amd/pmc/pmc-quirks.c
@@ -11,6 +11,7 @@
#include <linux/dmi.h>
#include <linux/io.h>
13
#include <linux/ioport.h>
14
+#include <asm/amd/fch.h>
15
16
#include "pmc.h"
17
@@ -20,7 +21,7 @@ struct quirk_entry {
20
21
};
22
23
static struct quirk_entry quirk_s2idle_bug = {
- .s2idle_bug_mmio = 0xfed80380,
24
+ .s2idle_bug_mmio = FCH_PM_BASE + FCH_PM_SCRATCH,
25
26
27
static struct quirk_entry quirk_spurious_8042 = {
0 commit comments