Commit 4a2d5f66 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Wolfram Sang

i2c: Enable compile testing for more drivers

Some of the I2C bus drivers can be compile tested to increase build
coverage.  This requires also:
1. Adding dependencies on COMMON_CLK for BCM2835 and Meson I2C
   controllers,
2. Adding 'if' conditional to 'default y' so they will not get enabled
   by default on all other architectures,
3. Limiting few compile test options to supported architectures (which
   provide the readsX()/writesX() primitives).
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
[wsa: revert chunk for ZX2967. it needs more preparation]
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 10b17004
...@@ -367,7 +367,8 @@ comment "I2C system bus drivers (mostly embedded / system-on-chip)" ...@@ -367,7 +367,8 @@ comment "I2C system bus drivers (mostly embedded / system-on-chip)"
config I2C_ALTERA config I2C_ALTERA
tristate "Altera Soft IP I2C" tristate "Altera Soft IP I2C"
depends on (ARCH_SOCFPGA || NIOS2) && OF depends on ARCH_SOCFPGA || NIOS2 || COMPILE_TEST
depends on OF
help help
If you say yes to this option, support will be included for the If you say yes to this option, support will be included for the
Altera Soft IP I2C interfaces on SoCFPGA and Nios2 architectures. Altera Soft IP I2C interfaces on SoCFPGA and Nios2 architectures.
...@@ -387,7 +388,7 @@ config I2C_ASPEED ...@@ -387,7 +388,7 @@ config I2C_ASPEED
config I2C_AT91 config I2C_AT91
tristate "Atmel AT91 I2C Two-Wire interface (TWI)" tristate "Atmel AT91 I2C Two-Wire interface (TWI)"
depends on ARCH_AT91 depends on ARCH_AT91 || COMPILE_TEST
help help
This supports the use of the I2C interface on Atmel AT91 This supports the use of the I2C interface on Atmel AT91
processors. processors.
...@@ -440,7 +441,8 @@ config I2C_AXXIA ...@@ -440,7 +441,8 @@ config I2C_AXXIA
config I2C_BCM2835 config I2C_BCM2835
tristate "Broadcom BCM2835 I2C controller" tristate "Broadcom BCM2835 I2C controller"
depends on ARCH_BCM2835 || ARCH_BRCMSTB depends on ARCH_BCM2835 || ARCH_BRCMSTB || COMPILE_TEST
depends on COMMON_CLK
help help
If you say yes to this option, support will be included for the If you say yes to this option, support will be included for the
BCM2835 I2C controller. BCM2835 I2C controller.
...@@ -463,8 +465,8 @@ config I2C_BCM_IPROC ...@@ -463,8 +465,8 @@ config I2C_BCM_IPROC
config I2C_BCM_KONA config I2C_BCM_KONA
tristate "BCM Kona I2C adapter" tristate "BCM Kona I2C adapter"
depends on ARCH_BCM_MOBILE depends on ARCH_BCM_MOBILE || COMPILE_TEST
default y default y if ARCH_BCM_MOBILE
help help
If you say yes to this option, support will be included for the If you say yes to this option, support will be included for the
I2C interface on the Broadcom Kona family of processors. I2C interface on the Broadcom Kona family of processors.
...@@ -511,7 +513,7 @@ config I2C_CPM ...@@ -511,7 +513,7 @@ config I2C_CPM
config I2C_DAVINCI config I2C_DAVINCI
tristate "DaVinci I2C driver" tristate "DaVinci I2C driver"
depends on ARCH_DAVINCI || ARCH_KEYSTONE depends on ARCH_DAVINCI || ARCH_KEYSTONE || COMPILE_TEST
help help
Support for TI DaVinci I2C controller driver. Support for TI DaVinci I2C controller driver.
...@@ -572,7 +574,7 @@ config I2C_DESIGNWARE_BAYTRAIL ...@@ -572,7 +574,7 @@ config I2C_DESIGNWARE_BAYTRAIL
config I2C_DIGICOLOR config I2C_DIGICOLOR
tristate "Conexant Digicolor I2C driver" tristate "Conexant Digicolor I2C driver"
depends on ARCH_DIGICOLOR depends on ARCH_DIGICOLOR || COMPILE_TEST
help help
Support for Conexant Digicolor SoCs (CX92755) I2C controller driver. Support for Conexant Digicolor SoCs (CX92755) I2C controller driver.
...@@ -611,8 +613,9 @@ config I2C_EMEV2 ...@@ -611,8 +613,9 @@ config I2C_EMEV2
config I2C_EXYNOS5 config I2C_EXYNOS5
tristate "Exynos5 high-speed I2C driver" tristate "Exynos5 high-speed I2C driver"
depends on ARCH_EXYNOS && OF depends on OF
default y depends on ARCH_EXYNOS || COMPILE_TEST
default y if ARCH_EXYNOS
help help
High-speed I2C controller on Exynos5 based Samsung SoCs. High-speed I2C controller on Exynos5 based Samsung SoCs.
...@@ -634,7 +637,7 @@ config I2C_GPIO_FAULT_INJECTOR ...@@ -634,7 +637,7 @@ config I2C_GPIO_FAULT_INJECTOR
config I2C_HIGHLANDER config I2C_HIGHLANDER
tristate "Highlander FPGA SMBus interface" tristate "Highlander FPGA SMBus interface"
depends on SH_HIGHLANDER depends on SH_HIGHLANDER || COMPILE_TEST
help help
If you say yes to this option, support will be included for If you say yes to this option, support will be included for
the SMBus interface located in the FPGA on various Highlander the SMBus interface located in the FPGA on various Highlander
...@@ -686,7 +689,7 @@ config I2C_IMX_LPI2C ...@@ -686,7 +689,7 @@ config I2C_IMX_LPI2C
config I2C_IOP3XX config I2C_IOP3XX
tristate "Intel IOPx3xx and IXP4xx on-chip I2C interface" tristate "Intel IOPx3xx and IXP4xx on-chip I2C interface"
depends on ARCH_IOP32X || ARCH_IXP4XX depends on ARCH_IOP32X || ARCH_IXP4XX || COMPILE_TEST
help help
Say Y here if you want to use the IIC bus controller on Say Y here if you want to use the IIC bus controller on
the Intel IOPx3xx I/O Processors or IXP4xx Network Processors. the Intel IOPx3xx I/O Processors or IXP4xx Network Processors.
...@@ -726,6 +729,7 @@ config I2C_LPC2K ...@@ -726,6 +729,7 @@ config I2C_LPC2K
config I2C_MESON config I2C_MESON
tristate "Amlogic Meson I2C controller" tristate "Amlogic Meson I2C controller"
depends on ARCH_MESON || COMPILE_TEST depends on ARCH_MESON || COMPILE_TEST
depends on COMMON_CLK
help help
If you say yes to this option, support will be included for the If you say yes to this option, support will be included for the
I2C interface on the Amlogic Meson family of SoCs. I2C interface on the Amlogic Meson family of SoCs.
...@@ -759,7 +763,7 @@ config I2C_MT7621 ...@@ -759,7 +763,7 @@ config I2C_MT7621
config I2C_MV64XXX config I2C_MV64XXX
tristate "Marvell mv64xxx I2C Controller" tristate "Marvell mv64xxx I2C Controller"
depends on MV64X60 || PLAT_ORION || ARCH_SUNXI || ARCH_MVEBU depends on MV64X60 || PLAT_ORION || ARCH_SUNXI || ARCH_MVEBU || COMPILE_TEST
help help
If you say yes to this option, support will be included for the If you say yes to this option, support will be included for the
built-in I2C interface on the Marvell 64xxx line of host bridges. built-in I2C interface on the Marvell 64xxx line of host bridges.
...@@ -770,7 +774,7 @@ config I2C_MV64XXX ...@@ -770,7 +774,7 @@ config I2C_MV64XXX
config I2C_MXS config I2C_MXS
tristate "Freescale i.MX28 I2C interface" tristate "Freescale i.MX28 I2C interface"
depends on SOC_IMX28 depends on SOC_IMX28 || COMPILE_TEST
select STMP_DEVICE select STMP_DEVICE
help help
Say Y here if you want to use the I2C bus controller on Say Y here if you want to use the I2C bus controller on
...@@ -799,7 +803,7 @@ config I2C_OCORES ...@@ -799,7 +803,7 @@ config I2C_OCORES
config I2C_OMAP config I2C_OMAP
tristate "OMAP I2C adapter" tristate "OMAP I2C adapter"
depends on ARCH_OMAP || ARCH_K3 depends on ARCH_OMAP || ARCH_K3 || COMPILE_TEST
default y if MACH_OMAP_H3 || MACH_OMAP_OSK default y if MACH_OMAP_H3 || MACH_OMAP_OSK
help help
If you say yes to this option, support will be included for the If you say yes to this option, support will be included for the
...@@ -833,7 +837,7 @@ config I2C_PCA_PLATFORM ...@@ -833,7 +837,7 @@ config I2C_PCA_PLATFORM
config I2C_PMCMSP config I2C_PMCMSP
tristate "PMC MSP I2C TWI Controller" tristate "PMC MSP I2C TWI Controller"
depends on PMC_MSP depends on PMC_MSP || COMPILE_TEST
help help
This driver supports the PMC TWI controller on MSP devices. This driver supports the PMC TWI controller on MSP devices.
...@@ -842,7 +846,7 @@ config I2C_PMCMSP ...@@ -842,7 +846,7 @@ config I2C_PMCMSP
config I2C_PNX config I2C_PNX
tristate "I2C bus support for Philips PNX and NXP LPC targets" tristate "I2C bus support for Philips PNX and NXP LPC targets"
depends on ARCH_LPC32XX depends on ARCH_LPC32XX || COMPILE_TEST
help help
This driver supports the Philips IP3204 I2C IP block master and/or This driver supports the Philips IP3204 I2C IP block master and/or
slave controller slave controller
...@@ -863,7 +867,7 @@ config I2C_PUV3 ...@@ -863,7 +867,7 @@ config I2C_PUV3
config I2C_PXA config I2C_PXA
tristate "Intel PXA2XX I2C adapter" tristate "Intel PXA2XX I2C adapter"
depends on ARCH_PXA || ARCH_MMP || ARCH_MVEBU || (X86_32 && PCI && OF) depends on ARCH_PXA || ARCH_MMP || ARCH_MVEBU || (X86_32 && PCI && OF) || COMPILE_TEST
help help
If you have devices in the PXA I2C bus, say yes to this option. If you have devices in the PXA I2C bus, say yes to this option.
This driver can also be built as a module. If so, the module This driver can also be built as a module. If so, the module
...@@ -933,7 +937,7 @@ config HAVE_S3C2410_I2C ...@@ -933,7 +937,7 @@ config HAVE_S3C2410_I2C
config I2C_S3C2410 config I2C_S3C2410
tristate "S3C2410 I2C Driver" tristate "S3C2410 I2C Driver"
depends on HAVE_S3C2410_I2C depends on HAVE_S3C2410_I2C || COMPILE_TEST
help help
Say Y here to include support for I2C controller in the Say Y here to include support for I2C controller in the
Samsung SoCs. Samsung SoCs.
...@@ -971,7 +975,7 @@ config I2C_SIMTEC ...@@ -971,7 +975,7 @@ config I2C_SIMTEC
config I2C_SIRF config I2C_SIRF
tristate "CSR SiRFprimaII I2C interface" tristate "CSR SiRFprimaII I2C interface"
depends on ARCH_SIRF depends on ARCH_SIRF || COMPILE_TEST
help help
If you say yes to this option, support will be included for the If you say yes to this option, support will be included for the
CSR SiRFprimaII I2C interface. CSR SiRFprimaII I2C interface.
...@@ -981,14 +985,14 @@ config I2C_SIRF ...@@ -981,14 +985,14 @@ config I2C_SIRF
config I2C_SPRD config I2C_SPRD
tristate "Spreadtrum I2C interface" tristate "Spreadtrum I2C interface"
depends on I2C=y && ARCH_SPRD depends on I2C=y && (ARCH_SPRD || COMPILE_TEST)
help help
If you say yes to this option, support will be included for the If you say yes to this option, support will be included for the
Spreadtrum I2C interface. Spreadtrum I2C interface.
config I2C_ST config I2C_ST
tristate "STMicroelectronics SSC I2C support" tristate "STMicroelectronics SSC I2C support"
depends on ARCH_STI depends on ARCH_STI || COMPILE_TEST
help help
Enable this option to add support for STMicroelectronics SoCs Enable this option to add support for STMicroelectronics SoCs
hardware SSC (Synchronous Serial Controller) as an I2C controller. hardware SSC (Synchronous Serial Controller) as an I2C controller.
...@@ -1019,7 +1023,7 @@ config I2C_STM32F7 ...@@ -1019,7 +1023,7 @@ config I2C_STM32F7
config I2C_STU300 config I2C_STU300
tristate "ST Microelectronics DDC I2C interface" tristate "ST Microelectronics DDC I2C interface"
depends on MACH_U300 depends on MACH_U300 || COMPILE_TEST
default y if MACH_U300 default y if MACH_U300
help help
If you say yes to this option, support will be included for the If you say yes to this option, support will be included for the
...@@ -1055,15 +1059,16 @@ config I2C_SYNQUACER ...@@ -1055,15 +1059,16 @@ config I2C_SYNQUACER
config I2C_TEGRA config I2C_TEGRA
tristate "NVIDIA Tegra internal I2C controller" tristate "NVIDIA Tegra internal I2C controller"
depends on ARCH_TEGRA depends on ARCH_TEGRA || (COMPILE_TEST && (ARC || ARM || ARM64 || M68K || RISCV || SUPERH || SPARC))
# COMPILE_TEST needs architectures with readsX()/writesX() primitives
help help
If you say yes to this option, support will be included for the If you say yes to this option, support will be included for the
I2C controller embedded in NVIDIA Tegra SOCs I2C controller embedded in NVIDIA Tegra SOCs
config I2C_TEGRA_BPMP config I2C_TEGRA_BPMP
tristate "NVIDIA Tegra BPMP I2C controller" tristate "NVIDIA Tegra BPMP I2C controller"
depends on TEGRA_BPMP depends on TEGRA_BPMP || COMPILE_TEST
default y default y if TEGRA_BPMP
help help
If you say yes to this option, support will be included for the I2C If you say yes to this option, support will be included for the I2C
controller embedded in NVIDIA Tegra SoCs accessed via the BPMP. controller embedded in NVIDIA Tegra SoCs accessed via the BPMP.
...@@ -1101,7 +1106,7 @@ config I2C_VERSATILE ...@@ -1101,7 +1106,7 @@ config I2C_VERSATILE
config I2C_WMT config I2C_WMT
tristate "Wondermedia WM8xxx SoC I2C bus support" tristate "Wondermedia WM8xxx SoC I2C bus support"
depends on ARCH_VT8500 depends on ARCH_VT8500 || COMPILE_TEST
help help
Say yes if you want to support the I2C bus on Wondermedia 8xxx-series Say yes if you want to support the I2C bus on Wondermedia 8xxx-series
SoCs. SoCs.
...@@ -1142,7 +1147,7 @@ config I2C_XILINX ...@@ -1142,7 +1147,7 @@ config I2C_XILINX
config I2C_XLR config I2C_XLR
tristate "Netlogic XLR and Sigma Designs I2C support" tristate "Netlogic XLR and Sigma Designs I2C support"
depends on CPU_XLR || ARCH_TANGO depends on CPU_XLR || ARCH_TANGO || COMPILE_TEST
help help
This driver enables support for the on-chip I2C interface of This driver enables support for the on-chip I2C interface of
the Netlogic XLR/XLS MIPS processors and Sigma Designs SOCs. the Netlogic XLR/XLS MIPS processors and Sigma Designs SOCs.
...@@ -1294,7 +1299,7 @@ config I2C_ICY ...@@ -1294,7 +1299,7 @@ config I2C_ICY
config I2C_MLXCPLD config I2C_MLXCPLD
tristate "Mellanox I2C driver" tristate "Mellanox I2C driver"
depends on X86_64 depends on X86_64 || COMPILE_TEST
help help
This exposes the Mellanox platform I2C busses to the linux I2C layer This exposes the Mellanox platform I2C busses to the linux I2C layer
for X86 based systems. for X86 based systems.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment