ramips: allow to use the SPI driver on RT3662/RT3883
[openwrt/svn-archive/archive.git] / target / linux / ramips / patches-3.3 / 105-ramips-spi-driver.patch
1 --- a/drivers/spi/Kconfig
2 +++ b/drivers/spi/Kconfig
3 @@ -288,6 +288,12 @@ config SPI_PXA2XX
4 config SPI_PXA2XX_PCI
5 def_bool SPI_PXA2XX && X86_32 && PCI
6
7 +config SPI_RAMIPS
8 + tristate "Ralink RT288x/RT305x/RT3662 SPI Controller"
9 + depends on (SOC_RT288X || SOC_RT305X || SOC_RT3883)
10 + help
11 + This selects a driver for the Ralink RT288x/RT305x SPI Controller.
12 +
13 config SPI_S3C24XX
14 tristate "Samsung S3C24XX series SPI"
15 depends on ARCH_S3C2410 && EXPERIMENTAL
16 --- a/drivers/spi/Makefile
17 +++ b/drivers/spi/Makefile
18 @@ -45,6 +45,7 @@ obj-$(CONFIG_SPI_PL022) += spi-pl022.o
19 obj-$(CONFIG_SPI_PPC4xx) += spi-ppc4xx.o
20 obj-$(CONFIG_SPI_PXA2XX) += spi-pxa2xx.o
21 obj-$(CONFIG_SPI_PXA2XX_PCI) += spi-pxa2xx-pci.o
22 +obj-$(CONFIG_SPI_RAMIPS) += spi-ramips.o
23 obj-$(CONFIG_SPI_S3C24XX) += spi-s3c24xx-hw.o
24 spi-s3c24xx-hw-y := spi-s3c24xx.o
25 spi-s3c24xx-hw-$(CONFIG_SPI_S3C24XX_FIQ) += spi-s3c24xx-fiq.o