Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
i2c-cpm.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/errno.h>
#include <linux/stddef.h>
#include <linux/i2c.h>
#include <linux/io.h>
#include <linux/dma-mapping.h>
#include <linux/of_device.h>
#include <linux/of_platform.h>
#include <linux/of_i2c.h>
#include <sysdev/fsl_soc.h>
#include <asm/cpm.h>

Go to the source code of this file.

Data Structures

struct  i2c_ram
 
struct  i2c_reg
 
struct  cpm_i2c
 

Macros

#define CPM_MAX_READ   513
 
#define CPM_MAXBD   4
 
#define I2C_EB   (0x10) /* Big endian mode */
 
#define I2C_EB_CPM2   (0x30) /* Big endian mode, memory snoop */
 
#define DPRAM_BASE   ((u8 __iomem __force *)cpm_muram_addr(0))
 
#define I2COM_START   0x80
 
#define I2COM_MASTER   0x01
 
#define I2CER_TXE   0x10
 
#define I2CER_BUSY   0x04
 
#define I2CER_TXB   0x02
 
#define I2CER_RXB   0x01
 
#define I2MOD_EN   0x01
 

Functions

 MODULE_DEVICE_TABLE (of, cpm_i2c_match)
 
 module_platform_driver (cpm_i2c_driver)
 
 MODULE_AUTHOR ("Jochen Friedrich <[email protected]>")
 
 MODULE_DESCRIPTION ("I2C-Bus adapter routines for CPM boards")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CPM_MAX_READ   513

Definition at line 53 of file i2c-cpm.c.

#define CPM_MAXBD   4

Definition at line 54 of file i2c-cpm.c.

#define DPRAM_BASE   ((u8 __iomem __force *)cpm_muram_addr(0))

Definition at line 59 of file i2c-cpm.c.

#define I2C_EB   (0x10) /* Big endian mode */

Definition at line 56 of file i2c-cpm.c.

#define I2C_EB_CPM2   (0x30) /* Big endian mode, memory snoop */

Definition at line 57 of file i2c-cpm.c.

#define I2CER_BUSY   0x04

Definition at line 86 of file i2c-cpm.c.

#define I2CER_RXB   0x01

Definition at line 88 of file i2c-cpm.c.

#define I2CER_TXB   0x02

Definition at line 87 of file i2c-cpm.c.

#define I2CER_TXE   0x10

Definition at line 85 of file i2c-cpm.c.

#define I2COM_MASTER   0x01

Definition at line 84 of file i2c-cpm.c.

#define I2COM_START   0x80

Definition at line 83 of file i2c-cpm.c.

#define I2MOD_EN   0x01

Definition at line 89 of file i2c-cpm.c.

Function Documentation

MODULE_AUTHOR ( "Jochen Friedrich <[email protected]>"  )
MODULE_DESCRIPTION ( "I2C-Bus adapter routines for CPM boards"  )
MODULE_DEVICE_TABLE ( of  ,
cpm_i2c_match   
)
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( cpm_i2c_driver  )