Home
last modified time | relevance | path

Searched refs:i2c_base (Results 1 – 11 of 11) sorted by relevance

/openbmc/u-boot/drivers/i2c/
H A Ddavinci_i2c.c34 REG(&(i2c_base->i2c_con)) = 0;\
39 static int _wait_for_bus(struct i2c_regs *i2c_base) in _wait_for_bus() argument
43 REG(&(i2c_base->i2c_stat)) = 0xffff; in _wait_for_bus()
46 stat = REG(&(i2c_base->i2c_stat)); in _wait_for_bus()
48 REG(&(i2c_base->i2c_stat)) = 0xffff; in _wait_for_bus()
52 REG(&(i2c_base->i2c_stat)) = stat; in _wait_for_bus()
56 REG(&(i2c_base->i2c_stat)) = 0xffff; in _wait_for_bus()
60 static int _poll_i2c_irq(struct i2c_regs *i2c_base, int mask) in _poll_i2c_irq() argument
66 stat = REG(&(i2c_base->i2c_stat)); in _poll_i2c_irq()
71 REG(&(i2c_base->i2c_stat)) = 0xffff; in _poll_i2c_irq()
[all …]
H A Ddesignware_i2c.c41 static int dw_i2c_enable(struct i2c_regs *i2c_base, bool enable) in dw_i2c_enable() argument
45 writel(ena, &i2c_base->ic_enable); in dw_i2c_enable()
50 static int dw_i2c_enable(struct i2c_regs *i2c_base, bool enable) in dw_i2c_enable() argument
56 writel(ena, &i2c_base->ic_enable); in dw_i2c_enable()
57 if ((readl(&i2c_base->ic_enable_status) & IC_ENABLE_0B) == ena) in dw_i2c_enable()
79 static unsigned int __dw_i2c_set_bus_speed(struct i2c_regs *i2c_base, in __dw_i2c_set_bus_speed() argument
95 dw_i2c_enable(i2c_base, false); in __dw_i2c_set_bus_speed()
97 cntl = (readl(&i2c_base->ic_con) & (~IC_CON_SPD_MSK)); in __dw_i2c_set_bus_speed()
110 writel(hcnt, &i2c_base->ic_hs_scl_hcnt); in __dw_i2c_set_bus_speed()
111 writel(lcnt, &i2c_base->ic_hs_scl_lcnt); in __dw_i2c_set_bus_speed()
[all …]
H A Domap24xx_i2c.c220 static int wait_for_bb(void __iomem *i2c_base, int ip_rev, int waitdelay) in wait_for_bb() argument
230 omap_i2c_write_reg(i2c_base, ip_rev, 0xFFFF, OMAP_I2C_STAT_REG); in wait_for_bb()
232 while ((stat = omap_i2c_read_reg(i2c_base, ip_rev, irq_stat_reg) & in wait_for_bb()
234 omap_i2c_write_reg(i2c_base, ip_rev, stat, OMAP_I2C_STAT_REG); in wait_for_bb()
244 omap_i2c_write_reg(i2c_base, ip_rev, 0xFFFF, OMAP_I2C_STAT_REG); in wait_for_bb()
252 static u16 wait_for_event(void __iomem *i2c_base, int ip_rev, int waitdelay) in wait_for_event() argument
262 status = omap_i2c_read_reg(i2c_base, ip_rev, irq_stat_reg); in wait_for_event()
275 omap_i2c_write_reg(i2c_base, ip_rev, 0xFFFF, OMAP_I2C_STAT_REG); in wait_for_event()
282 static void flush_fifo(void __iomem *i2c_base, int ip_rev) in flush_fifo() argument
291 stat = omap_i2c_read_reg(i2c_base, ip_rev, OMAP_I2C_STAT_REG); in flush_fifo()
[all …]
H A Dfsl_i2c.c40 static const struct fsl_i2c_base *i2c_base[4] = { variable
499 __i2c_init(i2c_base[adap->hwadapnr], speed, slaveadd, in fsl_i2c_init()
505 return __i2c_probe_chip(i2c_base[adap->hwadapnr], chip); in fsl_i2c_probe_chip()
513 return __i2c_read(i2c_base[adap->hwadapnr], chip_addr, &o[4 - olen], in fsl_i2c_read()
522 return __i2c_write(i2c_base[adap->hwadapnr], chip_addr, &o[4 - olen], in fsl_i2c_write()
528 return __i2c_set_bus_speed(i2c_base[adap->hwadapnr], speed, in fsl_i2c_set_bus_speed()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-mchp-pci1xxxx.c329 void __iomem *i2c_base; member
336 void __iomem *p = i2c->i2c_base + SMB_GPR_LOCK_REG; in set_sys_lock()
349 void __iomem *p = i2c->i2c_base + SMB_GPR_LOCK_REG; in release_sys_lock()
366 writew(intr_msk, i2c->i2c_base + SMBUS_GEN_INT_STAT_REG_OFF); in pci1xxxx_ack_high_level_intr()
372 void __iomem *p = i2c->i2c_base + SMBALERT_MST_PAD_CTRL_REG_OFF; in pci1xxxx_i2c_configure_smbalert_pin()
387 void __iomem *p = i2c->i2c_base + SMB_CORE_CMD_REG_OFF1; in pci1xxxx_i2c_send_start_stop()
414 writeb(regval, i2c->i2c_base + SMB_CORE_CTRL_REG_OFF); in pci1xxxx_i2c_set_clear_FW_ACK()
420 void __iomem *p = i2c->i2c_base + SMBUS_MST_BUF; in pci1xxxx_i2c_buffer_write()
436 writeb(SMB_CORE_CTRL_ESO, i2c->i2c_base + SMB_CORE_CTRL_REG_OFF); in pci1xxxx_i2c_enable_ESO()
441 void __iomem *p = i2c->i2c_base + SMBUS_CONTROL_REG_OFF; in pci1xxxx_i2c_reset_counters()
[all …]
H A Di2c-cpm.c428 void __iomem *i2c_base; in cpm_i2c_setup() local
448 i2c_base = of_iomap(ofdev->dev.of_node, 1); in cpm_i2c_setup()
449 if (i2c_base == NULL) { in cpm_i2c_setup()
457 cpm->i2c_ram = i2c_base; in cpm_i2c_setup()
466 iounmap(i2c_base); in cpm_i2c_setup()
474 out_be16(i2c_base, cpm->i2c_addr); in cpm_i2c_setup()
475 iounmap(i2c_base); in cpm_i2c_setup()
480 iounmap(i2c_base); in cpm_i2c_setup()
/openbmc/u-boot/board/samsung/arndale/
H A Darndale_spl.c36 .i2c_base = 0x12c60000,
/openbmc/u-boot/board/samsung/smdk5250/
H A Dsmdk5250_spl.c38 .i2c_base = 0x12c60000,
/openbmc/u-boot/board/samsung/smdk5420/
H A Dsmdk5420_spl.c38 .i2c_base = 0x12c60000,
/openbmc/u-boot/arch/arm/mach-exynos/include/mach/
H A Dspl.h55 u32 i2c_base; /* i2c base address */ member
/openbmc/linux/drivers/clk/tegra/
H A Dclk-dfll.c265 void __iomem *i2c_base; member
351 return __raw_readl(td->i2c_base + offs); in dfll_i2c_readl()
356 __raw_writel(val, td->i2c_base + offs); in dfll_i2c_writel()
2016 td->i2c_base = devm_ioremap(td->dev, mem->start, resource_size(mem)); in tegra_dfll_register()
2017 if (!td->i2c_base) { in tegra_dfll_register()