Changeset 3639
- Timestamp:
- 06/12/02 04:29:54 (11 years ago)
- Location:
- i2c/trunk
- Files:
-
- 4 modified
-
CHANGES (modified) (1 diff)
-
kernel/i2c-algo-8xx.c (modified) (8 diffs)
-
kernel/i2c-algo-8xx.h (modified) (1 diff)
-
kernel/i2c-rpx.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
i2c/trunk/CHANGES
r3638 r3639 21 21 i2c.h: Add defines for SMBus 2.0 22 22 i2c-core.c: Beginnings of PEC; change back to 'old' CONFIG names 23 i2c-algo-8xx.[ch]: Add GPL23 i2c-algo-8xx.[ch]: Compile updates, Add GPL 24 24 i2c-id.h: Add driver ID for Savage 4, smbus-arp, smbus-alert, DS1307, 25 25 SA-1110. 26 26 i2c-proc.c: Check kmalloc() return code (sync with kernel 2.4.18) 27 i2c-rpx.c: Compile updates 27 28 mkpatch: Change back to 'old' CONFIG names 28 29 Makefiles: For 2.4+ kernels, modules now install in -
i2c/trunk/kernel/i2c-algo-8xx.c
r3638 r3639 39 39 40 40 #include <asm/mpc8xx.h> 41 #include "../../arch/ppc/8xx_io/commproc.h"41 #include <asm/commproc.h> 42 42 43 43 #include <linux/i2c.h> … … 49 49 static ushort r_tbase, r_rbase; 50 50 51 int cpm_scan = 0;51 int cpm_scan = 1; 52 52 int cpm_debug = 0; 53 53 54 54 static void 55 cpm_iic_interrupt(void *dev_id )55 cpm_iic_interrupt(void *dev_id, void *regs) 56 56 { 57 57 volatile i2c8xx_t *i2c = (i2c8xx_t *)dev_id; … … 170 170 iip->iic_rstate = 0; 171 171 iip->iic_rdp = 0; 172 iip->iic_rbptr = 0;172 iip->iic_rbptr = r_rbase; 173 173 iip->iic_rbc = 0; 174 174 iip->iic_rxtmp = 0; 175 175 iip->iic_tstate = 0; 176 176 iip->iic_tdp = 0; 177 iip->iic_tbptr = 0;177 iip->iic_tbptr = r_tbase; 178 178 iip->iic_tbc = 0; 179 179 iip->iic_txtmp = 0; … … 233 233 tb[0] = abyte; /* Device address byte w/rw flag */ 234 234 235 flush_dcache_range( tb, tb+1);235 flush_dcache_range((unsigned long) tb, (unsigned long) (tb+1)); 236 236 237 237 if (cpm_debug) printk("cpm_iic_read(abyte=0x%x)\n", abyte); … … 247 247 rbdf->cbd_sc = BD_SC_EMPTY | BD_SC_WRAP; 248 248 249 invalidate_dcache_range( buf, buf+count);249 invalidate_dcache_range((unsigned long) buf, (unsigned long) (buf+count)); 250 250 251 251 /* Chip bug, set enable here */ … … 288 288 289 289 290 invalidate_dcache_range( buf, buf+count);290 invalidate_dcache_range((unsigned long) buf, (unsigned long) (buf+count)); 291 291 292 292 return count; … … 314 314 *tb = abyte; /* Device address byte w/rw flag */ 315 315 316 flush_dcache_range( tb, tb+1);317 flush_dcache_range( buf, buf+count);316 flush_dcache_range((unsigned long) tb, (unsigned long) (tb+1)); 317 flush_dcache_range((unsigned long) buf, (unsigned long) (buf+count)); 318 318 319 319 if (cpm_debug) printk("cpm_iic_write(abyte=0x%x)\n", abyte); … … 397 397 len = 2; 398 398 399 flush_dcache_range( tb, tb+1);399 flush_dcache_range((unsigned long) tb, (unsigned long) (tb+1)); 400 400 401 401 tbdf->cbd_bufaddr = __pa(tb); -
i2c/trunk/kernel/i2c-algo-8xx.h
r3638 r3639 32 32 33 33 int (*setisr) (int irq, 34 void (*func)( int, void (*)(void *), void *),34 void (*func)(void *, void *), 35 35 void *data); 36 36 -
i2c/trunk/kernel/i2c-rpx.c
r3578 r3639 7 7 * 8 8 * RPX lite specific parts of the i2c interface 9 * Update: There actually isn't anything RPXLite-specific about this module. 10 * This should work for most any 8xx board. The console messages have been 11 * changed to eliminate RPXLite references. 9 12 */ 10 13 … … 17 20 18 21 #include <asm/mpc8xx.h> 19 #include "../../arch/ppc/8xx_io/commproc.h"22 #include <asm/commproc.h> 20 23 21 24 #include <linux/i2c.h> … … 56 59 } 57 60 58 static int rpx_install_isr(int irq, void (*func)(void * ), void *data)61 static int rpx_install_isr(int irq, void (*func)(void *, void *), void *data) 59 62 { 60 63 /* install interrupt handler */ 61 cpm_install_handler(irq, func, data);64 cpm_install_handler(irq, (void (*)(void *, struct pt_regs *)) func, data); 62 65 63 66 return 0; … … 94 97 95 98 static struct i2c_adapter rpx_ops = { 96 " rpx",99 "m8xx", 97 100 I2C_HW_MPC8XX_EPON, 98 101 NULL, … … 106 109 int __init i2c_rpx_init(void) 107 110 { 108 printk("i2c-rpx.o: i2c RPX Litemodule version %s (%s)\n", I2C_VERSION, I2C_DATE);111 printk("i2c-rpx.o: i2c MPC8xx module version %s (%s)\n", I2C_VERSION, I2C_DATE); 109 112 110 113 /* reset hardware to sane state */ … … 126 129 #ifdef MODULE 127 130 MODULE_AUTHOR("Dan Malek <dmalek@jlc.net>"); 128 MODULE_DESCRIPTION("I2C-Bus adapter routines for EP RPX Lite");131 MODULE_DESCRIPTION("I2C-Bus adapter routines for MPC8xx boards"); 129 132 130 133 module_init(i2c_rpx_init);
