/drivers/pinctrl/spear/ |
D | pinctrl-spear.c | 31 static void muxregs_endisable(struct spear_pmx *pmx, in muxregs_endisable() argument 40 val = pmx_readl(pmx, muxreg->reg); in muxregs_endisable() 49 pmx_writel(pmx, val, muxreg->reg); in muxregs_endisable() 53 static int set_mode(struct spear_pmx *pmx, int mode) in set_mode() argument 59 if (!pmx->machdata->pmx_modes || !pmx->machdata->npmx_modes) in set_mode() 62 for (i = 0; i < pmx->machdata->npmx_modes; i++) { in set_mode() 63 if (pmx->machdata->pmx_modes[i]->mode == (1 << mode)) { in set_mode() 64 pmx_mode = pmx->machdata->pmx_modes[i]; in set_mode() 72 val = pmx_readl(pmx, pmx_mode->reg); in set_mode() 75 pmx_writel(pmx, val, pmx_mode->reg); in set_mode() [all …]
|
D | pinctrl-spear.h | 160 void (*gpio_request_endisable)(struct spear_pmx *pmx, int offset, 185 static inline u32 pmx_readl(struct spear_pmx *pmx, u32 reg) in pmx_readl() argument 187 return readl_relaxed(pmx->vbase + reg); in pmx_readl() 190 static inline void pmx_writel(struct spear_pmx *pmx, u32 val, u32 reg) in pmx_writel() argument 192 writel_relaxed(val, pmx->vbase + reg); in pmx_writel()
|
D | pinctrl-spear1340.c | 1973 static void gpio_request_endisable(struct spear_pmx *pmx, int pin, in gpio_request_endisable() argument 1990 val = pmx_readl(pmx, regoffset); in gpio_request_endisable() 1996 pmx_writel(pmx, val, regoffset); in gpio_request_endisable()
|
/drivers/pinctrl/tegra/ |
D | pinctrl-tegra.c | 28 static inline u32 pmx_readl(struct tegra_pmx *pmx, u32 bank, u32 reg) in pmx_readl() argument 30 return readl(pmx->regs[bank] + reg); in pmx_readl() 33 static inline void pmx_writel(struct tegra_pmx *pmx, u32 val, u32 bank, u32 reg) in pmx_writel() argument 35 writel_relaxed(val, pmx->regs[bank] + reg); in pmx_writel() 37 pmx_readl(pmx, bank, reg); in pmx_writel() 42 struct tegra_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in tegra_pinctrl_get_groups_count() local 44 return pmx->soc->ngroups; in tegra_pinctrl_get_groups_count() 50 struct tegra_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in tegra_pinctrl_get_group_name() local 52 return pmx->soc->groups[group].name; in tegra_pinctrl_get_group_name() 60 struct tegra_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in tegra_pinctrl_get_group_pins() local [all …]
|
D | pinctrl-tegra20.c | 2238 struct tegra_pmx *pmx = platform_get_drvdata(pdev); in tegra20_pinctrl_register_clock_muxes() local 2241 pmx->regs[1] + 0x8, 2, 2, CLK_MUX_READ_ONLY, NULL); in tegra20_pinctrl_register_clock_muxes() 2244 pmx->regs[1] + 0x8, 4, 2, CLK_MUX_READ_ONLY, NULL); in tegra20_pinctrl_register_clock_muxes()
|
/drivers/pinctrl/renesas/ |
D | pinctrl.c | 50 struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev); in sh_pfc_get_groups_count() local 52 return pmx->pfc->info->nr_groups; in sh_pfc_get_groups_count() 58 struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev); in sh_pfc_get_group_name() local 60 return pmx->pfc->info->groups[selector].name; in sh_pfc_get_group_name() 66 struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev); in sh_pfc_get_group_pins() local 68 *pins = pmx->pfc->info->groups[selector].pins; in sh_pfc_get_group_pins() 69 *num_pins = pmx->pfc->info->groups[selector].nr_pins; in sh_pfc_get_group_pins() 107 struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev); in sh_pfc_dt_subnode_to_map() local 108 struct device *dev = pmx->pfc->dev; in sh_pfc_dt_subnode_to_map() 126 if (!pmx->func_prop_name) { in sh_pfc_dt_subnode_to_map() [all …]
|
/drivers/pinctrl/ |
D | pinctrl-artpec6.c | 660 struct artpec6_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in artpec6_pmx_select_func() local 684 regval = readl(pmx->base + reg); in artpec6_pmx_select_func() 687 writel(regval, pmx->base + reg); in artpec6_pmx_select_func() 695 struct artpec6_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in artpec6_pmx_set() local 697 dev_dbg(pmx->dev, "enabling %s function for pin group %s\n", in artpec6_pmx_set() 710 struct artpec6_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in artpec6_pmx_request_gpio() local 717 val = readl_relaxed(pmx->base + reg); in artpec6_pmx_request_gpio() 720 writel_relaxed(val, pmx->base + reg); in artpec6_pmx_request_gpio() 736 struct artpec6_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in artpec6_pconf_get() local 741 if (pin >= pmx->num_pins) { in artpec6_pconf_get() [all …]
|
D | pinctrl-gemini.c | 1958 struct gemini_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in gemini_get_groups_count() local 1960 if (pmx->is_3512) in gemini_get_groups_count() 1962 if (pmx->is_3516) in gemini_get_groups_count() 1970 struct gemini_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in gemini_get_group_name() local 1972 if (pmx->is_3512) in gemini_get_group_name() 1974 if (pmx->is_3516) in gemini_get_group_name() 1984 struct gemini_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in gemini_get_group_pins() local 1987 if (pmx->flash_pin && in gemini_get_group_pins() 1988 pmx->is_3512 && in gemini_get_group_pins() 1994 if (pmx->flash_pin && in gemini_get_group_pins() [all …]
|
D | pinctrl-equilibrium.c | 283 unsigned int pmx, unsigned int pin) in eqbr_set_pin_mux() argument 306 writel(pmx, mem + (offset * 4)); in eqbr_set_pin_mux()
|
/drivers/pinctrl/meson/ |
D | pinctrl-meson-axg-pmx.c | 34 struct meson_axg_pmx_data *pmx = pc->data->pmx_data; in meson_axg_pmx_get_bank() local 36 for (i = 0; i < pmx->num_pmx_banks; i++) in meson_axg_pmx_get_bank() 37 if (pin >= pmx->pmx_banks[i].first && in meson_axg_pmx_get_bank() 38 pin <= pmx->pmx_banks[i].last) { in meson_axg_pmx_get_bank() 39 *bank = &pmx->pmx_banks[i]; in meson_axg_pmx_get_bank()
|
D | Makefile | 3 obj-$(CONFIG_PINCTRL_MESON8_PMX) += pinctrl-meson8-pmx.o 8 obj-$(CONFIG_PINCTRL_MESON_AXG_PMX) += pinctrl-meson-axg-pmx.o
|
/drivers/pinctrl/samsung/ |
D | pinctrl-samsung.c | 52 struct samsung_pinctrl_drv_data *pmx = pinctrl_dev_get_drvdata(pctldev); in samsung_get_group_count() local 54 return pmx->nr_groups; in samsung_get_group_count() 60 struct samsung_pinctrl_drv_data *pmx = pinctrl_dev_get_drvdata(pctldev); in samsung_get_group_name() local 62 return pmx->pin_groups[group].name; in samsung_get_group_name() 70 struct samsung_pinctrl_drv_data *pmx = pinctrl_dev_get_drvdata(pctldev); in samsung_get_group_pins() local 72 *pins = pmx->pin_groups[group].pins; in samsung_get_group_pins() 73 *num_pins = pmx->pin_groups[group].num_pins; in samsung_get_group_pins()
|