Home
last modified time | relevance | path

Searched refs:regmap (Results 1 – 25 of 169) sorted by relevance

1234567

/u-boot/drivers/pinctrl/rockchip/
A Dpinctrl-rk3288.c37 struct regmap *regmap; in rk3288_set_mux() local
52 regmap_read(regmap, reg, &data); in rk3288_set_mux()
69 int pin_num, struct regmap **regmap, in rk3288_calc_pull_reg_and_bit() argument
76 *regmap = priv->regmap_pmu; in rk3288_calc_pull_reg_and_bit()
79 *regmap = priv->regmap_base; in rk3288_calc_pull_reg_and_bit()
96 struct regmap *regmap; in rk3288_set_pull() local
114 regmap_read(regmap, reg, &data); in rk3288_set_pull()
131 int pin_num, struct regmap **regmap, in rk3288_calc_drv_reg_and_bit() argument
138 *regmap = priv->regmap_pmu; in rk3288_calc_drv_reg_and_bit()
141 *regmap = priv->regmap_base; in rk3288_calc_drv_reg_and_bit()
[all …]
A Dpinctrl-rv1108.c84 struct regmap *regmap; in rv1108_set_mux() local
111 int pin_num, struct regmap **regmap, in rv1108_calc_pull_reg_and_bit() argument
118 *regmap = priv->regmap_pmu; in rv1108_calc_pull_reg_and_bit()
122 *regmap = priv->regmap_base; in rv1108_calc_pull_reg_and_bit()
136 struct regmap *regmap; in rv1108_set_pull() local
165 int pin_num, struct regmap **regmap, in rv1108_calc_drv_reg_and_bit() argument
172 *regmap = priv->regmap_pmu; in rv1108_calc_drv_reg_and_bit()
191 struct regmap *regmap; in rv1108_set_drive() local
220 struct regmap **regmap, in rv1108_calc_schmitt_reg_and_bit() argument
227 *regmap = priv->regmap_pmu; in rv1108_calc_schmitt_reg_and_bit()
[all …]
A Dpinctrl-rk3368.c19 struct regmap *regmap; in rk3368_set_mux() local
34 ret = regmap_write(regmap, reg, data); in rk3368_set_mux()
43 int pin_num, struct regmap **regmap, in rk3368_calc_pull_reg_and_bit() argument
50 *regmap = priv->regmap_pmu; in rk3368_calc_pull_reg_and_bit()
53 *regmap = priv->regmap_base; in rk3368_calc_pull_reg_and_bit()
70 struct regmap *regmap; in rk3368_set_pull() local
89 ret = regmap_write(regmap, reg, data); in rk3368_set_pull()
98 int pin_num, struct regmap **regmap, in rk3368_calc_drv_reg_and_bit() argument
105 *regmap = priv->regmap_pmu; in rk3368_calc_drv_reg_and_bit()
108 *regmap = priv->regmap_base; in rk3368_calc_drv_reg_and_bit()
[all …]
A Dpinctrl-px30.c80 struct regmap *regmap; in px30_set_mux() local
107 int pin_num, struct regmap **regmap, in px30_calc_pull_reg_and_bit() argument
114 *regmap = priv->regmap_pmu; in px30_calc_pull_reg_and_bit()
117 *regmap = priv->regmap_base; in px30_calc_pull_reg_and_bit()
133 struct regmap *regmap; in px30_set_pull() local
164 int pin_num, struct regmap **regmap, in px30_calc_drv_reg_and_bit() argument
171 *regmap = priv->regmap_pmu; in px30_calc_drv_reg_and_bit()
190 struct regmap *regmap; in px30_set_drive() local
268 struct regmap **regmap, in px30_calc_schmitt_reg_and_bit() argument
275 *regmap = priv->regmap_pmu; in px30_calc_schmitt_reg_and_bit()
[all …]
A Dpinctrl-rk3588.c18 struct regmap *regmap; in rk3588_set_mux() local
26 regmap = priv->regmap_base; in rk3588_set_mux()
51 regmap = priv->regmap_base; in rk3588_set_mux()
179 int pin_num, struct regmap **regmap, in rk3588_calc_pull_reg_and_bit() argument
196 *regmap = info->regmap_base; in rk3588_calc_pull_reg_and_bit()
205 int pin_num, struct regmap **regmap, in rk3588_calc_drv_reg_and_bit() argument
222 *regmap = info->regmap_base; in rk3588_calc_drv_reg_and_bit()
231 int pin_num, struct regmap **regmap, in rk3588_calc_schmitt_reg_and_bit() argument
258 struct regmap *regmap; in rk3588_set_pull() local
281 struct regmap *regmap; in rk3588_set_drive() local
[all …]
A Dpinctrl-rk3328.c130 struct regmap *regmap; in rk3328_set_mux() local
148 ret = regmap_write(regmap, reg, data); in rk3328_set_mux()
156 int pin_num, struct regmap **regmap, in rk3328_calc_pull_reg_and_bit() argument
161 *regmap = priv->regmap_base; in rk3328_calc_pull_reg_and_bit()
173 struct regmap *regmap; in rk3328_set_pull() local
200 int pin_num, struct regmap **regmap, in rk3328_calc_drv_reg_and_bit() argument
205 *regmap = priv->regmap_base; in rk3328_calc_drv_reg_and_bit()
217 struct regmap *regmap; in rk3328_set_drive() local
245 struct regmap **regmap, in rk3328_calc_schmitt_reg_and_bit() argument
250 *regmap = priv->regmap_base; in rk3328_calc_schmitt_reg_and_bit()
[all …]
A Dpinctrl-rk3399.c59 struct regmap *regmap; in rk3399_set_mux() local
74 ret = regmap_write(regmap, reg, data); in rk3399_set_mux()
83 int pin_num, struct regmap **regmap, in rk3399_calc_pull_reg_and_bit() argument
90 *regmap = priv->regmap_pmu; in rk3399_calc_pull_reg_and_bit()
95 *regmap = priv->regmap_base; in rk3399_calc_pull_reg_and_bit()
112 struct regmap *regmap; in rk3399_set_pull() local
131 ret = regmap_write(regmap, reg, data); in rk3399_set_pull()
137 int pin_num, struct regmap **regmap, in rk3399_calc_drv_reg_and_bit() argument
145 *regmap = priv->regmap_pmu; in rk3399_calc_drv_reg_and_bit()
147 *regmap = priv->regmap_base; in rk3399_calc_drv_reg_and_bit()
[all …]
A Dpinctrl-rk3066.c19 struct regmap *regmap; in rk3066_pinctrl_set_mux() local
24 regmap = priv->regmap_base; in rk3066_pinctrl_set_mux()
33 ret = regmap_write(regmap, reg, data); in rk3066_pinctrl_set_mux()
43 int pin_num, struct regmap **regmap, in rk3066_pinctrl_calc_pull_reg_and_bit() argument
48 *regmap = priv->regmap_base; in rk3066_pinctrl_calc_pull_reg_and_bit()
59 struct regmap *regmap; in rk3066_pinctrl_set_pull() local
68 rk3066_pinctrl_calc_pull_reg_and_bit(bank, pin_num, &regmap, &reg, &bit); in rk3066_pinctrl_set_pull()
72 ret = regmap_write(regmap, reg, data); in rk3066_pinctrl_set_pull()
A Dpinctrl-rk3188.c19 struct regmap *regmap; in rk3188_set_mux() local
24 regmap = (bank->iomux[iomux_num].type & IOMUX_SOURCE_PMU) in rk3188_set_mux()
34 ret = regmap_write(regmap, reg, data); in rk3188_set_mux()
43 int pin_num, struct regmap **regmap, in rk3188_calc_pull_reg_and_bit() argument
50 *regmap = priv->regmap_pmu; in rk3188_calc_pull_reg_and_bit()
57 *regmap = priv->regmap_base; in rk3188_calc_pull_reg_and_bit()
78 struct regmap *regmap; in rk3188_set_pull() local
86 rk3188_calc_pull_reg_and_bit(bank, pin_num, &regmap, &reg, &bit); in rk3188_set_pull()
97 ret = regmap_write(regmap, reg, data); in rk3188_set_pull()
A Dpinctrl-rk3036.c19 struct regmap *regmap; in rk3036_set_mux() local
24 regmap = (bank->iomux[iomux_num].type & IOMUX_SOURCE_PMU) in rk3036_set_mux()
34 ret = regmap_write(regmap, reg, data); in rk3036_set_mux()
44 int pin_num, struct regmap **regmap, in rk3036_calc_pull_reg_and_bit() argument
49 *regmap = priv->regmap_base; in rk3036_calc_pull_reg_and_bit()
60 struct regmap *regmap; in rk3036_set_pull() local
69 rk3036_calc_pull_reg_and_bit(bank, pin_num, &regmap, &reg, &bit); in rk3036_set_pull()
73 ret = regmap_write(regmap, reg, data); in rk3036_set_pull()
A Dpinctrl-rv1126.c150 struct regmap *regmap; in rv1126_set_mux() local
158 regmap = priv->regmap_pmu; in rv1126_set_mux()
162 regmap = priv->regmap_base; in rv1126_set_mux()
195 int pin_num, struct regmap **regmap, in rv1126_calc_pull_reg_and_bit() argument
210 *regmap = priv->regmap_pmu; in rv1126_calc_pull_reg_and_bit()
226 struct regmap *regmap; in rv1126_set_pull() local
258 int pin_num, struct regmap **regmap, in rv1126_calc_drv_reg_and_bit() argument
274 *regmap = priv->regmap_pmu; in rv1126_calc_drv_reg_and_bit()
290 struct regmap *regmap; in rv1126_set_drive() local
312 struct regmap **regmap, in rv1126_calc_schmitt_reg_and_bit() argument
[all …]
A Dpinctrl-rk3308.c258 struct regmap *regmap; in rk3308_set_mux() local
276 ret = regmap_write(regmap, reg, data); in rk3308_set_mux()
284 int pin_num, struct regmap **regmap, in rk3308_calc_pull_reg_and_bit() argument
289 *regmap = priv->regmap_base; in rk3308_calc_pull_reg_and_bit()
301 struct regmap *regmap; in rk3308_set_pull() local
329 int pin_num, struct regmap **regmap, in rk3308_calc_drv_reg_and_bit() argument
334 *regmap = priv->regmap_base; in rk3308_calc_drv_reg_and_bit()
346 struct regmap *regmap; in rk3308_set_drive() local
372 struct regmap **regmap, in rk3308_calc_schmitt_reg_and_bit() argument
377 *regmap = priv->regmap_base; in rk3308_calc_schmitt_reg_and_bit()
[all …]
A Dpinctrl-rk322x.c150 struct regmap *regmap; in rk3228_set_mux() local
155 regmap = (bank->iomux[iomux_num].type & IOMUX_SOURCE_PMU) in rk3228_set_mux()
165 ret = regmap_write(regmap, reg, data); in rk3228_set_mux()
173 int pin_num, struct regmap **regmap, in rk3228_calc_pull_reg_and_bit() argument
178 *regmap = priv->regmap_base; in rk3228_calc_pull_reg_and_bit()
190 struct regmap *regmap; in rk3228_set_pull() local
209 ret = regmap_write(regmap, reg, data); in rk3228_set_pull()
217 int pin_num, struct regmap **regmap, in rk3228_calc_drv_reg_and_bit() argument
222 *regmap = priv->regmap_base; in rk3228_calc_drv_reg_and_bit()
234 struct regmap *regmap; in rk3228_set_drive() local
[all …]
/u-boot/drivers/mfd/
A Datmel-smc.c249 void atmel_smc_cs_conf_apply(struct regmap *regmap, int cs, in atmel_smc_cs_conf_apply() argument
252 regmap_write(regmap, ATMEL_SMC_SETUP(cs), conf->setup); in atmel_smc_cs_conf_apply()
253 regmap_write(regmap, ATMEL_SMC_PULSE(cs), conf->pulse); in atmel_smc_cs_conf_apply()
254 regmap_write(regmap, ATMEL_SMC_CYCLE(cs), conf->cycle); in atmel_smc_cs_conf_apply()
255 regmap_write(regmap, ATMEL_SMC_MODE(cs), conf->mode); in atmel_smc_cs_conf_apply()
269 void atmel_hsmc_cs_conf_apply(struct regmap *regmap, in atmel_hsmc_cs_conf_apply() argument
290 void atmel_smc_cs_conf_get(struct regmap *regmap, int cs, in atmel_smc_cs_conf_get() argument
293 regmap_read(regmap, ATMEL_SMC_SETUP(cs), &conf->setup); in atmel_smc_cs_conf_get()
294 regmap_read(regmap, ATMEL_SMC_PULSE(cs), &conf->pulse); in atmel_smc_cs_conf_get()
296 regmap_read(regmap, ATMEL_SMC_MODE(cs), &conf->mode); in atmel_smc_cs_conf_get()
[all …]
/u-boot/drivers/phy/
A Dmeson-axg-mipi-dphy.c176 struct regmap *regmap; member
217 regmap_write(priv->regmap, MIPI_DSI_PHY_CTRL, 0x1); in phy_meson_axg_mipi_dphy_power_on()
218 regmap_write(priv->regmap, MIPI_DSI_PHY_CTRL, in phy_meson_axg_mipi_dphy_power_on()
235 regmap_write(priv->regmap, MIPI_DSI_CLK_TIM, in phy_meson_axg_mipi_dphy_power_on()
241 regmap_write(priv->regmap, MIPI_DSI_CLK_TIM1, in phy_meson_axg_mipi_dphy_power_on()
244 regmap_write(priv->regmap, MIPI_DSI_HS_TIM, in phy_meson_axg_mipi_dphy_power_on()
250 regmap_write(priv->regmap, MIPI_DSI_LP_TIM, in phy_meson_axg_mipi_dphy_power_on()
257 regmap_write(priv->regmap, MIPI_DSI_INIT_TIM, in phy_meson_axg_mipi_dphy_power_on()
259 regmap_write(priv->regmap, MIPI_DSI_WAKEUP_TIM, in phy_meson_axg_mipi_dphy_power_on()
261 regmap_write(priv->regmap, MIPI_DSI_LPOK_TIM, 0x7C); in phy_meson_axg_mipi_dphy_power_on()
[all …]
A Dmeson-axg-mipi-pcie-analog.c62 struct regmap *regmap; member
71 regmap_update_bits(priv->regmap, HHI_MIPI_CNTL0, in phy_bandgap_enable()
74 regmap_update_bits(priv->regmap, HHI_MIPI_CNTL0, in phy_bandgap_enable()
80 regmap_update_bits(priv->regmap, HHI_MIPI_CNTL0, in phy_bandgap_disable()
82 regmap_update_bits(priv->regmap, HHI_MIPI_CNTL0, in phy_bandgap_disable()
90 regmap_update_bits(priv->regmap, HHI_MIPI_CNTL0, in phy_dsi_analog_enable()
93 regmap_update_bits(priv->regmap, HHI_MIPI_CNTL0, in phy_dsi_analog_enable()
95 regmap_update_bits(priv->regmap, HHI_MIPI_CNTL0, in phy_dsi_analog_enable()
101 regmap_write(priv->regmap, HHI_MIPI_CNTL2, in phy_dsi_analog_enable()
215 if (IS_ERR(priv->regmap)) in meson_axg_mipi_pcie_analog_probe()
[all …]
A Dmeson-g12a-usb3-pcie.c64 struct regmap *regmap; member
79 regmap_write(priv->regmap, PHY_R4, reg); in phy_g12a_usb3_pcie_cr_bus_addr()
80 regmap_write(priv->regmap, PHY_R4, reg); in phy_g12a_usb3_pcie_cr_bus_addr()
90 regmap_write(priv->regmap, PHY_R4, reg); in phy_g12a_usb3_pcie_cr_bus_addr()
112 regmap_write(priv->regmap, PHY_R4, 0); in phy_g12a_usb3_pcie_cr_bus_read()
123 regmap_write(priv->regmap, PHY_R4, 0); in phy_g12a_usb3_pcie_cr_bus_read()
147 regmap_write(priv->regmap, PHY_R4, reg); in phy_g12a_usb3_pcie_cr_bus_write()
148 regmap_write(priv->regmap, PHY_R4, reg); in phy_g12a_usb3_pcie_cr_bus_write()
158 regmap_write(priv->regmap, PHY_R4, reg); in phy_g12a_usb3_pcie_cr_bus_write()
166 regmap_write(priv->regmap, PHY_R4, reg); in phy_g12a_usb3_pcie_cr_bus_write()
[all …]
A Dphy-ti-am654.c90 struct regmap *regmap; member
98 struct regmap *regmap; in serdes_am654_mux_clk_probe() local
114 if (IS_ERR(regmap)) { in serdes_am654_mux_clk_probe()
116 return PTR_ERR(regmap); in serdes_am654_mux_clk_probe()
119 data->regmap = regmap; in serdes_am654_mux_clk_probe()
162 if (!data->regmap) in serdes_am654_mux_clk_set_parent()
194 struct regmap *regmap; member
195 struct regmap *serdes_ctl;
360 struct regmap *serdes_ctl; in serdes_am654_probe()
361 struct regmap *map; in serdes_am654_probe()
[all …]
A Dmeson-g12a-usb2.c56 struct regmap *regmap; member
81 regmap_write(priv->regmap, PHY_CTRL_R16, 0x39400414); in phy_meson_g12a_usb2_init()
82 regmap_write(priv->regmap, PHY_CTRL_R17, 0x927e0000); in phy_meson_g12a_usb2_init()
83 regmap_write(priv->regmap, PHY_CTRL_R18, 0xac5f49e5); in phy_meson_g12a_usb2_init()
88 regmap_write(priv->regmap, PHY_CTRL_R16, 0x19400414); in phy_meson_g12a_usb2_init()
91 regmap_write(priv->regmap, PHY_CTRL_R20, 0xfe18); in phy_meson_g12a_usb2_init()
92 regmap_write(priv->regmap, PHY_CTRL_R4, 0x8000fff); in phy_meson_g12a_usb2_init()
95 regmap_write(priv->regmap, PHY_CTRL_R3, 0x34); in phy_meson_g12a_usb2_init()
98 regmap_write(priv->regmap, PHY_CTRL_R14, 0); in phy_meson_g12a_usb2_init()
99 regmap_write(priv->regmap, PHY_CTRL_R13, 0x78000); in phy_meson_g12a_usb2_init()
[all …]
/u-boot/drivers/power/pmic/
A Dab8500.c56 struct regmap *regmap; member
76 ret = regmap_read(priv->regmap, PRCM_ARM_IT1_VAL, &val); in prcmu_wait_i2c_mbx_ready()
83 ret = regmap_write(priv->regmap, PRCM_ARM_IT1_CLR, in prcmu_wait_i2c_mbx_ready()
125 ret = prcmu_tcdm_writeb(priv->regmap, PRCM_REQ_MB5_I2C_SLAVE_OP, in ab8500_transfer()
129 ret = prcmu_tcdm_writeb(priv->regmap, PRCM_REQ_MB5_I2C_HW_BITS, in ab8500_transfer()
133 ret = prcmu_tcdm_writeb(priv->regmap, PRCM_REQ_MB5_I2C_REG, reg); in ab8500_transfer()
150 ret = prcmu_tcdm_readb(priv->regmap, PRCM_ACK_MB5_I2C_VAL, val); in ab8500_transfer()
159 regmap_write(priv->regmap, PRCM_ARM_IT1_CLR, PRCMU_I2C_MBOX_BIT); in ab8500_transfer()
231 priv->regmap = syscon_get_regmap(dev->parent); in ab8500_probe()
232 if (IS_ERR(priv->regmap)) in ab8500_probe()
[all …]
/u-boot/include/
A Dregmap.h109 struct regmap { struct
131 int regmap_write(struct regmap *map, uint offset, uint val);
143 int regmap_read(struct regmap *map, uint offset, uint *valp);
179 int regmap_raw_read(struct regmap *map, uint offset, void *valp,
373 int regmap_init_mem(ofnode node, struct regmap **mapp);
393 struct regmap **mapp);
414 struct regmap **mapp);
427 struct regmap *devm_regmap_init(struct udevice *dev,
438 void *regmap_get_range(struct regmap *map, unsigned int range_num);
446 int regmap_uninit(struct regmap *map);
[all …]
A Dsyscon.h19 struct regmap *regmap; member
35 struct regmap *syscon_get_regmap(struct udevice *dev);
61 struct regmap *syscon_get_regmap_by_driver_data(ulong driver_data);
73 struct regmap *syscon_regmap_lookup_by_phandle(struct udevice *dev,
90 struct regmap *syscon_node_to_regmap(ofnode node);
/u-boot/drivers/spi/
A Dmeson_spifc.c72 struct regmap *regmap; member
89 regmap_read(spifc->regmap, REG_C0 + i, &data); in meson_spifc_drain_buffer()
120 regmap_write(spifc->regmap, REG_C0 + i, data); in meson_spifc_fill_buffer()
150 regmap_update_bits(spifc->regmap, REG_USER, USER_UC_MASK, in meson_spifc_txrx()
152 regmap_write(spifc->regmap, REG_USER1, in meson_spifc_txrx()
156 regmap_update_bits(spifc->regmap, REG_USER, USER_DIN_EN_MS, in meson_spifc_txrx()
162 regmap_update_bits(spifc->regmap, REG_USER4, USER4_CS_ACT, in meson_spifc_txrx()
212 regmap_update_bits(spifc->regmap, REG_CTRL, CTRL_ENABLE_AHB, in meson_spifc_xfer()
239 regmap_write(spifc->regmap, REG_CLOCK, value); in meson_spifc_set_speed()
274 regmap_update_bits(spifc->regmap, REG_SLAVE, SLAVE_SW_RST, in meson_spifc_hw_init()
[all …]
/u-boot/drivers/adc/
A Dmeson-saradc.c174 struct regmap *regmap; member
198 regmap_update_bits(priv->regmap, MESON_SAR_ADC_DELAY, in meson_saradc_lock()
221 regmap_update_bits(priv->regmap, MESON_SAR_ADC_DELAY, in meson_saradc_unlock()
300 regmap_update_bits(priv->regmap, MESON_SAR_ADC_REG0, in meson_saradc_start_sample_engine()
304 regmap_update_bits(priv->regmap, MESON_SAR_ADC_REG0, in meson_saradc_start_sample_engine()
308 regmap_update_bits(priv->regmap, MESON_SAR_ADC_REG0, in meson_saradc_start_sample_engine()
315 regmap_update_bits(priv->regmap, MESON_SAR_ADC_REG0, in meson_saradc_stop_sample_engine()
318 regmap_update_bits(priv->regmap, MESON_SAR_ADC_REG0, in meson_saradc_stop_sample_engine()
325 regmap_update_bits(priv->regmap, MESON_SAR_ADC_REG0, in meson_saradc_stop_sample_engine()
454 regmap_update_bits(priv->regmap, MESON_SAR_ADC_REG3, in meson_saradc_set_chan7_mux()
[all …]
/u-boot/drivers/power/domain/
A Dapple-pmgr.c32 struct regmap *regmap; member
49 regmap_update_bits(priv->regmap, priv->offset, in apple_reset_assert()
52 regmap_update_bits(priv->regmap, priv->offset, in apple_reset_assert()
63 regmap_update_bits(priv->regmap, priv->offset, in apple_reset_deassert()
65 regmap_update_bits(priv->regmap, priv->offset, in apple_reset_deassert()
88 regmap_update_bits(priv->regmap, priv->offset, APPLE_PMGR_PS_TARGET, in apple_pmgr_ps_set()
92 priv->regmap, priv->offset, reg, in apple_pmgr_ps_set()
128 priv->regmap = syscon_get_regmap(dev->parent); in apple_pmgr_probe()
129 if (IS_ERR(priv->regmap)) in apple_pmgr_probe()
130 return PTR_ERR(priv->regmap); in apple_pmgr_probe()

Completed in 28 milliseconds

1234567