aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-pca-isa.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/busses/i2c-pca-isa.c')
-rw-r--r--drivers/i2c/busses/i2c-pca-isa.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/i2c/busses/i2c-pca-isa.c b/drivers/i2c/busses/i2c-pca-isa.c
index c420a7c0f3e4..0cc8017b3f64 100644
--- a/drivers/i2c/busses/i2c-pca-isa.c
+++ b/drivers/i2c/busses/i2c-pca-isa.c
@@ -41,7 +41,7 @@ static int irq = -1;
41 41
42/* Data sheet recommends 59kHz for 100kHz operation due to variation 42/* Data sheet recommends 59kHz for 100kHz operation due to variation
43 * in the actual clock rate */ 43 * in the actual clock rate */
44static int clock = I2C_PCA_CON_59kHz; 44static int clock = 59000;
45 45
46static wait_queue_head_t pca_wait; 46static wait_queue_head_t pca_wait;
47 47
@@ -103,7 +103,7 @@ static struct i2c_algo_pca_data pca_isa_data = {
103static struct i2c_adapter pca_isa_ops = { 103static struct i2c_adapter pca_isa_ops = {
104 .owner = THIS_MODULE, 104 .owner = THIS_MODULE,
105 .algo_data = &pca_isa_data, 105 .algo_data = &pca_isa_data,
106 .name = "PCA9564 ISA Adapter", 106 .name = "PCA9564/PCA9665 ISA Adapter",
107 .timeout = 100, 107 .timeout = 100,
108}; 108};
109 109
@@ -196,7 +196,7 @@ static void __exit pca_isa_exit(void)
196} 196}
197 197
198MODULE_AUTHOR("Ian Campbell <icampbell@arcom.com>"); 198MODULE_AUTHOR("Ian Campbell <icampbell@arcom.com>");
199MODULE_DESCRIPTION("ISA base PCA9564 driver"); 199MODULE_DESCRIPTION("ISA base PCA9564/PCA9665 driver");
200MODULE_LICENSE("GPL"); 200MODULE_LICENSE("GPL");
201 201
202module_param(base, ulong, 0); 202module_param(base, ulong, 0);
@@ -205,7 +205,13 @@ MODULE_PARM_DESC(base, "I/O base address");
205module_param(irq, int, 0); 205module_param(irq, int, 0);
206MODULE_PARM_DESC(irq, "IRQ"); 206MODULE_PARM_DESC(irq, "IRQ");
207module_param(clock, int, 0); 207module_param(clock, int, 0);
208MODULE_PARM_DESC(clock, "Clock rate as described in table 1 of PCA9564 datasheet"); 208MODULE_PARM_DESC(clock, "Clock rate in hertz.\n\t\t"
209 "For PCA9564: 330000,288000,217000,146000,"
210 "88000,59000,44000,36000\n"
211 "\t\tFor PCA9665:\tStandard: 60300 - 100099\n"
212 "\t\t\t\tFast: 100100 - 400099\n"
213 "\t\t\t\tFast+: 400100 - 10000099\n"
214 "\t\t\t\tTurbo: Up to 1265800");
209 215
210module_init(pca_isa_init); 216module_init(pca_isa_init);
211module_exit(pca_isa_exit); 217module_exit(pca_isa_exit);