Searched refs:scl (Results 1 - 25 of 27) sorted by relevance

12

/u-boot/arch/arm/mach-imx/
H A Di2c-mxv7.c18 int sda, scl; local
24 gpio_direction_input(p->scl.gp);
27 imx_iomux_v3_setup_pad(p->scl.gpio_mode);
30 scl = gpio_get_value(p->scl.gp);
31 if ((sda & scl) == 1)
34 printf("%s: sda=%d scl=%d sda.gp=0x%x scl.gp=0x%x\n", __func__,
35 sda, scl, p->sda.gp, p->scl
[all...]
/u-boot/arch/arm/include/asm/mach-imx/
H A Dmxc_i2c.h21 struct i2c_pin_ctrl scl; member in struct:i2c_pads_info
38 * scl-gpio: specify the gpio related to SCL pin
70 .scl = { \
82 .scl = { \
/u-boot/arch/arm/mach-nexell/
H A Dtimer.c61 static inline void timer_clock(void __iomem *base, int ch, int mux, int scl) argument
65 writel(val | ((scl - 1) << TCFG0_BIT_CH(ch)), base + REG_TCFG0);
119 int mux = 0, scl = 0; local
129 mout = rate / (1 << mux), scl = mout / TIMER_FREQ,
130 thz = mout / scl;
131 if (!(mout % TIMER_FREQ) && 256 > scl) {
132 tclk = thz, tmux = mux, tscl = scl;
135 if (scl > 256)
139 tclk = thz, tmux = mux, tscl = scl;
/u-boot/drivers/i2c/
H A Di2c-gpio.c34 /* sda, scl */
63 struct gpio_desc *scl = &bus->gpios[PIN_SCL]; local
67 dm_gpio_clrset_flags(scl, GPIOD_MASK_DIR, GPIOD_IS_IN);
68 while (!dm_gpio_get_value(scl) && count++ < 100000)
71 if (!dm_gpio_get_value(scl))
72 pr_err("timeout waiting on slave to release scl\n");
74 dm_gpio_clrset_flags(scl, GPIOD_MASK_DIR, GPIOD_IS_OUT);
81 struct gpio_desc *scl = &bus->gpios[PIN_SCL]; local
86 dm_gpio_clrset_flags(scl, GPIOD_MASK_DIR, flags);
340 /* "gpios" is deprecated and replaced by "sda-gpios" + "scl
[all...]
H A Drcar_i2c.c249 u32 scgd, cdf, round, ick, sum, scl; local
296 * scl = ick / (20 + (scgd * 8) + round);
300 scl = ick / (20 + (scgd * 8) + round);
301 if (scl <= bus_freq_hz)
309 scl, bus_freq_hz, clk_get_rate(&priv->clk), round, cdf, scgd);
329 "i2c-scl-rising-time-ns", 200);
331 "i2c-scl-falling-time-ns", 35);
333 "i2c-scl-internal-delay-ns", 5);
H A Dmxc_i2c.c382 * scl-gpios: specify the gpio related to SCL pin
396 int sda, scl, idle_sclks; local
414 scl = dm_gpio_get_value(scl_gpio);
417 if ((sda & scl) == 1)
446 scl = dm_gpio_get_value(scl_gpio);
448 if ((sda & scl) == 1)
454 printf("%s: failed to clear bus, sda=%d scl=%d\n", __func__, sda, scl);
921 "scl-gpios", 0, &i2c_bus->scl_gpio,
930 "i2c bus %d at 0x%2lx, fail to request scl/sd
[all...]
H A Domap24xx_i2c.c198 unsigned long scl; local
201 scl = internal_clk / speed;
202 *pscl = scl - (scl / 3) - I2C_FASTSPEED_SCLL_TRIM;
203 *psch = (scl / 3) - I2C_FASTSPEED_SCLH_TRIM;
394 /* toggle scl 9 clocks */
/u-boot/board/freescale/imx8mp_evk/
H A Dspl.c58 .scl = {
/u-boot/board/wandboard/
H A Dwandboard.c159 .scl = {
176 .scl = {
193 .scl = {
210 .scl = {
/u-boot/board/embest/mx6boards/
H A Dmx6boards.c153 .scl = {
170 .scl = {
187 .scl = {
/u-boot/arch/arm/mach-zynq/include/mach/
H A Dhardware.h26 u32 scl; /* 0x0 */ member in struct:slcr_regs
/u-boot/board/purism/librem5/
H A Dspl.c82 .scl = {
95 .scl = {
108 .scl = {
121 .scl = {
/u-boot/board/toradex/verdin-imx8mp/
H A Dspl.c78 .scl = {
/u-boot/board/engicam/imx8mp/
H A Dspl.c43 .scl = {
/u-boot/board/compulab/imx8mm-cl-iot-gate/
H A Dspl.c55 .scl = {
/u-boot/board/kosagi/novena/
H A Dnovena_spl.c202 .scl = {
221 .scl = {
240 .scl = {
/u-boot/board/gateworks/gw_ventana/
H A Dgw_ventana_spl.c689 .scl = {
700 .scl = {
711 .scl = {
726 .scl = {
737 .scl = {
748 .scl = {
/u-boot/board/phytec/phycore_imx8mp/
H A Dspl.c119 .scl = {
/u-boot/board/mntre/imx8mq_reform2/
H A Dspl.c43 .scl = {
/u-boot/board/msc/sm2s_imx8mp/
H A Dspl.c200 .scl = {
/u-boot/board/advantech/imx8mp_rsb3720a1/
H A Dspl.c68 .scl = {
/u-boot/board/freescale/imx8mq_evk/
H A Dspl.c49 .scl = {
/u-boot/board/compulab/cl-som-imx7/
H A Dcl-som-imx7.c41 .scl = {
/u-boot/board/kontron/pitx_imx8m/
H A Dspl.c60 .scl = {
/u-boot/board/tq/tqma6/
H A Dtqma6.c177 .scl = {

Completed in 193 milliseconds

12