Home
last modified time | relevance | path

Searched refs:ao_cec (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/media/cec/platform/meson/
H A Dao-cec.c231 static inline int meson_ao_cec_wait_busy(struct meson_ao_cec_device *ao_cec) in meson_ao_cec_wait_busy() argument
235 while (readl_relaxed(ao_cec->base + CEC_RW_REG) & CEC_RW_BUS_BUSY) { in meson_ao_cec_wait_busy()
243 static void meson_ao_cec_read(struct meson_ao_cec_device *ao_cec, in meson_ao_cec_read() argument
254 spin_lock_irqsave(&ao_cec->cec_reg_lock, flags); in meson_ao_cec_read()
256 ret = meson_ao_cec_wait_busy(ao_cec); in meson_ao_cec_read()
260 writel_relaxed(reg, ao_cec->base + CEC_RW_REG); in meson_ao_cec_read()
262 ret = meson_ao_cec_wait_busy(ao_cec); in meson_ao_cec_read()
267 readl_relaxed(ao_cec->base + CEC_RW_REG)); in meson_ao_cec_read()
270 spin_unlock_irqrestore(&ao_cec->cec_reg_lock, flags); in meson_ao_cec_read()
276 static void meson_ao_cec_write(struct meson_ao_cec_device *ao_cec, in meson_ao_cec_write() argument
[all …]
H A Dao-cec-g12a.c333 static int meson_ao_cec_g12a_setup_clk(struct meson_ao_cec_g12a_device *ao_cec) in meson_ao_cec_g12a_setup_clk() argument
336 struct device *dev = &ao_cec->pdev->dev; in meson_ao_cec_g12a_setup_clk()
350 parent_name = __clk_get_name(ao_cec->oscin); in meson_ao_cec_g12a_setup_clk()
357 dualdiv_clk->regmap = ao_cec->regmap; in meson_ao_cec_g12a_setup_clk()
367 ao_cec->core = clk; in meson_ao_cec_g12a_setup_clk()
375 struct meson_ao_cec_g12a_device *ao_cec = context; in meson_ao_cec_g12a_read() local
379 ret = regmap_write(ao_cec->regmap, CECB_RW_REG, reg); in meson_ao_cec_g12a_read()
383 ret = regmap_read_poll_timeout(ao_cec->regmap, CECB_RW_REG, reg, in meson_ao_cec_g12a_read()
389 ret = regmap_read(ao_cec->regmap, CECB_RW_REG, &reg); in meson_ao_cec_g12a_read()
399 struct meson_ao_cec_g12a_device *ao_cec = context; in meson_ao_cec_g12a_write() local
[all …]
/linux/arch/arm64/boot/dts/amlogic/
H A Dmeson-gxbb.dtsi250 ao_cec_pins: ao_cec {
252 groups = "ao_cec";
H A Dmeson-gxl.dtsi285 ao_cec_pins: ao_cec {
287 groups = "ao_cec";
/linux/drivers/pinctrl/meson/
H A Dpinctrl-meson-gxbb.c586 GROUP(ao_cec, 0, 15),
H A Dpinctrl-meson-gxl.c566 GROUP(ao_cec, 0, 15),