Home
last modified time | relevance | path

Searched refs:i2c_clk (Results 1 – 17 of 17) sorted by relevance

/linux-3.4.99/arch/cris/arch-v10/drivers/ !
Di2c.c73 #define i2c_clk(x) \ macro
99 #define i2c_clk(x) \ macro
101 ~IO_MASK(R_PORT_PB_I2C, i2c_clk)) | IO_FIELD(R_PORT_PB_I2C, i2c_clk, (x))); \
134 i2c_clk(I2C_CLOCK_HIGH); in i2c_start()
144 i2c_clk(I2C_CLOCK_LOW); in i2c_start()
158 i2c_clk(I2C_CLOCK_LOW); in i2c_stop()
164 i2c_clk(I2C_CLOCK_HIGH); in i2c_stop()
192 i2c_clk(I2C_CLOCK_HIGH); in i2c_outbyte()
194 i2c_clk(I2C_CLOCK_LOW); in i2c_outbyte()
230 i2c_clk(I2C_CLOCK_HIGH); in i2c_inbyte()
[all …]
/linux-3.4.99/arch/cris/arch-v32/drivers/ !
Di2c.c73 #define i2c_clk(x) crisv32_io_set(&cris_i2c_clk, x) macro
103 i2c_clk(I2C_CLOCK_HIGH); in i2c_start()
113 i2c_clk(I2C_CLOCK_LOW); in i2c_start()
127 i2c_clk(I2C_CLOCK_LOW); in i2c_stop()
133 i2c_clk(I2C_CLOCK_HIGH); in i2c_stop()
161 i2c_clk(I2C_CLOCK_HIGH); in i2c_outbyte()
163 i2c_clk(I2C_CLOCK_LOW); in i2c_outbyte()
199 i2c_clk(I2C_CLOCK_HIGH); in i2c_inbyte()
201 i2c_clk(I2C_CLOCK_LOW); in i2c_inbyte()
216 i2c_clk(I2C_CLOCK_HIGH); in i2c_inbyte()
[all …]
/linux-3.4.99/drivers/staging/nvec/ !
Dnvec.c678 clk_enable(nvec->i2c_clk); in tegra_init_i2c_slave()
680 tegra_periph_reset_assert(nvec->i2c_clk); in tegra_init_i2c_slave()
682 tegra_periph_reset_deassert(nvec->i2c_clk); in tegra_init_i2c_slave()
688 clk_set_rate(nvec->i2c_clk, 8 * 80000); in tegra_init_i2c_slave()
698 clk_disable(nvec->i2c_clk); in tegra_init_i2c_slave()
705 clk_disable(nvec->i2c_clk); in nvec_disable_i2c_slave()
717 struct clk *i2c_clk; in tegra_nvec_probe() local
776 i2c_clk = clk_get_sys("tegra-i2c.2", NULL); in tegra_nvec_probe()
777 if (IS_ERR(i2c_clk)) { in tegra_nvec_probe()
784 nvec->i2c_clk = i2c_clk; in tegra_nvec_probe()
[all …]
Dnvec.h163 struct clk *i2c_clk; member
/linux-3.4.99/drivers/i2c/busses/ !
Di2c-tegra.c126 struct clk *i2c_clk; member
583 struct clk *i2c_clk; in tegra_i2c_probe() local
621 i2c_clk = clk_get(&pdev->dev, "i2c"); in tegra_i2c_probe()
622 if (IS_ERR(i2c_clk)) { in tegra_i2c_probe()
624 ret = PTR_ERR(i2c_clk); in tegra_i2c_probe()
636 i2c_dev->i2c_clk = i2c_clk; in tegra_i2c_probe()
675 clk_enable(i2c_dev->i2c_clk); in tegra_i2c_probe()
701 clk_put(i2c_clk); in tegra_i2c_probe()
716 clk_put(i2c_dev->i2c_clk); in tegra_i2c_remove()
Di2c-sh_mobile.c191 unsigned long i2c_clk; in activate_ch() local
201 i2c_clk = clk_get_rate(pd->clk); in activate_ch()
208 num = i2c_clk * 5; in activate_ch()
226 num = i2c_clk * 4; in activate_ch()
Di2c-nomadik.c315 u32 i2c_clk, div; in setup_i2c_controller() local
334 i2c_clk = clk_get_rate(dev->clk); in setup_i2c_controller()
355 brcr2 = (i2c_clk/(dev->cfg.clk_freq * div)) & 0xffff; in setup_i2c_controller()
369 brcr2 = i2c_clk/(100000 * 2) & 0xffff; in setup_i2c_controller()
/linux-3.4.99/arch/arm/mach-imx/ !
Dclock-imx25.c250 DEFINE_CLOCK(i2c_clk, 0, CCM_CGCR0, 6, get_rate_i2c, NULL, NULL);
297 _REGISTER_CLOCK("imx-i2c.0", NULL, i2c_clk)
298 _REGISTER_CLOCK("imx-i2c.1", NULL, i2c_clk)
299 _REGISTER_CLOCK("imx-i2c.2", NULL, i2c_clk)
Dclock-imx1.c538 static struct clk i2c_clk = { variable
593 _REGISTER_CLOCK("imx-i2c.0", NULL, i2c_clk)
Dclock-imx21.c1003 static struct clk i2c_clk = { variable
1190 _REGISTER_CLOCK("imx-i2c.0", NULL, i2c_clk)
/linux-3.4.99/arch/powerpc/platforms/512x/ !
Dclock.c460 static struct clk i2c_clk = { variable
571 &i2c_clk,
/linux-3.4.99/arch/arm/mach-spear6xx/ !
Dclock.c519 static struct clk i2c_clk = { variable
659 { .dev_id = "d0200000.i2c", .clk = &i2c_clk},
/linux-3.4.99/arch/arm/mach-spear3xx/ !
Dclock.c439 static struct clk i2c_clk = { variable
683 { .dev_id = "i2c_designware.0", .clk = &i2c_clk},
/linux-3.4.99/arch/arm/mach-davinci/ !
Ddm644x.c196 static struct clk i2c_clk = { variable
310 CLK("i2c_davinci.1", NULL, &i2c_clk),
Ddm646x.c232 static struct clk i2c_clk = { variable
348 CLK("i2c_davinci.1", NULL, &i2c_clk),
Ddm355.c217 static struct clk i2c_clk = { variable
361 CLK("i2c_davinci.1", NULL, &i2c_clk),
Ddm365.c279 static struct clk i2c_clk = { variable
456 CLK("i2c_davinci.1", NULL, &i2c_clk),