| /u-boot/drivers/pinctrl/rockchip/ |
| A D | pinctrl-rv1108.c | 84 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 D | pinctrl-rk3368.c | 19 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 D | pinctrl-px30.c | 80 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 D | pinctrl-rk3288.c | 37 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 D | pinctrl-rk3328.c | 130 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 D | pinctrl-rk3399.c | 59 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 D | pinctrl-rk3188.c | 19 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, ®map, ®, &bit); in rk3188_set_pull() 97 ret = regmap_write(regmap, reg, data); in rk3188_set_pull()
|
| A D | pinctrl-rk3036.c | 19 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, ®map, ®, &bit); in rk3036_set_pull() 73 ret = regmap_write(regmap, reg, data); in rk3036_set_pull()
|
| A D | pinctrl-rk3308.c | 258 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 D | pinctrl-rk322x.c | 150 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 …]
|
| A D | pinctrl-rk3128.c | 106 struct regmap *regmap; in rk3128_set_mux() local 111 regmap = (bank->iomux[iomux_num].type & IOMUX_SOURCE_PMU) in rk3128_set_mux() 125 ret = regmap_write(regmap, route_reg, route_val); in rk3128_set_mux() 133 ret = regmap_write(regmap, reg, data); in rk3128_set_mux() 143 int pin_num, struct regmap **regmap, in rk3128_calc_pull_reg_and_bit() argument 148 *regmap = priv->regmap_base; in rk3128_calc_pull_reg_and_bit() 159 struct regmap *regmap; in rk3128_set_pull() local 168 rk3128_calc_pull_reg_and_bit(bank, pin_num, ®map, ®, &bit); in rk3128_set_pull() 172 ret = regmap_write(regmap, reg, data); in rk3128_set_pull()
|
| /u-boot/drivers/phy/ |
| A D | meson-axg-mipi-dphy.c | 176 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 D | meson-axg-mipi-pcie-analog.c | 62 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 D | meson-g12a-usb3-pcie.c | 59 struct regmap *regmap; member 74 regmap_write(priv->regmap, PHY_R4, reg); in phy_g12a_usb3_pcie_cr_bus_addr() 75 regmap_write(priv->regmap, PHY_R4, reg); in phy_g12a_usb3_pcie_cr_bus_addr() 85 regmap_write(priv->regmap, PHY_R4, reg); in phy_g12a_usb3_pcie_cr_bus_addr() 107 regmap_write(priv->regmap, PHY_R4, 0); in phy_g12a_usb3_pcie_cr_bus_read() 118 regmap_write(priv->regmap, PHY_R4, 0); in phy_g12a_usb3_pcie_cr_bus_read() 142 regmap_write(priv->regmap, PHY_R4, reg); in phy_g12a_usb3_pcie_cr_bus_write() 143 regmap_write(priv->regmap, PHY_R4, reg); in phy_g12a_usb3_pcie_cr_bus_write() 153 regmap_write(priv->regmap, PHY_R4, reg); in phy_g12a_usb3_pcie_cr_bus_write() 161 regmap_write(priv->regmap, PHY_R4, reg); in phy_g12a_usb3_pcie_cr_bus_write() [all …]
|
| A D | phy-ti-am654.c | 91 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 D | meson-g12a-usb2.c | 56 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/include/ |
| A D | regmap.h | 109 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 D | syscon.h | 19 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/drivers/spi/ |
| A D | meson_spifc.c | 72 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 D | meson-saradc.c | 174 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/core/ |
| A D | regmap.c | 30 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() 589 struct regmap *regmap, in regmap_field_init() argument 592 rm_field->regmap = regmap; in regmap_field_init() 599 struct regmap *regmap, in devm_regmap_field_alloc() argument [all …]
|
| A D | syscon-uclass.c | 34 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/test/dm/ |
| A D | regmap.c | 24 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/drivers/usb/dwc3/ |
| A D | dwc3-meson-g12a.c | 111 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 …]
|
| /u-boot/drivers/reset/ |
| A D | reset-mediatek.c | 22 struct regmap *regmap; member 45 return regmap_update_bits(priv->regmap, in mediatek_reset_assert() 57 return regmap_update_bits(priv->regmap, in mediatek_reset_deassert() 75 priv->regmap = syscon_node_to_regmap(dev_ofnode(dev)); in mediatek_reset_probe() 76 if (IS_ERR(priv->regmap)) in mediatek_reset_probe() 77 return PTR_ERR(priv->regmap); in mediatek_reset_probe()
|