/u-boot/drivers/pinctrl/ |
A D | pinctrl-sandbox.c | 158 pin_selector, sandbox_get_pin_name(dev, pin_selector), in sandbox_pinmux_set() 161 if (pin_selector < 5) in sandbox_pinmux_set() 170 mux = BIT(pin_selector); in sandbox_pinmux_set() 176 priv->mux &= ~BIT(pin_selector); in sandbox_pinmux_set() 178 priv->pins_param[pin_selector] = 0; in sandbox_pinmux_set() 179 priv->pins_value[pin_selector] = 0; in sandbox_pinmux_set() 236 unsigned pin_selector = pinmux_group & 0xFFFF; in sandbox_pinmux_property_set() local 240 return ret ? ret : pin_selector; in sandbox_pinmux_property_set() 249 pin_selector, sandbox_get_pin_name(dev, pin_selector), in sandbox_pinconf_set() 252 priv->pins_param[pin_selector] |= BIT(param); in sandbox_pinconf_set() [all …]
|
A D | pinctrl-uclass.c | 177 unsigned int *pin_selector) in pinctrl_gpio_get_pinctrl_and_offset() argument 213 *pin_selector = offset; in pinctrl_gpio_get_pinctrl_and_offset() 229 unsigned int pin_selector; in pinctrl_gpio_request() local 233 &pctldev, &pin_selector); in pinctrl_gpio_request() 241 return ops->gpio_request_enable(pctldev, pin_selector); in pinctrl_gpio_request() 255 unsigned int pin_selector; in pinctrl_gpio_free() local 259 &pctldev, &pin_selector); in pinctrl_gpio_free() 267 return ops->gpio_disable_free(pctldev, pin_selector); in pinctrl_gpio_free()
|
A D | pinctrl-kendryte.c | 521 static int k210_pc_pinconf_set(struct udevice *dev, unsigned pin_selector, in k210_pc_pinconf_set() argument 525 u32 val = readl(&priv->fpioa->pins[pin_selector]); in k210_pc_pinconf_set() 570 K210_FPIOA(pin_selector, K210_PCF_CONSTANT)); in k210_pc_pinconf_set() 571 val = readl(&priv->fpioa->pins[pin_selector]); in k210_pc_pinconf_set() 605 writel(val, &priv->fpioa->pins[pin_selector]); in k210_pc_pinconf_set()
|
/u-boot/arch/arm/mach-ipq40xx/ |
A D | pinctrl-snapdragon.c | 77 static int msm_pinmux_set(struct udevice *dev, unsigned int pin_selector, in msm_pinmux_set() argument 82 clrsetbits_le32(priv->base + GPIO_CONFIG_OFFSET(pin_selector), in msm_pinmux_set() 88 static int msm_pinconf_set(struct udevice *dev, unsigned int pin_selector, in msm_pinconf_set() argument 95 clrsetbits_le32(priv->base + GPIO_CONFIG_OFFSET(pin_selector), in msm_pinconf_set() 99 clrbits_le32(priv->base + GPIO_CONFIG_OFFSET(pin_selector), in msm_pinconf_set() 103 clrsetbits_le32(priv->base + GPIO_CONFIG_OFFSET(pin_selector), in msm_pinconf_set()
|
/u-boot/arch/arm/mach-snapdragon/ |
A D | pinctrl-snapdragon.c | 72 static int msm_pinmux_set(struct udevice *dev, unsigned int pin_selector, in msm_pinmux_set() argument 77 clrsetbits_le32(priv->base + GPIO_CONFIG_OFFSET(pin_selector), in msm_pinmux_set() 83 static int msm_pinconf_set(struct udevice *dev, unsigned int pin_selector, in msm_pinconf_set() argument 90 clrsetbits_le32(priv->base + GPIO_CONFIG_OFFSET(pin_selector), in msm_pinconf_set() 94 clrbits_le32(priv->base + GPIO_CONFIG_OFFSET(pin_selector), in msm_pinconf_set()
|
/u-boot/include/dm/ |
A D | pinctrl.h | 134 int (*pinmux_set)(struct udevice *dev, unsigned pin_selector, 205 int (*pinconf_set)(struct udevice *dev, unsigned pin_selector,
|
/u-boot/drivers/pinctrl/broadcom/ |
A D | pinctrl-bcm6838.c | 71 unsigned int pin_selector, in bcm6838_pinctrl_pinmux_set() argument 80 data |= (pin_selector << BCM6838_PIN_OFFS) & BCM6838_PIN_MASK; in bcm6838_pinctrl_pinmux_set()
|
/u-boot/drivers/pinctrl/mscc/ |
A D | mscc-common.c | 90 unsigned int pin_selector, unsigned int selector) in mscc_pinmux_set_mux() argument 93 struct mscc_pin_caps *pin = info->mscc_pins[pin_selector].drv_data; in mscc_pinmux_set_mux() 96 f = mscc_pin_function_idx(pin_selector, selector, info->mscc_pins); in mscc_pinmux_set_mux()
|
/u-boot/drivers/pinctrl/renesas/ |
A D | pfc.c | 492 unsigned pin_selector) in sh_pfc_gpio_request_enable() argument 502 if (priv->pfc.info->pins[i].pin != pin_selector) in sh_pfc_gpio_request_enable() 535 unsigned pin_selector) in sh_pfc_gpio_disable_free() argument 545 if (priv->pfc.info->pins[i].pin != pin_selector) in sh_pfc_gpio_disable_free() 564 static int sh_pfc_pinctrl_pin_set(struct udevice *dev, unsigned pin_selector, in sh_pfc_pinctrl_pin_set() argument 570 const struct sh_pfc_pin *pin = &priv->pfc.info->pins[pin_selector]; in sh_pfc_pinctrl_pin_set() 807 unsigned int pin_selector, in sh_pfc_pinconf_pin_set() argument 813 const struct sh_pfc_pin *pin = &pfc->info->pins[pin_selector]; in sh_pfc_pinconf_pin_set()
|
/u-boot/drivers/pinctrl/mtmips/ |
A D | pinctrl-mt7628.c | 476 static int mt7628_pinconf_set(struct udevice *dev, unsigned int pin_selector, in mt7628_pinconf_set() argument 483 offs = (pin_selector / 32) * 4; in mt7628_pinconf_set() 484 bit = pin_selector % 32; in mt7628_pinconf_set()
|