diff options
author | Andreas Larsson <andreas@gaisler.com> | 2013-02-15 10:52:21 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2013-04-07 05:07:54 -0400 |
commit | e8beacbb85a5c1de1117400c5ddb450514a8372c (patch) | |
tree | 3853de80b818360820443a34eb22885224c5628f /drivers/spi/Kconfig | |
parent | 58ad60bbb2abada33fbeae88943ab038e2fcc0ef (diff) |
spi/spi-fsl-spi: Make driver usable in CPU mode outside of an FSL_SOC environment
This makes the spi-fsl-spi driver usable in CPU mode outside of an FSL_SOC and
even an powerpc environment by moving CPM mode functionality to a separate file
that is only compiled and linked in an FSL_SOC environment and adding some
ifdefs to hide types and functions or provide alternatives.
For devicetree probing a "clock-frequency" property is used for clock frequency
instead of calls to FSL_SOC-specific functions.
Acked-by: Anton Vorontsov <anton@enomsg.org>
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/Kconfig')
-rw-r--r-- | drivers/spi/Kconfig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 32b85d43bbe2..3524bec5ae5b 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig | |||
@@ -229,12 +229,17 @@ config SPI_MPC512x_PSC | |||
229 | 229 | ||
230 | config SPI_FSL_LIB | 230 | config SPI_FSL_LIB |
231 | tristate | 231 | tristate |
232 | depends on OF | ||
233 | |||
234 | config SPI_FSL_CPM | ||
235 | tristate | ||
232 | depends on FSL_SOC | 236 | depends on FSL_SOC |
233 | 237 | ||
234 | config SPI_FSL_SPI | 238 | config SPI_FSL_SPI |
235 | bool "Freescale SPI controller" | 239 | bool "Freescale SPI controller" |
236 | depends on FSL_SOC | 240 | depends on OF |
237 | select SPI_FSL_LIB | 241 | select SPI_FSL_LIB |
242 | select SPI_FSL_CPM if FSL_SOC | ||
238 | help | 243 | help |
239 | This enables using the Freescale SPI controllers in master mode. | 244 | This enables using the Freescale SPI controllers in master mode. |
240 | MPC83xx platform uses the controller in cpu mode or CPM/QE mode. | 245 | MPC83xx platform uses the controller in cpu mode or CPM/QE mode. |