#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.
| #define XLR_I2C_ACK_ERR 0x08 |
| #define XLR_I2C_ADDR 0x03 |
| #define XLR_I2C_ARB_STARTERR 0x30 |
| #define XLR_I2C_BUS_BUSY 0x01 |
| #define XLR_I2C_BYTECNT 0x08 |
| #define XLR_I2C_CFG_ADDR 0xF8 |
| #define XLR_I2C_CFG_NOADDR 0xFA |
| #define XLR_I2C_CLKDIV 0x01 |
| #define XLR_I2C_DATAIN 0x05 |
| #define XLR_I2C_DATAOUT 0x04 |
| #define XLR_I2C_DEVADDR 0x02 |
| #define XLR_I2C_HDSTATIM 0x09 |
| #define XLR_I2C_RXRDY 0x04 |
| #define XLR_I2C_SDOEMPTY 0x02 |
| #define XLR_I2C_STARTXFR 0x07 |
| #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_STATUS 0x06 |
| MODULE_ALIAS |
( |
"platform:xlr-i2cbus" |
| ) |
|
| MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|
| module_platform_driver |
( |
xlr_i2c_driver |
| ) |
|