mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
MXS: Implement DMA support into mxs-i2c
This patch implements DMA support into mxs-i2c. DMA transfers are now enabled via DT. The DMA operation is enabled by default. Signed-off-by: Marek Vasut <[email protected]> Tested-by: Fabio Estevam <[email protected]> [wsa: rebased to 3.6-rc7] Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
102084d3d3
commit
62885f59a2
3 changed files with 251 additions and 22 deletions
|
|
@ -6,6 +6,7 @@ Required properties:
|
|||
- interrupts: Should contain ERROR and DMA interrupts
|
||||
- clock-frequency: Desired I2C bus clock frequency in Hz.
|
||||
Only 100000Hz and 400000Hz modes are supported.
|
||||
- fsl,i2c-dma-channel: APBX DMA channel for the I2C
|
||||
|
||||
Examples:
|
||||
|
||||
|
|
@ -16,4 +17,5 @@ i2c0: i2c@80058000 {
|
|||
reg = <0x80058000 2000>;
|
||||
interrupts = <111 68>;
|
||||
clock-frequency = <100000>;
|
||||
fsl,i2c-dma-channel = <6>;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue