Skip to content

Commit b1c26e0

Browse files
superm1ij-intel
authored andcommitted
Move FCH header to a location accessible by all archs
A new header fch.h was created to store registers used by different AMD drivers. This header was included by i2c-piix4 in commit 624b0d5 ("i2c: piix4, x86/platform: Move the SB800 PIIX4 FCH definitions to <asm/amd/fch.h>"). To prevent compile failures on non-x86 archs i2c-piix4 was set to only compile on x86 by commit 7e173eb ("i2c: piix4: Make CONFIG_I2C_PIIX4 dependent on CONFIG_X86"). This was not a good decision because loongarch and mips both actually support i2c-piix4 and set it enabled in the defconfig. Move the header to a location accessible by all architectures. Fixes: 624b0d5 ("i2c: piix4, x86/platform: Move the SB800 PIIX4 FCH definitions to <asm/amd/fch.h>") Suggested-by: Hans de Goede <[email protected]> Signed-off-by: Mario Limonciello <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
1 parent 690be4b commit b1c26e0

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

arch/x86/kernel/cpu/amd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <linux/sched/clock.h>
1010
#include <linux/random.h>
1111
#include <linux/topology.h>
12-
#include <asm/amd/fch.h>
12+
#include <linux/platform_data/x86/amd-fch.h>
1313
#include <asm/processor.h>
1414
#include <asm/apic.h>
1515
#include <asm/cacheinfo.h>

drivers/i2c/busses/i2c-piix4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include <linux/dmi.h>
3535
#include <linux/acpi.h>
3636
#include <linux/io.h>
37-
#include <asm/amd/fch.h>
37+
#include <linux/platform_data/x86/amd-fch.h>
3838

3939
#include "i2c-piix4.h"
4040

drivers/platform/x86/amd/pmc/pmc-quirks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <linux/dmi.h>
1212
#include <linux/io.h>
1313
#include <linux/ioport.h>
14-
#include <asm/amd/fch.h>
14+
#include <linux/platform_data/x86/amd-fch.h>
1515

1616
#include "pmc.h"
1717

0 commit comments

Comments
 (0)