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

Go to the source code of this file.

Data Structures

struct  mpc_i2c
 
struct  mpc_i2c_divider
 
struct  mpc_i2c_data
 

Macros

#define DRV_NAME   "mpc-i2c"
 
#define MPC_I2C_CLOCK_LEGACY   0
 
#define MPC_I2C_CLOCK_PRESERVE   (~0U)
 
#define MPC_I2C_FDR   0x04
 
#define MPC_I2C_CR   0x08
 
#define MPC_I2C_SR   0x0c
 
#define MPC_I2C_DR   0x10
 
#define MPC_I2C_DFSRR   0x14
 
#define CCR_MEN   0x80
 
#define CCR_MIEN   0x40
 
#define CCR_MSTA   0x20
 
#define CCR_MTX   0x10
 
#define CCR_TXAK   0x08
 
#define CCR_RSTA   0x04
 
#define CSR_MCF   0x80
 
#define CSR_MAAS   0x40
 
#define CSR_MBB   0x20
 
#define CSR_MAL   0x10
 
#define CSR_SRW   0x04
 
#define CSR_MIF   0x02
 
#define CSR_RXAK   0x01
 

Functions

 MODULE_DEVICE_TABLE (of, mpc_i2c_of_match)
 
 module_platform_driver (mpc_i2c_driver)
 
 MODULE_AUTHOR ("Adrian Cox <[email protected]>")
 
 MODULE_DESCRIPTION ("I2C-Bus adapter for MPC107 bridge and ""MPC824x/83xx/85xx/86xx/512x/52xx processors")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CCR_MEN   0x80

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

#define CCR_MIEN   0x40

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

#define CCR_MSTA   0x20

Definition at line 46 of file i2c-mpc.c.

#define CCR_MTX   0x10

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

#define CCR_RSTA   0x04

Definition at line 49 of file i2c-mpc.c.

#define CCR_TXAK   0x08

Definition at line 48 of file i2c-mpc.c.

#define CSR_MAAS   0x40

Definition at line 52 of file i2c-mpc.c.

#define CSR_MAL   0x10

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

#define CSR_MBB   0x20

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

#define CSR_MCF   0x80

Definition at line 51 of file i2c-mpc.c.

#define CSR_MIF   0x02

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

#define CSR_RXAK   0x01

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

#define CSR_SRW   0x04

Definition at line 55 of file i2c-mpc.c.

#define DRV_NAME   "mpc-i2c"

Definition at line 33 of file i2c-mpc.c.

#define MPC_I2C_CLOCK_LEGACY   0

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

#define MPC_I2C_CLOCK_PRESERVE   (~0U)

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

#define MPC_I2C_CR   0x08

Definition at line 39 of file i2c-mpc.c.

#define MPC_I2C_DFSRR   0x14

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

#define MPC_I2C_DR   0x10

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

#define MPC_I2C_FDR   0x04

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

#define MPC_I2C_SR   0x0c

Definition at line 40 of file i2c-mpc.c.

Function Documentation

MODULE_AUTHOR ( "Adrian Cox <[email protected]>"  )
MODULE_DESCRIPTION ( "I2C-Bus adapter for MPC107 bridge and ""MPC824x/83xx/85xx/86xx/512x/52xx processors"  )
MODULE_DEVICE_TABLE ( of  ,
mpc_i2c_of_match   
)
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( mpc_i2c_driver  )