Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
i2c-xlr.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/i2c.h>
#include <linux/io.h>
#include <linux/platform_device.h>

Go to the source code of this file.

Data Structures

struct  xlr_i2c_private
 

Macros

#define XLR_I2C_CFG   0x00
 
#define XLR_I2C_CLKDIV   0x01
 
#define XLR_I2C_DEVADDR   0x02
 
#define XLR_I2C_ADDR   0x03
 
#define XLR_I2C_DATAOUT   0x04
 
#define XLR_I2C_DATAIN   0x05
 
#define XLR_I2C_STATUS   0x06
 
#define XLR_I2C_STARTXFR   0x07
 
#define XLR_I2C_BYTECNT   0x08
 
#define XLR_I2C_HDSTATIM   0x09
 
#define XLR_I2C_BUS_BUSY   0x01
 
#define XLR_I2C_SDOEMPTY   0x02
 
#define XLR_I2C_RXRDY   0x04
 
#define XLR_I2C_ACK_ERR   0x08
 
#define XLR_I2C_ARB_STARTERR   0x30
 
#define XLR_I2C_CFG_ADDR   0xF8
 
#define XLR_I2C_CFG_NOADDR   0xFA
 
#define XLR_I2C_STARTXFR_ND   0x02 /* No Data */
 
#define XLR_I2C_STARTXFR_RD   0x01 /* Read */
 
#define XLR_I2C_STARTXFR_WR   0x00 /* Write */
 
#define XLR_I2C_TIMEOUT   10 /* timeout per byte in msec */
 

Functions

 module_platform_driver (xlr_i2c_driver)
 
 MODULE_AUTHOR ("Ganesan Ramalingam <[email protected]>")
 
 MODULE_DESCRIPTION ("XLR/XLS SoC I2C Controller driver")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_ALIAS ("platform:xlr-i2cbus")
 

Macro Definition Documentation

#define XLR_I2C_ACK_ERR   0x08

Definition at line 37 of file i2c-xlr.c.

#define XLR_I2C_ADDR   0x03

Definition at line 25 of file i2c-xlr.c.

#define XLR_I2C_ARB_STARTERR   0x30

Definition at line 38 of file i2c-xlr.c.

#define XLR_I2C_BUS_BUSY   0x01

Definition at line 34 of file i2c-xlr.c.

#define XLR_I2C_BYTECNT   0x08

Definition at line 30 of file i2c-xlr.c.

#define XLR_I2C_CFG   0x00

Definition at line 22 of file i2c-xlr.c.

#define XLR_I2C_CFG_ADDR   0xF8

Definition at line 41 of file i2c-xlr.c.

#define XLR_I2C_CFG_NOADDR   0xFA

Definition at line 42 of file i2c-xlr.c.

#define XLR_I2C_CLKDIV   0x01

Definition at line 23 of file i2c-xlr.c.

#define XLR_I2C_DATAIN   0x05

Definition at line 27 of file i2c-xlr.c.

#define XLR_I2C_DATAOUT   0x04

Definition at line 26 of file i2c-xlr.c.

#define XLR_I2C_DEVADDR   0x02

Definition at line 24 of file i2c-xlr.c.

#define XLR_I2C_HDSTATIM   0x09

Definition at line 31 of file i2c-xlr.c.

#define XLR_I2C_RXRDY   0x04

Definition at line 36 of file i2c-xlr.c.

#define XLR_I2C_SDOEMPTY   0x02

Definition at line 35 of file i2c-xlr.c.

#define XLR_I2C_STARTXFR   0x07

Definition at line 29 of file i2c-xlr.c.

#define XLR_I2C_STARTXFR_ND   0x02 /* No Data */

Definition at line 43 of file i2c-xlr.c.

#define XLR_I2C_STARTXFR_RD   0x01 /* Read */

Definition at line 44 of file i2c-xlr.c.

#define XLR_I2C_STARTXFR_WR   0x00 /* Write */

Definition at line 45 of file i2c-xlr.c.

#define XLR_I2C_STATUS   0x06

Definition at line 28 of file i2c-xlr.c.

#define XLR_I2C_TIMEOUT   10 /* timeout per byte in msec */

Definition at line 47 of file i2c-xlr.c.

Function Documentation

MODULE_ALIAS ( "platform:xlr-i2cbus"  )
MODULE_AUTHOR ( "Ganesan Ramalingam <[email protected]>"  )
MODULE_DESCRIPTION ( "XLR/XLS SoC I2C Controller driver )
MODULE_LICENSE ( "GPL v2 )
module_platform_driver ( xlr_i2c_driver  )