Searched refs:PORT_PIN (Results 1 – 3 of 3) sorted by relevance
/Linux-v4.19/drivers/pinctrl/ |
D | pinctrl-falcon.c | 52 #define PORT_PIN(x) (x % PINS) macro 258 !!pad_getbit(mem, LTQ_PADC_DCC, PORT_PIN(pin))); in falcon_pinconf_get() 263 !!pad_getbit(mem, LTQ_PADC_SRC, PORT_PIN(pin))); in falcon_pinconf_get() 267 if (pad_getbit(mem, LTQ_PADC_PDEN, PORT_PIN(pin))) in falcon_pinconf_get() 269 else if (pad_getbit(mem, LTQ_PADC_PUEN, PORT_PIN(pin))) in falcon_pinconf_get() 320 pad_w32(mem, BIT(PORT_PIN(pin)), reg); in falcon_pinconf_set() 321 if (!(pad_r32(mem, reg) & BIT(PORT_PIN(pin)))) in falcon_pinconf_set() 338 pad_r32(info->membase[port], LTQ_PADC_MUX(PORT_PIN(offset)))); in falcon_pinconf_dbg_show() 394 LTQ_PADC_MUX(PORT_PIN(info->mfp[mfp].pin))); in falcon_mux_apply()
|
D | pinctrl-xway.c | 32 #define PORT_PIN(x) (x % PINS) macro 1352 !gpio_getbit(info->membase[0], reg, PORT_PIN(pin))); in xway_pinconf_get() 1360 if (!gpio_getbit(info->membase[0], reg, PORT_PIN(pin))) { in xway_pinconf_get() 1369 if (!gpio_getbit(info->membase[0], reg, PORT_PIN(pin))) in xway_pinconf_get() 1378 gpio_getbit(info->membase[0], reg, PORT_PIN(pin))); in xway_pinconf_get() 1412 PORT_PIN(pin)); in xway_pinconf_set() 1416 PORT_PIN(pin)); in xway_pinconf_set() 1427 PORT_PIN(pin)); in xway_pinconf_set() 1430 gpio_setbit(info->membase[0], reg, PORT_PIN(pin)); in xway_pinconf_set() 1439 PORT_PIN(pin)); in xway_pinconf_set() [all …]
|
/Linux-v4.19/Documentation/devicetree/bindings/pinctrl/ |
D | fsl,imx27-pinctrl.txt | 13 configurable pins each. PIN is PORT * 32 + PORT_PIN, PORT_PIN is the pin
|