Lines Matching refs:hsregs
141 struct exynos5_hsi2c *hsregs = i2c_bus->hsregs; in hsi2c_get_clk_details() local
158 t_ftl_cycle = (readl(&hsregs->usi_conf) >> 16) & 0x7; in hsi2c_get_clk_details()
175 struct exynos5_hsi2c *hsregs = i2c_bus->hsregs; in hsi2c_ch_init() local
202 writel(HSI2C_TRAILING_COUNT, &hsregs->usi_trailing_ctl); in hsi2c_ch_init()
205 clrsetbits_le32(&hsregs->usi_timeout, HSI2C_TIMEOUT_EN, 0); in hsi2c_ch_init()
208 writel(readl(&hsregs->usi_conf) | HSI2C_AUTO_MODE, &hsregs->usi_conf); in hsi2c_ch_init()
211 writel(HSI2C_INT_I2C_EN, &hsregs->usi_int_en); in hsi2c_ch_init()
214 writel(HSI2C_RXFIFO_EN | HSI2C_TXFIFO_EN, &hsregs->usi_fifo_ctl); in hsi2c_ch_init()
217 writel(i2c_timing_s1, &hsregs->usi_timing_fs1); in hsi2c_ch_init()
218 writel(i2c_timing_s2, &hsregs->usi_timing_fs2); in hsi2c_ch_init()
219 writel(i2c_timing_s3, &hsregs->usi_timing_fs3); in hsi2c_ch_init()
220 writel(i2c_timing_sla, &hsregs->usi_timing_sla); in hsi2c_ch_init()
226 struct exynos5_hsi2c *i2c = i2c_bus->hsregs; in exynos5_i2c_reset()
467 struct exynos5_hsi2c *hsregs = i2c_bus->hsregs; in exynos_hs_i2c_xfer() local
472 ret = hsi2c_read(hsregs, msg->addr, 0, 0, msg->buf, in exynos_hs_i2c_xfer()
475 ret = hsi2c_write(hsregs, msg->addr, 0, 0, msg->buf, in exynos_hs_i2c_xfer()
513 ret = hsi2c_read(i2c_bus->hsregs, chip, 0, 0, buf, 1); in s3c24x0_i2c_probe()
526 i2c_bus->hsregs = (struct exynos5_hsi2c *)devfdt_get_addr(dev); in s3c_i2c_ofdata_to_platdata()