Lines Matching refs:hsregs
144 struct exynos5_hsi2c *hsregs = i2c_bus->hsregs; in hsi2c_get_clk_details() local
161 t_ftl_cycle = (readl(&hsregs->usi_conf) >> 16) & 0x7; in hsi2c_get_clk_details()
178 struct exynos5_hsi2c *hsregs = i2c_bus->hsregs; in hsi2c_ch_init() local
205 writel(HSI2C_TRAILING_COUNT, &hsregs->usi_trailing_ctl); in hsi2c_ch_init()
208 clrsetbits_le32(&hsregs->usi_timeout, HSI2C_TIMEOUT_EN, 0); in hsi2c_ch_init()
211 writel(readl(&hsregs->usi_conf) | HSI2C_AUTO_MODE, &hsregs->usi_conf); in hsi2c_ch_init()
214 writel(HSI2C_INT_I2C_EN, &hsregs->usi_int_en); in hsi2c_ch_init()
217 writel(HSI2C_RXFIFO_EN | HSI2C_TXFIFO_EN, &hsregs->usi_fifo_ctl); in hsi2c_ch_init()
220 writel(i2c_timing_s1, &hsregs->usi_timing_fs1); in hsi2c_ch_init()
221 writel(i2c_timing_s2, &hsregs->usi_timing_fs2); in hsi2c_ch_init()
222 writel(i2c_timing_s3, &hsregs->usi_timing_fs3); in hsi2c_ch_init()
223 writel(i2c_timing_sla, &hsregs->usi_timing_sla); in hsi2c_ch_init()
229 struct exynos5_hsi2c *i2c = i2c_bus->hsregs; in exynos5_i2c_reset()
470 struct exynos5_hsi2c *hsregs = i2c_bus->hsregs; in exynos_hs_i2c_xfer() local
475 ret = hsi2c_read(hsregs, msg->addr, 0, 0, msg->buf, in exynos_hs_i2c_xfer()
478 ret = hsi2c_write(hsregs, msg->addr, 0, 0, msg->buf, in exynos_hs_i2c_xfer()
516 ret = hsi2c_read(i2c_bus->hsregs, chip, 0, 0, buf, 1); in s3c24x0_i2c_probe()
529 i2c_bus->hsregs = dev_read_addr_ptr(dev); in s3c_i2c_of_to_plat()