]> git.baikalelectronics.ru Git - kernel.git/commit
spi/spi-fsl-spi: Make driver usable in CPU mode outside of an FSL_SOC environment
authorAndreas Larsson <andreas@gaisler.com>
Fri, 15 Feb 2013 15:52:21 +0000 (16:52 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Sun, 7 Apr 2013 09:07:54 +0000 (10:07 +0100)
commitf1a7b6d023140df089e774b600a44e42f8b44b09
tree3853de80b818360820443a34eb22885224c5628f
parentade6b87e3b17342709bdcb01eafa184b76ef3364
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>
Documentation/devicetree/bindings/spi/fsl-spi.txt
drivers/spi/Kconfig
drivers/spi/Makefile
drivers/spi/spi-fsl-cpm.c [new file with mode: 0644]
drivers/spi/spi-fsl-cpm.h [new file with mode: 0644]
drivers/spi/spi-fsl-lib.c
drivers/spi/spi-fsl-lib.h
drivers/spi/spi-fsl-spi.c
drivers/spi/spi-fsl-spi.h [new file with mode: 0644]