Lines Matching refs:rev
210 u32 rev; member
296 if (omap->rev >= OMAP_I2C_REV_ON_3430_3530) in __omap_i2c_init()
321 if (omap->rev >= OMAP_I2C_OMAP1_REV_2) { in omap_i2c_reset()
347 if (omap->rev > OMAP_I2C_REV_ON_3430_3530) { in omap_i2c_reset()
365 if (omap->rev >= OMAP_I2C_REV_ON_3430_3530) { in omap_i2c_init()
479 if (omap->rev <= OMAP_I2C_REV_ON_3430_3530) { in omap_i2c_init()
642 if (omap->rev < OMAP_I2C_REV_ON_3630) in omap_i2c_resize_fifo()
1185 .rev = OMAP_I2C_IP_VERSION_1,
1193 .rev = OMAP_I2C_IP_VERSION_1,
1199 .rev = OMAP_I2C_IP_VERSION_1,
1204 .rev = OMAP_I2C_IP_VERSION_2,
1229 #define OMAP_I2C_SCHEME(rev) ((rev & 0xc000) >> 14) argument
1231 #define OMAP_I2C_REV_SCHEME_0_MAJOR(rev) (rev >> 4) argument
1232 #define OMAP_I2C_REV_SCHEME_0_MINOR(rev) (rev & 0xf) argument
1234 #define OMAP_I2C_REV_SCHEME_1_MAJOR(rev) ((rev & 0x0700) >> 7) argument
1235 #define OMAP_I2C_REV_SCHEME_1_MINOR(rev) (rev & 0x1f) argument
1324 u32 rev; in omap_i2c_probe() local
1380 rev = readw_relaxed(omap->base + 0x04); in omap_i2c_probe()
1382 omap->scheme = OMAP_I2C_SCHEME(rev); in omap_i2c_probe()
1386 omap->rev = omap_i2c_read_reg(omap, OMAP_I2C_REV_REG); in omap_i2c_probe()
1387 minor = OMAP_I2C_REV_SCHEME_0_MAJOR(omap->rev); in omap_i2c_probe()
1388 major = OMAP_I2C_REV_SCHEME_0_MAJOR(omap->rev); in omap_i2c_probe()
1394 rev = (rev << 16) | in omap_i2c_probe()
1396 minor = OMAP_I2C_REV_SCHEME_1_MINOR(rev); in omap_i2c_probe()
1397 major = OMAP_I2C_REV_SCHEME_1_MAJOR(rev); in omap_i2c_probe()
1398 omap->rev = rev; in omap_i2c_probe()
1403 if (omap->rev >= OMAP_I2C_REV_ON_2430 && in omap_i2c_probe()
1404 omap->rev < OMAP_I2C_REV_ON_4430_PLUS) in omap_i2c_probe()
1407 if (omap->rev <= OMAP_I2C_REV_ON_3430_3530) in omap_i2c_probe()
1425 if (omap->rev < OMAP_I2C_REV_ON_3630) in omap_i2c_probe()
1437 if (omap->rev < OMAP_I2C_OMAP1_REV_2) in omap_i2c_probe()
1515 if (omap->rev < OMAP_I2C_OMAP1_REV_2) { in omap_i2c_runtime_suspend()