Skip to content

Commit e99da15

Browse files
committed
Move FCH header to a location accessible by all archs
JIRA: https://issues.redhat.com/browse/RHEL-102860 commit b1c26e0 Author: Mario Limonciello <mario.limonciello@amd.com> Date: Tue Jun 10 15:58:16 2025 -0500 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 <hansg@kernel.org> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Reviewed-by: Hans de Goede <hansg@kernel.org> Link: https://lore.kernel.org/r/20250610205817.3912944-1-superm1@kernel.org Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: David Arcari <darcari@redhat.com>
1 parent acba3ab commit e99da15

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

File renamed without changes.

0 commit comments

Comments
 (0)