Lines Matching refs:icr
40 u32 icr; member
50 u32 icr; member
75 icr_mode = readl(&base->icr) & ICR_MODE_MASK; in i2c_reset()
76 writel(readl(&base->icr) & ~ICR_IUE, &base->icr); /* disable unit */ in i2c_reset()
77 writel(readl(&base->icr) | ICR_UR, &base->icr); /* reset the unit */ in i2c_reset()
79 writel(readl(&base->icr) & ~ICR_IUE, &base->icr); /* disable unit */ in i2c_reset()
85 writel(I2C_ICR_INIT | icr_mode, &base->icr); in i2c_reset()
87 writel(readl(&base->icr) | ICR_IUE, &base->icr); /* enable unit */ in i2c_reset()
141 writel(readl(&base->icr) & ~ICR_START, &base->icr); in i2c_transfer()
142 writel(readl(&base->icr) & ~ICR_STOP, &base->icr); in i2c_transfer()
145 writel(readl(&base->icr) | ICR_START, &base->icr); in i2c_transfer()
147 writel(readl(&base->icr) | ICR_STOP, &base->icr); in i2c_transfer()
149 writel(readl(&base->icr) | ICR_ACKNAK, &base->icr); in i2c_transfer()
151 writel(readl(&base->icr) & ~ICR_ACKNAK, &base->icr); in i2c_transfer()
152 writel(readl(&base->icr) & ~ICR_ALDIE, &base->icr); in i2c_transfer()
153 writel(readl(&base->icr) | ICR_TB, &base->icr); in i2c_transfer()
175 writel(readl(&base->icr) & ~ICR_START, &base->icr); in i2c_transfer()
176 writel(readl(&base->icr) & ~ICR_STOP, &base->icr); in i2c_transfer()
178 writel(readl(&base->icr) | ICR_START, &base->icr); in i2c_transfer()
180 writel(readl(&base->icr) | ICR_STOP, &base->icr); in i2c_transfer()
182 writel(readl(&base->icr) | ICR_ACKNAK, &base->icr); in i2c_transfer()
184 writel(readl(&base->icr) & ~ICR_ACKNAK, &base->icr); in i2c_transfer()
185 writel(readl(&base->icr) & ~ICR_ALDIE, &base->icr); in i2c_transfer()
186 writel(readl(&base->icr) | ICR_TB, &base->icr); in i2c_transfer()
380 u32 icr; in i2c_board_init() local
389 icr = readl(&base->icr); in i2c_board_init()
390 writel(readl(&base->icr) & ~(ICR_SCLE | ICR_IUE), &base->icr); in i2c_board_init()
394 writel(icr, &base->icr); in i2c_board_init()
443 clrsetbits_le32(&base_glob->icr, ICR_MODE_MASK, val); in i2c_init()
574 clrsetbits_le32(&priv->base->icr, ICR_MODE_MASK, val); in mv_i2c_set_bus_speed()