#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/clk.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/err.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/cpufreq.h>
#include <linux/gpio.h>
#include <linux/of_i2c.h>
#include <linux/of_device.h>
#include <mach/hardware.h>
#include <linux/platform_data/i2c-davinci.h>
Go to the source code of this file.
#define DAVINCI_I2C_CLKH_REG 0x10 |
#define DAVINCI_I2C_CLKL_REG 0x0c |
#define DAVINCI_I2C_CNT_REG 0x14 |
#define DAVINCI_I2C_DRR_REG 0x18 |
#define DAVINCI_I2C_DXR_REG 0x20 |
#define DAVINCI_I2C_EMDR_REG 0x2c |
#define DAVINCI_I2C_IMR_AAS BIT(6) |
#define DAVINCI_I2C_IMR_AL BIT(0) |
#define DAVINCI_I2C_IMR_ARDY BIT(2) |
#define DAVINCI_I2C_IMR_NACK BIT(1) |
#define DAVINCI_I2C_IMR_REG 0x04 |
#define DAVINCI_I2C_IMR_RRDY BIT(3) |
#define DAVINCI_I2C_IMR_SCD BIT(5) |
#define DAVINCI_I2C_IMR_XRDY BIT(4) |
#define DAVINCI_I2C_IVR_AAS 0x07 |
#define DAVINCI_I2C_IVR_AL 0x01 |
#define DAVINCI_I2C_IVR_ARDY 0x03 |
#define DAVINCI_I2C_IVR_NACK 0x02 |
#define DAVINCI_I2C_IVR_RDR 0x04 |
#define DAVINCI_I2C_IVR_REG 0x28 |
#define DAVINCI_I2C_IVR_SCD 0x06 |
#define DAVINCI_I2C_IVR_XRDY 0x05 |
#define DAVINCI_I2C_MAX_TRIES 2 |
#define DAVINCI_I2C_MDR_IRS BIT(5) |
#define DAVINCI_I2C_MDR_MST BIT(10) |
#define DAVINCI_I2C_MDR_NACK BIT(15) |
#define DAVINCI_I2C_MDR_REG 0x24 |
#define DAVINCI_I2C_MDR_RM BIT(7) |
#define DAVINCI_I2C_MDR_STP BIT(11) |
#define DAVINCI_I2C_MDR_STT BIT(13) |
#define DAVINCI_I2C_MDR_TRX BIT(9) |
#define DAVINCI_I2C_MDR_XA BIT(8) |
#define DAVINCI_I2C_OAR_REG 0x00 |
#define davinci_i2c_pm_ops NULL |
#define DAVINCI_I2C_PSC_REG 0x30 |
#define DAVINCI_I2C_SAR_REG 0x1c |
#define DAVINCI_I2C_STR_AL BIT(0) |
#define DAVINCI_I2C_STR_ARDY BIT(2) |
#define DAVINCI_I2C_STR_BB BIT(12) |
#define DAVINCI_I2C_STR_NACK BIT(1) |
#define DAVINCI_I2C_STR_REG 0x08 |
#define DAVINCI_I2C_STR_RSFULL BIT(11) |
#define DAVINCI_I2C_STR_SCD BIT(5) |
#define DAVINCI_I2C_TIMEOUT (1*HZ) |
#define I2C_DAVINCI_INTR_ALL |
Value:
DAVINCI_I2C_IMR_SCD | \
DAVINCI_I2C_IMR_ARDY | \
DAVINCI_I2C_IMR_NACK | \
DAVINCI_I2C_IMR_AL)
Definition at line 51 of file i2c-davinci.c.
MODULE_ALIAS |
( |
"platform:i2c_davinci" |
| ) |
|
MODULE_AUTHOR |
( |
"Texas Instruments India" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
of |
, |
|
|
davinci_i2c_of_match |
|
|
) |
| |
module_exit |
( |
davinci_i2c_exit_driver |
| ) |
|
subsys_initcall |
( |
davinci_i2c_init_driver |
| ) |
|