/linux-6.6.21/arch/arm/mach-omap1/ |
D | mux.h | 28 .mux_reg = FUNC_MUX_CTRL_##reg, \ 42 .mux_reg = OMAP7XX_IO_CONF_##reg, \ 53 #define MUX_REG(reg, mode_offset, mode) .mux_reg = FUNC_MUX_CTRL_##reg, \ 65 .mux_reg = OMAP7XX_IO_CONF_##reg, \ 75 #define MUX_CFG(desc, mux_reg, mode_offset, mode, \ argument 81 MUX_REG(mux_reg, mode_offset, mode) \ 94 #define MUX_CFG_7XX(desc, mux_reg, mode_offset, mode, \ argument 99 MUX_REG_7XX(mux_reg, mode_offset, mode) \ 100 PULL_REG_7XX(mux_reg, pull_bit, pull_status) \ 106 const unsigned int mux_reg; member
|
D | mux.c | 295 if (cfg->mux_reg) { in omap1_cfg_reg() 299 reg_orig = omap_readl(cfg->mux_reg); in omap1_cfg_reg() 312 omap_writel(reg, cfg->mux_reg); in omap1_cfg_reg() 371 cfg->mux_reg_name, cfg->mux_reg, reg_orig, reg); in omap1_cfg_reg()
|
/linux-6.6.21/drivers/clk/samsung/ |
D | clk-cpu.c | 88 static void wait_until_mux_stable(void __iomem *mux_reg, u32 mux_pos, in wait_until_mux_stable() argument 94 if (((readl(mux_reg) >> mux_pos) & MUX_MASK) == mux_value) in wait_until_mux_stable() 98 if (((readl(mux_reg) >> mux_pos) & MUX_MASK) == mux_value) in wait_until_mux_stable() 155 unsigned long div0, div1 = 0, mux_reg; in exynos_cpuclk_pre_rate_change() local 207 mux_reg = readl(base + E4210_SRC_CPU); in exynos_cpuclk_pre_rate_change() 208 writel(mux_reg | (1 << 16), base + E4210_SRC_CPU); in exynos_cpuclk_pre_rate_change() 231 unsigned long mux_reg; in exynos_cpuclk_post_rate_change() local 246 mux_reg = readl(base + E4210_SRC_CPU); in exynos_cpuclk_post_rate_change() 247 writel(mux_reg & ~(1 << 16), base + E4210_SRC_CPU); in exynos_cpuclk_post_rate_change() 283 unsigned long div0, div1 = 0, mux_reg; in exynos5433_cpuclk_pre_rate_change() local [all …]
|
/linux-6.6.21/drivers/clk/qcom/ |
D | lpass-gfm-sm8250.c | 29 unsigned int mux_reg; member 70 .mux_reg = 0x20000, 90 .mux_reg = 0x20000, 110 .mux_reg = 0x220d8, 130 .mux_reg = 0x220d8, 150 .mux_reg = 0x240d8, 170 .mux_reg = 0x240d8, 275 gfm->gfm_mux = gfm->gfm_mux + data->gfm_clks[i]->mux_reg; in lpass_gfm_clk_driver_probe()
|
/linux-6.6.21/drivers/pinctrl/tegra/ |
D | pinctrl-tegra.c | 262 if (WARN_ON(g->mux_reg < 0)) in tegra_pinctrl_set_mux() 272 val = pmx_readl(pmx, g->mux_bank, g->mux_reg); in tegra_pinctrl_set_mux() 275 pmx_writel(pmx, val, g->mux_bank, g->mux_reg); in tegra_pinctrl_set_mux() 318 if (group->mux_reg < 0 || group->sfsel_bit < 0) in tegra_pinctrl_gpio_request_enable() 321 value = pmx_readl(pmx, group->mux_bank, group->mux_reg); in tegra_pinctrl_gpio_request_enable() 323 pmx_writel(pmx, value, group->mux_bank, group->mux_reg); in tegra_pinctrl_gpio_request_enable() 344 if (group->mux_reg < 0 || group->sfsel_bit < 0) in tegra_pinctrl_gpio_disable_free() 347 value = pmx_readl(pmx, group->mux_bank, group->mux_reg); in tegra_pinctrl_gpio_disable_free() 349 pmx_writel(pmx, value, group->mux_bank, group->mux_reg); in tegra_pinctrl_gpio_disable_free() 382 *reg = g->mux_reg; in tegra_pinconf_reg() [all …]
|
/linux-6.6.21/drivers/pinctrl/freescale/ |
D | pinctrl-imx.c | 176 if (pin_reg->mux_reg == -1) { in imx_pmx_set_one_pin_mmio() 185 reg = readl(ipctl->base + pin_reg->mux_reg); in imx_pmx_set_one_pin_mmio() 188 writel(reg, ipctl->base + pin_reg->mux_reg); in imx_pmx_set_one_pin_mmio() 190 pin_reg->mux_reg, reg); in imx_pmx_set_one_pin_mmio() 192 writel(pin_mmio->mux_mode, ipctl->base + pin_reg->mux_reg); in imx_pmx_set_one_pin_mmio() 194 pin_reg->mux_reg, pin_mmio->mux_mode); in imx_pmx_set_one_pin_mmio() 469 u32 mux_reg, conf_reg; in imx_pinctrl_parse_pin_mmio() local 472 mux_reg = be32_to_cpu(*list++); in imx_pinctrl_parse_pin_mmio() 474 if (!(info->flags & ZERO_OFFSET_VALID) && !mux_reg) in imx_pinctrl_parse_pin_mmio() 475 mux_reg = -1; in imx_pinctrl_parse_pin_mmio() [all …]
|
D | pinctrl-imx8ulp.c | 229 if (pin_reg->mux_reg == -1) in imx8ulp_pmx_gpio_set_direction() 232 reg = readl(ipctl->base + pin_reg->mux_reg); in imx8ulp_pmx_gpio_set_direction() 237 writel(reg, ipctl->base + pin_reg->mux_reg); in imx8ulp_pmx_gpio_set_direction()
|
D | pinctrl-imx7ulp.c | 270 if (pin_reg->mux_reg == -1) in imx7ulp_pmx_gpio_set_direction() 273 reg = readl(ipctl->base + pin_reg->mux_reg); in imx7ulp_pmx_gpio_set_direction() 278 writel(reg, ipctl->base + pin_reg->mux_reg); in imx7ulp_pmx_gpio_set_direction()
|
D | pinctrl-vf610.c | 302 if (pin_reg->mux_reg == -1) in vf610_pmx_gpio_set_direction() 306 reg = readl(ipctl->base + pin_reg->mux_reg); in vf610_pmx_gpio_set_direction() 311 writel(reg, ipctl->base + pin_reg->mux_reg); in vf610_pmx_gpio_set_direction()
|
D | pinctrl-imx.h | 65 s16 mux_reg; member
|
/linux-6.6.21/arch/arm/mach-davinci/ |
D | mux.c | 68 reg_orig = __raw_readl(pinmux_base + cfg->mux_reg); in davinci_cfg_reg() 80 __raw_writel(reg, pinmux_base + cfg->mux_reg); in davinci_cfg_reg() 94 cfg->mux_reg_name, cfg->mux_reg, reg_orig, reg); in davinci_cfg_reg()
|
D | mux.h | 17 const unsigned char mux_reg; member 673 .mux_reg = PINMUX(muxreg), \ 684 .mux_reg = INTMUX, \ 695 .mux_reg = EVTMUX, \
|
/linux-6.6.21/drivers/clk/mediatek/ |
D | clk-mtk.h | 96 uint32_t mux_reg; member 116 .mux_reg = _reg, \ 152 .mux_reg = _reg, \
|
/linux-6.6.21/drivers/clk/microchip/ |
D | clk-core.c | 763 void __iomem *mux_reg; member 824 v = (readl(sclk->mux_reg) >> OSC_CUR_SHIFT) & OSC_CUR_MASK; in sclk_get_parent() 848 v = readl(sclk->mux_reg); in sclk_set_parent() 854 writel(v, sclk->mux_reg); in sclk_set_parent() 857 writel(OSC_SWEN, PIC32_SET(sclk->mux_reg)); in sclk_set_parent() 875 cosc = (readl(sclk->mux_reg) >> OSC_CUR_SHIFT) & OSC_CUR_MASK; in sclk_set_parent() 939 sclk->mux_reg = data->mux_reg + core->iobase; in pic32_sys_clk_register()
|
D | clk-core.h | 29 const u32 mux_reg; member
|
/linux-6.6.21/Documentation/devicetree/bindings/pinctrl/ |
D | fsl,imx93-pinctrl.yaml | 38 setting for one pin. The first 5 integers <mux_reg conf_reg input_reg 47 "mux_reg" indicates the offset of mux register.
|
D | fsl,imxrt1050.yaml | 36 setting for one pin. The first 5 integers <mux_reg conf_reg input_reg 45 "mux_reg" indicates the offset of mux register.
|
D | fsl,imxrt1170.yaml | 36 setting for one pin. The first 5 integers <mux_reg conf_reg input_reg 45 "mux_reg" indicates the offset of mux register.
|
D | fsl,imx8m-pinctrl.yaml | 39 setting for one pin. The first 5 integers <mux_reg conf_reg input_reg 49 "mux_reg" indicates the offset of mux register.
|
D | fsl,imx7d-pinctrl.yaml | 44 setting for one pin. The first 5 integers <mux_reg conf_reg input_reg 53 "mux_reg" indicates the offset of mux register.
|
D | fsl,imx6sx-pinctrl.txt | 9 setting for one pin. The first 5 integers <mux_reg conf_reg input_reg mux_val
|
D | fsl,imx6sll-pinctrl.txt | 9 setting for one pin. The first 5 integers <mux_reg conf_reg input_reg mux_val
|
D | fsl,imx6ul-pinctrl.txt | 10 setting for one pin. The first 5 integers <mux_reg conf_reg input_reg mux_val
|
/linux-6.6.21/drivers/pinctrl/ |
D | pinctrl-pistachio.c | 89 int mux_reg; member 644 .mux_reg = -1, \ 658 .mux_reg = -1, \ 672 .mux_reg = _reg, \ 954 if (pg->mux_reg > 0) { in pistachio_pinmux_enable() 965 val = pctl_readl(pctl, pg->mux_reg); in pistachio_pinmux_enable() 968 pctl_writel(pctl, val, pg->mux_reg); in pistachio_pinmux_enable()
|
/linux-6.6.21/drivers/clk/ |
D | clk-k210.c | 38 u8 mux_reg; member 60 .mux_reg = (_reg), \ 721 reg = readl(ksc->regs + cfg->mux_reg); in k210_clk_set_parent() 726 writel(reg, ksc->regs + cfg->mux_reg); in k210_clk_set_parent() 741 reg = readl(ksc->regs + cfg->mux_reg); in k210_clk_get_parent()
|