#include <linux/module.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/i2c.h>
#include <linux/platform_device.h>
#include <linux/completion.h>
#include <linux/io.h>
#include <linux/delay.h>
#include <linux/slab.h>
Go to the source code of this file.
|
| module_platform_driver (highlander_i2c_driver) |
|
| MODULE_AUTHOR ("Paul Mundt") |
|
| MODULE_DESCRIPTION ("Renesas Highlander FPGA I2C/SMBus adapter") |
|
| MODULE_LICENSE ("GPL v2") |
|
| module_param (iic_force_poll, bool, 0) |
|
| module_param (iic_force_normal, bool, 0) |
|
| module_param (iic_timeout, int, 0) |
|
| module_param (iic_read_delay, int, 0) |
|
| MODULE_PARM_DESC (iic_force_poll,"Force polling mode") |
|
| MODULE_PARM_DESC (iic_force_normal,"Force normal mode (100 kHz), default is fast mode (400 kHz)") |
|
| MODULE_PARM_DESC (iic_timeout,"Set timeout value in msecs (default 1000 ms)") |
|
| MODULE_PARM_DESC (iic_read_delay,"Delay between data read cycles (default 0 ms)") |
|
#define SMCR_ACKE (1 << 3) |
#define SMCR_BBSY (1 << 2) |
#define SMCR_IEIC (1 << 6) |
#define SMCR_IRIC (1 << 1) |
#define SMCR_RST (1 << 4) |
#define SMCR_START (1 << 0) |
#define SMMR_CAP (1 << 3) |
#define SMMR_MODE0 (1 << 0) |
#define SMMR_MODE1 (1 << 1) |
#define SMMR_TMMD (1 << 4) |
MODULE_AUTHOR |
( |
"Paul Mundt" |
| ) |
|
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|
module_param |
( |
iic_force_poll |
, |
|
|
bool |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
iic_force_normal |
, |
|
|
bool |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
iic_timeout |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
iic_read_delay |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
iic_force_poll |
, |
|
|
"Force polling mode" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
iic_force_normal |
, |
|
|
"Force normal mode |
100 kHz, |
|
|
default is fast mode(400 kHz)" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
iic_timeout |
, |
|
|
"Set timeout value in msecs (default 1000 ms)" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
iic_read_delay |
, |
|
|
"Delay between data read cycles (default 0 ms)" |
|
|
) |
| |
module_platform_driver |
( |
highlander_i2c_driver |
| ) |
|