diff options
Diffstat (limited to 'drivers/i2c/busses/i2c-pca-isa.c')
-rw-r--r-- | drivers/i2c/busses/i2c-pca-isa.c | 14 |
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 */ |
44 | static int clock = I2C_PCA_CON_59kHz; | 44 | static int clock = 59000; |
45 | 45 | ||
46 | static wait_queue_head_t pca_wait; | 46 | static wait_queue_head_t pca_wait; |
47 | 47 | ||
@@ -103,7 +103,7 @@ static struct i2c_algo_pca_data pca_isa_data = { | |||
103 | static struct i2c_adapter pca_isa_ops = { | 103 | static 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 | ||
198 | MODULE_AUTHOR("Ian Campbell <icampbell@arcom.com>"); | 198 | MODULE_AUTHOR("Ian Campbell <icampbell@arcom.com>"); |
199 | MODULE_DESCRIPTION("ISA base PCA9564 driver"); | 199 | MODULE_DESCRIPTION("ISA base PCA9564/PCA9665 driver"); |
200 | MODULE_LICENSE("GPL"); | 200 | MODULE_LICENSE("GPL"); |
201 | 201 | ||
202 | module_param(base, ulong, 0); | 202 | module_param(base, ulong, 0); |
@@ -205,7 +205,13 @@ MODULE_PARM_DESC(base, "I/O base address"); | |||
205 | module_param(irq, int, 0); | 205 | module_param(irq, int, 0); |
206 | MODULE_PARM_DESC(irq, "IRQ"); | 206 | MODULE_PARM_DESC(irq, "IRQ"); |
207 | module_param(clock, int, 0); | 207 | module_param(clock, int, 0); |
208 | MODULE_PARM_DESC(clock, "Clock rate as described in table 1 of PCA9564 datasheet"); | 208 | MODULE_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 | ||
210 | module_init(pca_isa_init); | 216 | module_init(pca_isa_init); |
211 | module_exit(pca_isa_exit); | 217 | module_exit(pca_isa_exit); |