]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - drivers/spi/Kconfig
spi/imx: convert driver to use platform ids
[mirror_ubuntu-jammy-kernel.git] / drivers / spi / Kconfig
index 91c2f4f3af10ecfc33a6a101a19b0f1762c79aea..4e9d77bc7d2fc8d53716e245e6e28e1038d5599f 100644 (file)
@@ -143,10 +143,23 @@ config SPI_GPIO
          GPIO operations, you should be able to leverage that for better
          speed with a custom version of this driver; see the source code.
 
+config SPI_IMX_VER_IMX1
+       def_bool y if SOC_IMX1
+
+config SPI_IMX_VER_0_0
+       def_bool y if SOC_IMX21 || SOC_IMX27
+
+config SPI_IMX_VER_0_4
+       def_bool y if ARCH_MX31
+
+config SPI_IMX_VER_0_7
+       def_bool y if ARCH_MX25 || ARCH_MX35
+
 config SPI_IMX
        tristate "Freescale i.MX SPI controllers"
        depends on ARCH_MXC
        select SPI_BITBANG
+       default m if IMX_HAVE_PLATFORM_SPI_IMX
        help
          This enables using the Freescale i.MX SPI controllers in master
          mode.