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

Go to the source code of this file.

Data Structures

struct  i2c_versatile
 

Macros

#define I2C_CONTROL   0x00
 
#define I2C_CONTROLS   0x00
 
#define I2C_CONTROLC   0x04
 
#define SCL   (1 << 0)
 
#define SDA   (1 << 1)
 

Functions

 MODULE_DEVICE_TABLE (of, i2c_versatile_match)
 
 subsys_initcall (i2c_versatile_init)
 
 module_exit (i2c_versatile_exit)
 
 MODULE_DESCRIPTION ("ARM Versatile I2C bus driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:versatile-i2c")
 

Macro Definition Documentation

#define I2C_CONTROL   0x00

Definition at line 21 of file i2c-versatile.c.

#define I2C_CONTROLC   0x04

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

#define I2C_CONTROLS   0x00

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

#define SCL   (1 << 0)

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

#define SDA   (1 << 1)

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

Function Documentation

MODULE_ALIAS ( "platform:versatile-i2c"  )
MODULE_DESCRIPTION ( "ARM Versatile I2C bus driver )
MODULE_DEVICE_TABLE ( of  ,
i2c_versatile_match   
)
module_exit ( i2c_versatile_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( i2c_versatile_init  )