/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 | 1974 static void gpio_request_endisable(struct spear_pmx *pmx, int pin, in gpio_request_endisable() argument 1991 val = pmx_readl(pmx, regoffset); in gpio_request_endisable() 1997 pmx_writel(pmx, val, regoffset); in gpio_request_endisable()
|
/drivers/pinctrl/tegra/ |
D | pinctrl-tegra.c | 48 static inline u32 pmx_readl(struct tegra_pmx *pmx, u32 bank, u32 reg) in pmx_readl() argument 50 return readl(pmx->regs[bank] + reg); in pmx_readl() 53 static inline void pmx_writel(struct tegra_pmx *pmx, u32 val, u32 bank, u32 reg) in pmx_writel() argument 55 writel(val, pmx->regs[bank] + reg); in pmx_writel() 60 struct tegra_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in tegra_pinctrl_get_groups_count() local 62 return pmx->soc->ngroups; in tegra_pinctrl_get_groups_count() 68 struct tegra_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in tegra_pinctrl_get_group_name() local 70 return pmx->soc->groups[group].name; in tegra_pinctrl_get_group_name() 78 struct tegra_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in tegra_pinctrl_get_group_pins() local 80 *pins = pmx->soc->groups[group].pins; in tegra_pinctrl_get_group_pins() [all …]
|
/drivers/pinctrl/sh-pfc/ |
D | pinctrl.c | 51 struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev); in sh_pfc_get_groups_count() local 53 return pmx->pfc->info->nr_groups; in sh_pfc_get_groups_count() 59 struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev); in sh_pfc_get_group_name() local 61 return pmx->pfc->info->groups[selector].name; in sh_pfc_get_group_name() 67 struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev); in sh_pfc_get_group_pins() local 69 *pins = pmx->pfc->info->groups[selector].pins; in sh_pfc_get_group_pins() 70 *num_pins = pmx->pfc->info->groups[selector].nr_pins; in sh_pfc_get_group_pins() 108 struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev); in sh_pfc_dt_subnode_to_map() local 109 struct device *dev = pmx->pfc->dev; in sh_pfc_dt_subnode_to_map() 127 if (!pmx->func_prop_name) { in sh_pfc_dt_subnode_to_map() [all …]
|
/drivers/pinctrl/ |
D | pinctrl-tz1090-pdc.c | 243 static inline u32 pmx_read(struct tz1090_pdc_pmx *pmx, u32 reg) in pmx_read() argument 245 return ioread32(pmx->regs + reg); in pmx_read() 248 static inline void pmx_write(struct tz1090_pdc_pmx *pmx, u32 val, u32 reg) in pmx_write() argument 250 iowrite32(val, pmx->regs + reg); in pmx_write() 531 static void tz1090_pdc_pinctrl_mux(struct tz1090_pdc_pmx *pmx, in tz1090_pdc_pinctrl_mux() argument 539 select = ((pmx->mux_en & ~pmx->gpio_en) >> pin_shift) & 1; in tz1090_pdc_pinctrl_mux() 543 reg = pmx_read(pmx, grp->reg); in tz1090_pdc_pinctrl_mux() 546 pmx_write(pmx, reg, grp->reg); in tz1090_pdc_pinctrl_mux() 554 struct tz1090_pdc_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in tz1090_pdc_pinctrl_set_mux() local 571 spin_lock(&pmx->lock); in tz1090_pdc_pinctrl_set_mux() [all …]
|
D | pinctrl-tz1090.c | 970 static inline u32 pmx_read(struct tz1090_pmx *pmx, u32 reg) in pmx_read() argument 972 return ioread32(pmx->regs + reg); in pmx_read() 975 static inline void pmx_write(struct tz1090_pmx *pmx, u32 val, u32 reg) in pmx_write() argument 977 iowrite32(val, pmx->regs + reg); in pmx_write() 1246 static void tz1090_pinctrl_select(struct tz1090_pmx *pmx, in tz1090_pinctrl_select() argument 1258 select = ((~pmx->pin_en[pmx_index] | in tz1090_pinctrl_select() 1259 pmx->gpio_en[pmx_index]) >> pmx_shift) & 1; in tz1090_pinctrl_select() 1267 val = pmx_read(pmx, reg); in tz1090_pinctrl_select() 1270 pmx_write(pmx, val, reg); in tz1090_pinctrl_select() 1284 static void tz1090_pinctrl_gpio_select(struct tz1090_pmx *pmx, in tz1090_pinctrl_gpio_select() argument [all …]
|
/drivers/pinctrl/sirf/ |
D | pinctrl-atlas7.c | 4939 struct atlas7_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in atlas7_pmx_get_funcs_count() local 4941 return pmx->pctl_data->funcs_cnt; in atlas7_pmx_get_funcs_count() 4947 struct atlas7_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in atlas7_pmx_get_func_name() local 4949 return pmx->pctl_data->funcs[selector].name; in atlas7_pmx_get_func_name() 4956 struct atlas7_pmx *pmx = pinctrl_dev_get_drvdata(pctldev); in atlas7_pmx_get_func_groups() local 4958 *groups = pmx->pctl_data->funcs[selector].groups; in atlas7_pmx_get_func_groups() 4959 *num_groups = pmx->pctl_data->funcs[selector].num_groups; in atlas7_pmx_get_func_groups() 4964 static void __atlas7_pmx_pin_input_disable_set(struct atlas7_pmx *pmx, in __atlas7_pmx_pin_input_disable_set() argument 4975 pmx->regs[BANK_DS] + CLR_REG(mux->dinput_reg)); in __atlas7_pmx_pin_input_disable_set() 4977 pmx->regs[BANK_DS] + mux->dinput_reg); in __atlas7_pmx_pin_input_disable_set() [all …]
|
D | pinctrl-sirf.h | 44 struct pinctrl_dev *pmx; member
|
D | pinctrl-sirf.c | 320 spmx->pmx = pinctrl_register(&sirfsoc_pinmux_desc, &pdev->dev, spmx); in sirfsoc_pinmux_probe() 321 if (IS_ERR(spmx->pmx)) { in sirfsoc_pinmux_probe() 323 ret = PTR_ERR(spmx->pmx); in sirfsoc_pinmux_probe()
|
/drivers/pinctrl/samsung/ |
D | pinctrl-samsung.c | 55 struct samsung_pinctrl_drv_data *pmx = pinctrl_dev_get_drvdata(pctldev); in samsung_get_group_count() local 57 return pmx->nr_groups; in samsung_get_group_count() 63 struct samsung_pinctrl_drv_data *pmx = pinctrl_dev_get_drvdata(pctldev); in samsung_get_group_name() local 65 return pmx->pin_groups[group].name; in samsung_get_group_name() 73 struct samsung_pinctrl_drv_data *pmx = pinctrl_dev_get_drvdata(pctldev); in samsung_get_group_pins() local 75 *pins = pmx->pin_groups[group].pins; in samsung_get_group_pins() 76 *num_pins = pmx->pin_groups[group].num_pins; in samsung_get_group_pins()
|