|
@@ -29,9 +29,6 @@
|
|
*
|
|
*
|
|
*/
|
|
*/
|
|
|
|
|
|
-/** Includes *******************************************************************
|
|
|
|
-*******************************************************************************/
|
|
|
|
-
|
|
|
|
#include <linux/clk.h>
|
|
#include <linux/clk.h>
|
|
#include <linux/completion.h>
|
|
#include <linux/completion.h>
|
|
#include <linux/delay.h>
|
|
#include <linux/delay.h>
|
|
@@ -57,9 +54,6 @@
|
|
#include <linux/sched.h>
|
|
#include <linux/sched.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/slab.h>
|
|
|
|
|
|
-/** Defines ********************************************************************
|
|
|
|
-*******************************************************************************/
|
|
|
|
-
|
|
|
|
/* This will be the driver name the kernel reports */
|
|
/* This will be the driver name the kernel reports */
|
|
#define DRIVER_NAME "imx-i2c"
|
|
#define DRIVER_NAME "imx-i2c"
|
|
|
|
|
|
@@ -123,9 +117,6 @@
|
|
|
|
|
|
#define I2C_PM_TIMEOUT 10 /* ms */
|
|
#define I2C_PM_TIMEOUT 10 /* ms */
|
|
|
|
|
|
-/** Variables ******************************************************************
|
|
|
|
-*******************************************************************************/
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* sorted list of clock divider, register value pairs
|
|
* sorted list of clock divider, register value pairs
|
|
* taken from table 26-5, p.26-9, Freescale i.MX
|
|
* taken from table 26-5, p.26-9, Freescale i.MX
|
|
@@ -419,9 +410,6 @@ static void i2c_imx_dma_free(struct imx_i2c_struct *i2c_imx)
|
|
dma->chan_using = NULL;
|
|
dma->chan_using = NULL;
|
|
}
|
|
}
|
|
|
|
|
|
-/** Functions for IMX I2C adapter driver ***************************************
|
|
|
|
-*******************************************************************************/
|
|
|
|
-
|
|
|
|
static int i2c_imx_bus_busy(struct imx_i2c_struct *i2c_imx, int for_busy)
|
|
static int i2c_imx_bus_busy(struct imx_i2c_struct *i2c_imx, int for_busy)
|
|
{
|
|
{
|
|
unsigned long orig_jiffies = jiffies;
|
|
unsigned long orig_jiffies = jiffies;
|