Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/sched.h>
#include <linux/list.h>
#include <linux/unistd.h>
#include <linux/time.h>
#include <linux/device.h>
#include <linux/i2c.h>
#include <linux/mutex.h>
#include <linux/uaccess.h>
#include "go7007-priv.h"
#include "wis-i2c.h"
Go to the source code of this file.
Macros | |
#define | SPI_I2C_ADDR_BASE 0x1400 |
#define | STATUS_REG_ADDR (SPI_I2C_ADDR_BASE + 0x2) |
#define | I2C_CTRL_REG_ADDR (SPI_I2C_ADDR_BASE + 0x6) |
#define | I2C_DEV_UP_ADDR_REG_ADDR (SPI_I2C_ADDR_BASE + 0x7) |
#define | I2C_LO_ADDR_REG_ADDR (SPI_I2C_ADDR_BASE + 0x8) |
#define | I2C_DATA_REG_ADDR (SPI_I2C_ADDR_BASE + 0x9) |
#define | I2C_CLKFREQ_REG_ADDR (SPI_I2C_ADDR_BASE + 0xa) |
#define | I2C_STATE_MASK 0x0007 |
#define | I2C_READ_READY_MASK 0x0008 |
Functions | |
int | go7007_i2c_init (struct go7007 *go) |
#define I2C_CLKFREQ_REG_ADDR (SPI_I2C_ADDR_BASE + 0xa) |
Definition at line 43 of file go7007-i2c.c.
#define I2C_CTRL_REG_ADDR (SPI_I2C_ADDR_BASE + 0x6) |
Definition at line 39 of file go7007-i2c.c.
#define I2C_DATA_REG_ADDR (SPI_I2C_ADDR_BASE + 0x9) |
Definition at line 42 of file go7007-i2c.c.
#define I2C_DEV_UP_ADDR_REG_ADDR (SPI_I2C_ADDR_BASE + 0x7) |
Definition at line 40 of file go7007-i2c.c.
#define I2C_LO_ADDR_REG_ADDR (SPI_I2C_ADDR_BASE + 0x8) |
Definition at line 41 of file go7007-i2c.c.
#define I2C_READ_READY_MASK 0x0008 |
Definition at line 46 of file go7007-i2c.c.
#define I2C_STATE_MASK 0x0007 |
Definition at line 45 of file go7007-i2c.c.
#define SPI_I2C_ADDR_BASE 0x1400 |
Definition at line 37 of file go7007-i2c.c.
#define STATUS_REG_ADDR (SPI_I2C_ADDR_BASE + 0x2) |
Definition at line 38 of file go7007-i2c.c.
Definition at line 212 of file go7007-i2c.c.