diff options
-rw-r--r-- | drivers/spi/Kconfig | 28 | ||||
-rw-r--r-- | drivers/spi/spi-orion.c | 1 |
2 files changed, 15 insertions, 14 deletions
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index e31bf77ab259..f3cc865df17b 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig | |||
@@ -70,14 +70,14 @@ config SPI_ATH79 | |||
70 | 70 | ||
71 | config SPI_ATMEL | 71 | config SPI_ATMEL |
72 | tristate "Atmel SPI Controller" | 72 | tristate "Atmel SPI Controller" |
73 | depends on (ARCH_AT91 || AVR32) | 73 | depends on (ARCH_AT91 || AVR32 || COMPILE_TEST) |
74 | help | 74 | help |
75 | This selects a driver for the Atmel SPI Controller, present on | 75 | This selects a driver for the Atmel SPI Controller, present on |
76 | many AT32 (AVR32) and AT91 (ARM) chips. | 76 | many AT32 (AVR32) and AT91 (ARM) chips. |
77 | 77 | ||
78 | config SPI_BCM2835 | 78 | config SPI_BCM2835 |
79 | tristate "BCM2835 SPI controller" | 79 | tristate "BCM2835 SPI controller" |
80 | depends on ARCH_BCM2835 | 80 | depends on ARCH_BCM2835 || COMPILE_TEST |
81 | help | 81 | help |
82 | This selects a driver for the Broadcom BCM2835 SPI master. | 82 | This selects a driver for the Broadcom BCM2835 SPI master. |
83 | 83 | ||
@@ -166,7 +166,7 @@ config SPI_DAVINCI | |||
166 | 166 | ||
167 | config SPI_EP93XX | 167 | config SPI_EP93XX |
168 | tristate "Cirrus Logic EP93xx SPI controller" | 168 | tristate "Cirrus Logic EP93xx SPI controller" |
169 | depends on ARCH_EP93XX | 169 | depends on ARCH_EP93XX || COMPILE_TEST |
170 | help | 170 | help |
171 | This enables using the Cirrus EP93xx SPI controller in master | 171 | This enables using the Cirrus EP93xx SPI controller in master |
172 | mode. | 172 | mode. |
@@ -198,7 +198,7 @@ config SPI_GPIO | |||
198 | 198 | ||
199 | config SPI_IMX | 199 | config SPI_IMX |
200 | tristate "Freescale i.MX SPI controllers" | 200 | tristate "Freescale i.MX SPI controllers" |
201 | depends on ARCH_MXC | 201 | depends on ARCH_MXC || COMPILE_TEST |
202 | select SPI_BITBANG | 202 | select SPI_BITBANG |
203 | default m if IMX_HAVE_PLATFORM_SPI_IMX | 203 | default m if IMX_HAVE_PLATFORM_SPI_IMX |
204 | help | 204 | help |
@@ -287,20 +287,20 @@ config SPI_OMAP_UWIRE | |||
287 | 287 | ||
288 | config SPI_OMAP24XX | 288 | config SPI_OMAP24XX |
289 | tristate "McSPI driver for OMAP" | 289 | tristate "McSPI driver for OMAP" |
290 | depends on ARCH_OMAP2PLUS | 290 | depends on ARCH_OMAP2PLUS || COMPILE_TEST |
291 | help | 291 | help |
292 | SPI master controller for OMAP24XX and later Multichannel SPI | 292 | SPI master controller for OMAP24XX and later Multichannel SPI |
293 | (McSPI) modules. | 293 | (McSPI) modules. |
294 | 294 | ||
295 | config SPI_OMAP_100K | 295 | config SPI_OMAP_100K |
296 | tristate "OMAP SPI 100K" | 296 | tristate "OMAP SPI 100K" |
297 | depends on ARCH_OMAP850 || ARCH_OMAP730 | 297 | depends on ARCH_OMAP850 || ARCH_OMAP730 || COMPILE_TEST |
298 | help | 298 | help |
299 | OMAP SPI 100K master controller for omap7xx boards. | 299 | OMAP SPI 100K master controller for omap7xx boards. |
300 | 300 | ||
301 | config SPI_ORION | 301 | config SPI_ORION |
302 | tristate "Orion SPI master" | 302 | tristate "Orion SPI master" |
303 | depends on PLAT_ORION | 303 | depends on PLAT_ORION || COMPILE_TEST |
304 | help | 304 | help |
305 | This enables using the SPI master controller on the Orion chips. | 305 | This enables using the SPI master controller on the Orion chips. |
306 | 306 | ||
@@ -348,7 +348,7 @@ config SPI_PXA2XX_PCI | |||
348 | 348 | ||
349 | config SPI_RSPI | 349 | config SPI_RSPI |
350 | tristate "Renesas RSPI controller" | 350 | tristate "Renesas RSPI controller" |
351 | depends on SUPERH | 351 | depends on SUPERH && SH_DMAE_BASE |
352 | help | 352 | help |
353 | SPI driver for Renesas RSPI blocks. | 353 | SPI driver for Renesas RSPI blocks. |
354 | 354 | ||
@@ -392,7 +392,7 @@ config SPI_SH_MSIOF | |||
392 | 392 | ||
393 | config SPI_SH | 393 | config SPI_SH |
394 | tristate "SuperH SPI controller" | 394 | tristate "SuperH SPI controller" |
395 | depends on SUPERH | 395 | depends on SUPERH || COMPILE_TEST |
396 | help | 396 | help |
397 | SPI driver for SuperH SPI blocks. | 397 | SPI driver for SuperH SPI blocks. |
398 | 398 | ||
@@ -405,7 +405,7 @@ config SPI_SH_SCI | |||
405 | 405 | ||
406 | config SPI_SH_HSPI | 406 | config SPI_SH_HSPI |
407 | tristate "SuperH HSPI controller" | 407 | tristate "SuperH HSPI controller" |
408 | depends on ARCH_SHMOBILE | 408 | depends on ARCH_SHMOBILE || COMPILE_TEST |
409 | help | 409 | help |
410 | SPI driver for SuperH HSPI blocks. | 410 | SPI driver for SuperH HSPI blocks. |
411 | 411 | ||
@@ -425,7 +425,7 @@ config SPI_MXS | |||
425 | 425 | ||
426 | config SPI_TEGRA114 | 426 | config SPI_TEGRA114 |
427 | tristate "NVIDIA Tegra114 SPI Controller" | 427 | tristate "NVIDIA Tegra114 SPI Controller" |
428 | depends on ARCH_TEGRA && TEGRA20_APB_DMA | 428 | depends on (ARCH_TEGRA && TEGRA20_APB_DMA) || COMPILE_TEST |
429 | help | 429 | help |
430 | SPI driver for NVIDIA Tegra114 SPI Controller interface. This controller | 430 | SPI driver for NVIDIA Tegra114 SPI Controller interface. This controller |
431 | is different than the older SoCs SPI controller and also register interface | 431 | is different than the older SoCs SPI controller and also register interface |
@@ -433,7 +433,7 @@ config SPI_TEGRA114 | |||
433 | 433 | ||
434 | config SPI_TEGRA20_SFLASH | 434 | config SPI_TEGRA20_SFLASH |
435 | tristate "Nvidia Tegra20 Serial flash Controller" | 435 | tristate "Nvidia Tegra20 Serial flash Controller" |
436 | depends on ARCH_TEGRA | 436 | depends on ARCH_TEGRA || COMPILE_TEST |
437 | help | 437 | help |
438 | SPI driver for Nvidia Tegra20 Serial flash Controller interface. | 438 | SPI driver for Nvidia Tegra20 Serial flash Controller interface. |
439 | The main usecase of this controller is to use spi flash as boot | 439 | The main usecase of this controller is to use spi flash as boot |
@@ -441,7 +441,7 @@ config SPI_TEGRA20_SFLASH | |||
441 | 441 | ||
442 | config SPI_TEGRA20_SLINK | 442 | config SPI_TEGRA20_SLINK |
443 | tristate "Nvidia Tegra20/Tegra30 SLINK Controller" | 443 | tristate "Nvidia Tegra20/Tegra30 SLINK Controller" |
444 | depends on ARCH_TEGRA && TEGRA20_APB_DMA | 444 | depends on (ARCH_TEGRA && TEGRA20_APB_DMA) || COMPILE_TEST |
445 | help | 445 | help |
446 | SPI driver for Nvidia Tegra20/Tegra30 SLINK Controller interface. | 446 | SPI driver for Nvidia Tegra20/Tegra30 SLINK Controller interface. |
447 | 447 | ||
@@ -464,7 +464,7 @@ config SPI_TOPCLIFF_PCH | |||
464 | 464 | ||
465 | config SPI_TXX9 | 465 | config SPI_TXX9 |
466 | tristate "Toshiba TXx9 SPI controller" | 466 | tristate "Toshiba TXx9 SPI controller" |
467 | depends on GPIOLIB && CPU_TX49XX | 467 | depends on GPIOLIB && (CPU_TX49XX || COMPILE_TEST) |
468 | help | 468 | help |
469 | SPI driver for Toshiba TXx9 MIPS SoCs | 469 | SPI driver for Toshiba TXx9 MIPS SoCs |
470 | 470 | ||
diff --git a/drivers/spi/spi-orion.c b/drivers/spi/spi-orion.c index 5d90bebaa0fa..d1bae77f157c 100644 --- a/drivers/spi/spi-orion.c +++ b/drivers/spi/spi-orion.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/module.h> | 19 | #include <linux/module.h> |
20 | #include <linux/of.h> | 20 | #include <linux/of.h> |
21 | #include <linux/clk.h> | 21 | #include <linux/clk.h> |
22 | #include <linux/sizes.h> | ||
22 | #include <asm/unaligned.h> | 23 | #include <asm/unaligned.h> |
23 | 24 | ||
24 | #define DRIVER_NAME "orion_spi" | 25 | #define DRIVER_NAME "orion_spi" |