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>
Showing
- Documentation/devicetree/bindings/spi/fsl-spi.txt 1 addition, 0 deletionsDocumentation/devicetree/bindings/spi/fsl-spi.txt
- drivers/spi/Kconfig 6 additions, 1 deletiondrivers/spi/Kconfig
- drivers/spi/Makefile 1 addition, 0 deletionsdrivers/spi/Makefile
- drivers/spi/spi-fsl-cpm.c 387 additions, 0 deletionsdrivers/spi/spi-fsl-cpm.c
- drivers/spi/spi-fsl-cpm.h 43 additions, 0 deletionsdrivers/spi/spi-fsl-cpm.h
- drivers/spi/spi-fsl-lib.c 8 additions, 0 deletionsdrivers/spi/spi-fsl-lib.c
- drivers/spi/spi-fsl-lib.h 4 additions, 2 deletionsdrivers/spi/spi-fsl-lib.h
- drivers/spi/spi-fsl-spi.c 9 additions, 402 deletionsdrivers/spi/spi-fsl-spi.c
- drivers/spi/spi-fsl-spi.h 61 additions, 0 deletionsdrivers/spi/spi-fsl-spi.h
Loading
Please register or sign in to comment