32.3 Driver Features
• Implements each of the functions required by a ECSPI module to interface to Linux
• Multiple SPI master controllers
• Multi-client synchronous requests
32.3.1 Source Code Structure
Table below shows the source files available in the devices directory:
<ltib_dir>/rpm/BUILD/linux/drivers/spi/
Table 32-1. CSPI Driver Files
File
Description
spi_imx.c
SPI Master Controller driver
32.3.2 Menu Configuration Options
To get to the Linux kernel configuration options provided for this module, use the ./ltib -c
command when located in the <ltib dir>.
On the screen displayed, select Configure the Kernel and exit. When the next screen
appears, select the following options to enable this module:
• CONFIG_SPI build support for the SPI core. In menuconfig, this option is available
under:
• Device Drivers > SPI Support.
• CONFIG_BITBANG is the Library code that is automatically selected by drivers
that need it. SPI_IMX selects it. In menuconfig, this option is available under:
• Device Drivers > SPI Support > Utilities for Bitbanging SPI masters.
• CONFIG_SPI_IMX implements the SPI master mode for ECSPI. In menuconfig, this
option is available under:
• Device Drivers > SPI Support > Freescale i.MX SPI controllers.
32.3.3 Programming Interface
This driver implements all the functions that are required by the SPI core to interface
with the ECSPI hardware.
Driver Features
i.MX 6Solo/6DualLite Linux Reference Manual, Rev. L3.0.35_4.1.0, 09/2013
236
Freescale Semiconductor, Inc.