24.3.1 Source Code Structure
Table below shows the I2C bus driver source files available in the directory:
<ltib_dir>/rpm/BUILD/linux/drivers/i2c/busses.
Table 24-1. I2C Bus Driver Files
File
Description
i2c-imx.c
I2C bus driver source file
24.3.2 Menu Configuration Options
To get to the Linux kernel configuration option 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:
Device Drivers > I2C support > I2C Hardware Bus support > IMX I2C interface.
24.3.3 Programming Interface
The I2C device driver can use the standard SMBus interface to read and write the
registers of the device connected to the I2C bus.
For more information, see <ltib_dir>/rpm/BUILD/linux/include/linux/i2c.h.
24.3.4 Interrupt Requirements
The I2C module generates many kinds of interrupts.
The highest interrupt rate is associated with the transfer complete interrupt as shown in
table below.
Table 24-2. I2C Interrupt Requirements
Parameter
Equation
Typical
Best Case
Rate
Transfer Bit Rate/8
25,000/sec
50,000/sec
Latency
8/Transfer Bit Rate
40 μs
20 μs
Driver Features
i.MX 6SoloLite Linux Reference Manual, Rev. L3.0.35_4.1.0, 09/2013
152
Freescale Semiconductor, Inc.