Home
last modified time | relevance | path

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

123456

/u-boot-v2022.01-rc1/drivers/pinctrl/rockchip/
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
116 int pin_num, struct regmap **regmap, in px30_calc_pull_reg_and_bit() argument
123 *regmap = priv->regmap_pmu; in px30_calc_pull_reg_and_bit()
126 *regmap = priv->regmap_base; in px30_calc_pull_reg_and_bit()
142 struct regmap *regmap; in px30_set_pull() local
173 int pin_num, struct regmap **regmap, in px30_calc_drv_reg_and_bit() argument
180 *regmap = priv->regmap_pmu; in px30_calc_drv_reg_and_bit()
199 struct regmap *regmap; in px30_set_drive() local
277 struct regmap **regmap, in px30_calc_schmitt_reg_and_bit() argument
284 *regmap = priv->regmap_pmu; in px30_calc_schmitt_reg_and_bit()
[all …]
A Dpinctrl-rk3288.c37 struct regmap *regmap; in rk3288_set_mux() local
61 regmap_read(regmap, reg, &data); in rk3288_set_mux()
78 int pin_num, struct regmap **regmap, in rk3288_calc_pull_reg_and_bit() argument
85 *regmap = priv->regmap_pmu; in rk3288_calc_pull_reg_and_bit()
88 *regmap = priv->regmap_base; in rk3288_calc_pull_reg_and_bit()
105 struct regmap *regmap; in rk3288_set_pull() local
123 regmap_read(regmap, reg, &data); in rk3288_set_pull()
140 int pin_num, struct regmap **regmap, in rk3288_calc_drv_reg_and_bit() argument
147 *regmap = priv->regmap_pmu; in rk3288_calc_drv_reg_and_bit()
150 *regmap = priv->regmap_base; in rk3288_calc_drv_reg_and_bit()
[all …]
A Dpinctrl-rk3328.c130 struct regmap *regmap; in rk3328_set_mux() local
157 ret = regmap_write(regmap, reg, data); in rk3328_set_mux()
165 int pin_num, struct regmap **regmap, in rk3328_calc_pull_reg_and_bit() argument
170 *regmap = priv->regmap_base; in rk3328_calc_pull_reg_and_bit()
182 struct regmap *regmap; in rk3328_set_pull() local
209 int pin_num, struct regmap **regmap, in rk3328_calc_drv_reg_and_bit() argument
214 *regmap = priv->regmap_base; in rk3328_calc_drv_reg_and_bit()
226 struct regmap *regmap; in rk3328_set_drive() local
254 struct regmap **regmap, in rk3328_calc_schmitt_reg_and_bit() argument
259 *regmap = priv->regmap_base; in rk3328_calc_schmitt_reg_and_bit()
[all …]
A Dpinctrl-rk3399.c59 struct regmap *regmap; in rk3399_set_mux() local
83 ret = regmap_write(regmap, reg, data); in rk3399_set_mux()
92 int pin_num, struct regmap **regmap, in rk3399_calc_pull_reg_and_bit() argument
99 *regmap = priv->regmap_pmu; in rk3399_calc_pull_reg_and_bit()
104 *regmap = priv->regmap_base; in rk3399_calc_pull_reg_and_bit()
121 struct regmap *regmap; in rk3399_set_pull() local
140 ret = regmap_write(regmap, reg, data); in rk3399_set_pull()
146 int pin_num, struct regmap **regmap, in rk3399_calc_drv_reg_and_bit() argument
154 *regmap = priv->regmap_pmu; in rk3399_calc_drv_reg_and_bit()
156 *regmap = priv->regmap_base; in rk3399_calc_drv_reg_and_bit()
[all …]
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-rk3308.c258 struct regmap *regmap; in rk3308_set_mux() local
285 ret = regmap_write(regmap, reg, data); in rk3308_set_mux()
293 int pin_num, struct regmap **regmap, in rk3308_calc_pull_reg_and_bit() argument
298 *regmap = priv->regmap_base; in rk3308_calc_pull_reg_and_bit()
310 struct regmap *regmap; in rk3308_set_pull() local
338 int pin_num, struct regmap **regmap, in rk3308_calc_drv_reg_and_bit() argument
343 *regmap = priv->regmap_base; in rk3308_calc_drv_reg_and_bit()
355 struct regmap *regmap; in rk3308_set_drive() local
381 struct regmap **regmap, in rk3308_calc_schmitt_reg_and_bit() argument
386 *regmap = priv->regmap_base; in rk3308_calc_schmitt_reg_and_bit()
[all …]
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-rk322x.c150 struct regmap *regmap; in rk3228_set_mux() local
166 ret = regmap_write(regmap, route_reg, route_val); in rk3228_set_mux()
174 ret = regmap_write(regmap, reg, data); in rk3228_set_mux()
182 int pin_num, struct regmap **regmap, in rk3228_calc_pull_reg_and_bit() argument
187 *regmap = priv->regmap_base; in rk3228_calc_pull_reg_and_bit()
199 struct regmap *regmap; in rk3228_set_pull() local
218 ret = regmap_write(regmap, reg, data); in rk3228_set_pull()
226 int pin_num, struct regmap **regmap, in rk3228_calc_drv_reg_and_bit() argument
231 *regmap = priv->regmap_base; in rk3228_calc_drv_reg_and_bit()
243 struct regmap *regmap; in rk3228_set_drive() local
[all …]
/u-boot-v2022.01-rc1/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.c91 struct regmap *regmap; member
99 struct regmap *regmap; in serdes_am654_mux_clk_probe() local
115 if (IS_ERR(regmap)) { in serdes_am654_mux_clk_probe()
117 return PTR_ERR(regmap); in serdes_am654_mux_clk_probe()
120 data->regmap = regmap; in serdes_am654_mux_clk_probe()
163 if (!data->regmap) in serdes_am654_mux_clk_set_parent()
195 struct regmap *regmap; member
196 struct regmap *serdes_ctl;
361 struct regmap *serdes_ctl; in serdes_am654_probe()
362 struct regmap *map; in serdes_am654_probe()
[all …]
A Dmeson-g12a-usb2.c56 struct regmap *regmap; member
119 regmap_write(priv->regmap, PHY_CTRL_R16, 0x39400414); in phy_meson_g12a_usb2_init()
120 regmap_write(priv->regmap, PHY_CTRL_R17, 0x927e0000); in phy_meson_g12a_usb2_init()
121 regmap_write(priv->regmap, PHY_CTRL_R18, 0xac5f49e5); in phy_meson_g12a_usb2_init()
126 regmap_write(priv->regmap, PHY_CTRL_R16, 0x19400414); in phy_meson_g12a_usb2_init()
129 regmap_write(priv->regmap, PHY_CTRL_R20, 0xfe18); in phy_meson_g12a_usb2_init()
130 regmap_write(priv->regmap, PHY_CTRL_R4, 0x8000fff); in phy_meson_g12a_usb2_init()
133 regmap_write(priv->regmap, PHY_CTRL_R3, 0x34); in phy_meson_g12a_usb2_init()
136 regmap_write(priv->regmap, PHY_CTRL_R14, 0); in phy_meson_g12a_usb2_init()
137 regmap_write(priv->regmap, PHY_CTRL_R13, 0x78000); in phy_meson_g12a_usb2_init()
[all …]
/u-boot-v2022.01-rc1/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-v2022.01-rc1/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);
392 struct regmap **mapp);
413 struct regmap **mapp);
426 struct regmap *devm_regmap_init(struct udevice *dev,
437 void *regmap_get_range(struct regmap *map, unsigned int range_num);
445 int regmap_uninit(struct regmap *map);
[all …]
A Dsyscon.h19 struct regmap *regmap; member
48 struct regmap *syscon_get_regmap(struct udevice *dev);
74 struct regmap *syscon_get_regmap_by_driver_data(ulong driver_data);
86 struct regmap *syscon_regmap_lookup_by_phandle(struct udevice *dev,
103 struct regmap *syscon_node_to_regmap(ofnode node);
/u-boot-v2022.01-rc1/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-v2022.01-rc1/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-v2022.01-rc1/drivers/core/
A Dregmap.c30 struct regmap *regmap; member
51 struct regmap *map; in regmap_alloc()
65 struct regmap **mapp) in regmap_init_mem_plat()
68 struct regmap *map; in regmap_init_mem_plat()
138 struct regmap *map; in regmap_init_mem_index()
185 struct regmap *map; in regmap_init_mem_range()
212 struct regmap *map; in regmap_init_mem()
645 struct regmap *regmap, in regmap_field_init() argument
648 rm_field->regmap = regmap; in regmap_field_init()
655 struct regmap *regmap, in devm_regmap_field_alloc() argument
[all …]
A Dsyscon-uclass.c34 struct regmap *syscon_get_regmap(struct udevice *dev) in syscon_get_regmap()
41 return priv->regmap; in syscon_get_regmap()
62 &priv->regmap); in syscon_pre_probe()
64 return regmap_init_mem(dev_ofnode(dev), &priv->regmap); in syscon_pre_probe()
101 struct regmap *syscon_regmap_lookup_by_phandle(struct udevice *dev, in syscon_regmap_lookup_by_phandle()
105 struct regmap *r; in syscon_regmap_lookup_by_phandle()
150 struct regmap *syscon_get_regmap_by_driver_data(ulong driver_data) in syscon_get_regmap_by_driver_data()
161 return priv->regmap; in syscon_get_regmap_by_driver_data()
166 struct regmap *map; in syscon_get_first_range()
200 struct regmap *syscon_node_to_regmap(ofnode node) in syscon_node_to_regmap()
[all …]
/u-boot-v2022.01-rc1/test/dm/
A Dregmap.c24 struct regmap *map; in dm_test_regmap_base()
77 struct regmap *map; in dm_test_regmap_syscon()
104 struct regmap *map; in dm_test_regmap_rw()
138 struct regmap *map; in dm_test_regmap_getset()
169 struct regmap *map; in dm_test_regmap_poll()
223 struct regmap *regmap; in remaptest_probe() local
245 if (IS_ERR(regmap)) in remaptest_probe()
246 return PTR_ERR(regmap); in remaptest_probe()
253 if (IS_ERR(regmap)) in remaptest_probe()
254 return PTR_ERR(regmap); in remaptest_probe()
[all …]
/u-boot-v2022.01-rc1/drivers/phy/socionext/
A Dphy-uniphier-pcie.c30 struct regmap *regmap; in uniphier_pciephy_probe() local
32 regmap = syscon_regmap_lookup_by_phandle(dev, in uniphier_pciephy_probe()
34 if (!IS_ERR(regmap)) in uniphier_pciephy_probe()
35 regmap_update_bits(regmap, SG_USBPCIESEL, in uniphier_pciephy_probe()
/u-boot-v2022.01-rc1/drivers/usb/dwc3/
A Ddwc3-meson-g12a.c111 struct regmap *regmap; member
164 regmap_update_bits(priv->regmap, in dwc3_meson_g12a_usb2_init()
184 regmap_update_bits(priv->regmap, USB_R3, in dwc3_meson_g12a_usb3_init()
192 regmap_update_bits(priv->regmap, USB_R2, in dwc3_meson_g12a_usb3_init()
196 regmap_update_bits(priv->regmap, USB_R2, in dwc3_meson_g12a_usb3_init()
202 regmap_update_bits(priv->regmap, USB_R1, in dwc3_meson_g12a_usb3_init()
206 regmap_update_bits(priv->regmap, USB_R1, in dwc3_meson_g12a_usb3_init()
236 regmap_update_bits(priv->regmap, USB_R1, in dwc3_meson_g12a_usb_init()
240 regmap_update_bits(priv->regmap, USB_R5, in dwc3_meson_g12a_usb_init()
243 regmap_update_bits(priv->regmap, USB_R5, in dwc3_meson_g12a_usb_init()
[all …]

Completed in 49 milliseconds

123456