Mercurial > pt1.oyama
diff driver/pt1_i2c.c @ 77:517e61637f7b
a bit cleanup
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 01 Dec 2009 18:33:01 +0900 |
parents | 67e8eca28a80 |
children | 3c2123189edf |
line wrap: on
line diff
--- a/driver/pt1_i2c.c Sat Nov 28 06:24:21 2009 +0900 +++ b/driver/pt1_i2c.c Tue Dec 01 18:33:01 2009 +0900 @@ -35,7 +35,7 @@ __u32 val ; val = ((base_addr << I2C_DATA) | (writemode << I2C_WRIET_MODE) | - ( data_en << I2C_DATA_EN) | + ( data_en << I2C_DATA_EN) | (clock << I2C_CLOCK) | (busy << I2C_BUSY) | i2caddr) ; writel(val, regs + FIFO_ADDR); } @@ -57,7 +57,7 @@ // XC3S初期化 for(lp = 0 ; lp < PROGRAM_ADDRESS ; lp++){ makei2c(regs, lp, 0, READ_EN, DATA_DIS, CLOCK_DIS, BUSY_DIS); - } + } // XC3S 初期化待ち (512 PCI Clocks) for(lp = 0 ; lp < XC3S_PCI_CLOCK ; lp++){ makei2c(regs, 0, 0, READ_EN, DATA_DIS, CLOCK_DIS, BUSY_DIS); @@ -291,7 +291,7 @@ clock = TRUE ; address += 1 ; - // ここから Read + // ここから Read start_i2c(regs, &address, &clock, old_bits); old_bits = 0 ; // まずアドレスを書く