mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-01 23:04:54 +01:00
A new header fch.h was created to store registers used by different AMD drivers. This header was included by i2c-piix4 in commit624b0d5696("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 commit7e173eb82a("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:624b0d5696("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]>
14 lines
349 B
C
14 lines
349 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_X86_AMD_FCH_H_
|
|
#define _ASM_X86_AMD_FCH_H_
|
|
|
|
#define FCH_PM_BASE 0xFED80300
|
|
|
|
/* Register offsets from PM base: */
|
|
#define FCH_PM_DECODEEN 0x00
|
|
#define FCH_PM_DECODEEN_SMBUS0SEL GENMASK(20, 19)
|
|
#define FCH_PM_SCRATCH 0x80
|
|
#define FCH_PM_S5_RESET_STATUS 0xC0
|
|
|
|
#endif /* _ASM_X86_AMD_FCH_H_ */
|