#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/io.h>
#include <linux/sched.h>
#include <linux/platform_device.h>
#include <linux/clk.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/of_i2c.h>
#include <linux/pinctrl/consumer.h>
#include <mach/hardware.h>
#include <linux/platform_data/i2c-imx.h>
Go to the source code of this file.
#define DRIVER_NAME "imx-i2c" |
Includes *******************************************************************Defines ********************************************************************
Definition at line 63 of file i2c-imx.c.
#define IMX_I2C_BIT_RATE 100000 /* 100kHz */ |
#define IMX_I2C_I2CR 0x08 /* i2c control */ |
#define IMX_I2C_I2DR 0x10 /* i2c transfer data */ |
#define IMX_I2C_I2SR 0x0C /* i2c status */ |
#define IMX_I2C_IADR 0x00 /* i2c slave address */ |
#define IMX_I2C_IFDR 0x04 /* i2c frequency divider */ |
MODULE_ALIAS |
( |
"platform:" |
DRIVER_NAME | ) |
|
MODULE_AUTHOR |
( |
"Darius Augulis" |
| ) |
|
module_exit |
( |
i2c_adap_imx_exit |
| ) |
|
subsys_initcall |
( |
i2c_adap_imx_init |
| ) |
|