Home
last modified time | relevance | path

Searched refs:reg_shift (Results 1 – 23 of 23) sorted by relevance

/u-boot/drivers/i2c/
A Dmxc_i2c.c192 writeb(idx, base + (IFDR << reg_shift)); in bus_i2c_set_bus_speed()
196 writeb(0, base + (I2SR << reg_shift)); in bus_i2c_set_bus_speed()
213 sr = readb(base + (I2SR << reg_shift)); in wait_for_sr_state()
217 (I2SR << reg_shift)); in wait_for_sr_state()
220 (I2SR << reg_shift)); in wait_for_sr_state()
246 writeb(byte, base + (I2DR << reg_shift)); in tx_byte()
277 writeb(temp, base + (I2CR << reg_shift)); in i2c_imx_stop()
319 temp = readb(base + (I2CR << reg_shift)); in i2c_init_transfer_()
321 writeb(temp, base + (I2CR << reg_shift)); in i2c_init_transfer_()
504 writeb(0, base + (I2SR << reg_shift)); in i2c_early_init_f()
[all …]
A Docores_i2c.c65 u32 reg_shift; member
89 writeb(value, i2c->base + (reg << i2c->reg_shift)); in oc_setreg_8()
94 writew(value, i2c->base + (reg << i2c->reg_shift)); in oc_setreg_16()
99 writel(value, i2c->base + (reg << i2c->reg_shift)); in oc_setreg_32()
104 out_be16(i2c->base + (reg << i2c->reg_shift), value); in oc_setreg_16be()
114 return readb(i2c->base + (reg << i2c->reg_shift)); in oc_getreg_8()
119 return readw(i2c->base + (reg << i2c->reg_shift)); in oc_getreg_16()
124 return readl(i2c->base + (reg << i2c->reg_shift)); in oc_getreg_32()
129 return in_be16(i2c->base + (reg << i2c->reg_shift)); in oc_getreg_16be()
134 return in_be32(i2c->base + (reg << i2c->reg_shift)); in oc_getreg_32be()
[all …]
/u-boot/drivers/net/
A Ddwmac_socfpga.c25 u32 reg_shift; member
62 pdata->reg_shift = args.args[1]; in dwmac_socfpga_of_to_plat()
70 u32 modemask = SYSMGR_EMACGRP_CTRL_PHYSEL_MASK << pdata->reg_shift; in dwmac_socfpga_do_setphy()
80 modereg << pdata->reg_shift); in dwmac_socfpga_do_setphy()
87 modereg << pdata->reg_shift); in dwmac_socfpga_do_setphy()
/u-boot/arch/arm/mach-lpc32xx/
A Ddevices.c47 { .base = UART3_BASE, .reg_shift = 2,
49 { .base = UART4_BASE, .reg_shift = 2,
51 { .base = UART5_BASE, .reg_shift = 2,
53 { .base = UART6_BASE, .reg_shift = 2,
/u-boot/drivers/serial/
A Dserial_rockchip.c35 plat->plat.reg_shift = plat->dtplat.reg_shift; in rockchip_serial_probe()
A Dns16550.c122 writeb(value, addr + (1 << plat->reg_shift) - 1); in serial_out_dynamic()
142 return readb(addr + (1 << plat->reg_shift) - 1); in serial_in_dynamic()
165 offset *= 1 << plat->reg_shift; in ns16550_writeb()
171 serial_out_shift(addr, plat->reg_shift, value); in ns16550_writeb()
179 offset *= 1 << plat->reg_shift; in ns16550_readb()
185 return serial_in_shift(addr, plat->reg_shift); in ns16550_readb()
479 info->reg_shift = plat->reg_shift; in ns16550_serial_getinfo()
551 plat->reg_shift = dev_read_u32_default(dev, "reg-shift", 0); in ns16550_serial_of_to_plat()
A Dserial_intel_mid.c28 offset *= 1 << plat->reg_shift; in mid_writel()
A Dserial_coreboot.c20 plat->reg_shift = cb_info->regwidth == 4 ? 2 : 0; in coreboot_of_to_plat()
A Dserial_omap.c117 plat->reg_shift = 2; in omap_serial_of_to_plat()
A Dsandbox.c174 .reg_shift = 0, in sandbox_serial_getinfo()
/u-boot/arch/arm/mach-omap2/am33xx/
A Dboard.c85 { .base = CONFIG_SYS_NS16550_COM1, .reg_shift = 2,
88 { .base = CONFIG_SYS_NS16550_COM2, .reg_shift = 2,
91 { .base = CONFIG_SYS_NS16550_COM3, .reg_shift = 2,
93 { .base = CONFIG_SYS_NS16550_COM4, .reg_shift = 2,
95 { .base = CONFIG_SYS_NS16550_COM5, .reg_shift = 2,
97 { .base = CONFIG_SYS_NS16550_COM6, .reg_shift = 2,
/u-boot/drivers/gpio/
A Dhsdk-creg-gpio.c34 u8 reg_shift = oft * hcg->bit_per_gpio + hcg->shift; in hsdk_creg_gpio_set_value() local
37 reg &= ~(GENMASK(hcg->bit_per_gpio - 1, 0) << reg_shift); in hsdk_creg_gpio_set_value()
38 reg |= ((val ? hcg->deactivate : hcg->activate) << reg_shift); in hsdk_creg_gpio_set_value()
/u-boot/arch/x86/cpu/apollolake/
A Duart.c109 ns.reg_shift = dtplat->reg_shift; in apl_ns16550_of_to_plat()
/u-boot/arch/x86/cpu/slimbootloader/
A Dserial.c41 plat->reg_shift = data->stride >> 1; in slimbootloader_serial_of_to_plat()
/u-boot/board/timll/devkit8000/
A Ddevkit8000.c53 .reg_shift = 2,
/u-boot/board/lg/sniper/
A Dsniper.c36 .reg_shift = 2,
/u-boot/arch/arm/mach-tegra/
A Dboard.c263 .reg_shift = 2,
/u-boot/include/
A Dns16550.h76 int reg_shift; member
A Dserial.h151 u8 reg_shift; member
/u-boot/board/isee/igep00x0/
A Digep00x0.c34 .reg_shift = 2,
/u-boot/board/davinci/da8xxevm/
A Domapl138_lcdk.c362 .reg_shift = 2,
/u-boot/arch/x86/lib/
A Dacpi_table.c399 serial_offset = serial_info.reg_offset << serial_info.reg_shift; in acpi_create_spcr()
403 switch (serial_info.reg_shift) { in acpi_create_spcr()
/u-boot/drivers/video/exynos/
A Dexynos_dp_lowlevel.c924 unsigned int reg_shift[DP_LANE_CNT_4] = { in exynos_dp_set_lane_pre_emphasis() local
932 reg = level << reg_shift[i]; in exynos_dp_set_lane_pre_emphasis()

Completed in 31 milliseconds