Home
last modified time | relevance | path

Searched refs:npct (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/drivers/pinctrl/nomadik/
Dpinctrl-nomadik.c446 static void nmk_prcm_altcx_set_mode(struct nmk_pinctrl *npct, in nmk_prcm_altcx_set_mode() argument
456 if (!npct->prcm_base) in nmk_prcm_altcx_set_mode()
460 dev_err(npct->dev, "PRCM GPIOCR: alternate-C%i is invalid\n", in nmk_prcm_altcx_set_mode()
465 for (i = 0 ; i < npct->soc->npins_altcx ; i++) { in nmk_prcm_altcx_set_mode()
466 if (npct->soc->altcx_pins[i].pin == offset) in nmk_prcm_altcx_set_mode()
469 if (i == npct->soc->npins_altcx) { in nmk_prcm_altcx_set_mode()
470 dev_dbg(npct->dev, "PRCM GPIOCR: pin %i is not found\n", in nmk_prcm_altcx_set_mode()
475 pin_desc = npct->soc->altcx_pins + i; in nmk_prcm_altcx_set_mode()
476 gpiocr_regs = npct->soc->prcm_gpiocr_registers; in nmk_prcm_altcx_set_mode()
487 if (readl(npct->prcm_base + reg) & BIT(bit)) { in nmk_prcm_altcx_set_mode()
[all …]
Dpinctrl-abx500.c732 struct abx500_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); in abx500_find_pin_name() local
735 for (i = 0; i < npct->soc->npins; i++) in abx500_find_pin_name()
736 if (npct->soc->pins[i].number == pin_number) in abx500_find_pin_name()
737 return npct->soc->pins[i].name; in abx500_find_pin_name()
/Linux-v6.6/drivers/pinctrl/
Dpinctrl-at91.c935 struct at91_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); in at91_gpio_request_enable() local
941 dev_err(npct->dev, "invalid range\n"); in at91_gpio_request_enable()
945 dev_err(npct->dev, "missing GPIO chip in range\n"); in at91_gpio_request_enable()
951 dev_dbg(npct->dev, "enable pin %u as GPIO\n", offset); in at91_gpio_request_enable()
955 dev_dbg(npct->dev, "enable pin %u as PIO%c%d 0x%x\n", in at91_gpio_request_enable()
967 struct at91_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); in at91_gpio_disable_free() local
969 dev_dbg(npct->dev, "disable pin %u as GPIO\n", offset); in at91_gpio_disable_free()