Lines Matching refs:i2c
23 volatile i2c8xx_t *i2c; in iic_init() local
53 i2c = (i2c8xx_t *)&(immap->im_i2c); in iic_init()
90 i2c->i2c_i2add = 0x34; in iic_init()
94 i2c->i2c_i2brg = 7; in iic_init()
98 i2c->i2c_i2cmr = 0; in iic_init()
99 i2c->i2c_i2cer = 0xff; in iic_init()
117 volatile i2c8xx_t *i2c; in iic_read() local
133 i2c = (i2c8xx_t *)&(immap->im_i2c); in iic_read()
152 i2c->i2c_i2mod = 1; /* Enable */ in iic_read()
153 i2c->i2c_i2cer = 0xff; in iic_read()
154 i2c->i2c_i2com = 0x81; /* Start master */ in iic_read()
159 while ((i2c->i2c_i2cer & 3) == 0); in iic_read()
179 i2c->i2c_i2mod = 0; in iic_read()
194 i2c->i2c_i2mod = 1; /* Enable */ in iic_read()
195 i2c->i2c_i2cer = 0xff; in iic_read()
196 i2c->i2c_i2com = 0x81; /* Start master */ in iic_read()
201 while ((i2c->i2c_i2cer & 1) == 0); in iic_read()
213 i2c->i2c_i2mod = 0; in iic_read()