Linux Kernel
3.7.1
|
#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") | |
#define DPRAM_BASE ((u8 __iomem __force *)cpm_muram_addr(0)) |
#define I2C_EB_CPM2 (0x30) /* Big endian mode, memory snoop */ |
MODULE_AUTHOR | ( | "Jochen Friedrich <[email protected]>" | ) |
MODULE_DEVICE_TABLE | ( | of | , |
cpm_i2c_match | |||
) |
MODULE_LICENSE | ( | "GPL" | ) |
module_platform_driver | ( | cpm_i2c_driver | ) |