Lines Matching refs:regmap
83 struct regmap *regmap; member
106 regmap_read(spifc->regmap, REG_SLAVE, &data); in meson_spifc_wait_ready()
128 regmap_read(spifc->regmap, REG_C0 + i, &data); in meson_spifc_drain_buffer()
159 regmap_write(spifc->regmap, REG_C0 + i, data); in meson_spifc_fill_buffer()
187 regmap_write(spifc->regmap, REG_CLOCK, value); in meson_spifc_setup_speed()
212 regmap_update_bits(spifc->regmap, REG_USER, USER_UC_MASK, in meson_spifc_txrx()
214 regmap_write(spifc->regmap, REG_USER1, in meson_spifc_txrx()
218 regmap_update_bits(spifc->regmap, REG_USER, USER_DIN_EN_MS, in meson_spifc_txrx()
228 regmap_update_bits(spifc->regmap, REG_USER4, USER4_CS_ACT, in meson_spifc_txrx()
232 regmap_update_bits(spifc->regmap, REG_SLAVE, SLAVE_TRST_DONE, 0); in meson_spifc_txrx()
234 regmap_update_bits(spifc->regmap, REG_CMD, CMD_USER, CMD_USER); in meson_spifc_txrx()
260 regmap_update_bits(spifc->regmap, REG_CTRL, CTRL_ENABLE_AHB, 0); in meson_spifc_transfer_one()
270 regmap_update_bits(spifc->regmap, REG_CTRL, CTRL_ENABLE_AHB, in meson_spifc_transfer_one()
283 regmap_update_bits(spifc->regmap, REG_SLAVE, SLAVE_SW_RST, in meson_spifc_hw_init()
286 regmap_update_bits(spifc->regmap, REG_USER, USER_CMP_MODE, 0); in meson_spifc_hw_init()
288 regmap_update_bits(spifc->regmap, REG_SLAVE, SLAVE_OP_MODE, 0); in meson_spifc_hw_init()
316 spifc->regmap = devm_regmap_init_mmio(spifc->dev, base, in meson_spifc_probe()
318 if (IS_ERR(spifc->regmap)) { in meson_spifc_probe()
319 ret = PTR_ERR(spifc->regmap); in meson_spifc_probe()