]> git.ipfire.org Git - thirdparty/linux.git/commit
Move FCH header to a location accessible by all archs
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 10 Jun 2025 20:58:16 +0000 (15:58 -0500)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 30 Jun 2025 10:42:11 +0000 (13:42 +0300)
commitb1c26e059536d8acbf9d508374f4b76537e20fb7
treecc6b1c31552e157996bc32c8fc11c279b1944dce
parent690be4bc589a145dc211b8d66b8f851713abd344
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 624b0d5696a8 ("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 7e173eb82ae9717
("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: 624b0d5696a89 ("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>
arch/x86/kernel/cpu/amd.c
drivers/i2c/busses/i2c-piix4.c
drivers/platform/x86/amd/pmc/pmc-quirks.c
include/linux/platform_data/x86/amd-fch.h [moved from arch/x86/include/asm/amd/fch.h with 100% similarity]