Home
last modified time | relevance | path

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

/openbmc/linux/drivers/pinctrl/
H A Dpinctrl-falcon.c49 #define PORT_PIN(x) (x % PINS) macro
251 !!pad_getbit(mem, LTQ_PADC_DCC, PORT_PIN(pin))); in falcon_pinconf_get()
256 !!pad_getbit(mem, LTQ_PADC_SRC, PORT_PIN(pin))); in falcon_pinconf_get()
260 if (pad_getbit(mem, LTQ_PADC_PDEN, PORT_PIN(pin))) in falcon_pinconf_get()
262 else if (pad_getbit(mem, LTQ_PADC_PUEN, PORT_PIN(pin))) in falcon_pinconf_get()
313 pad_w32(mem, BIT(PORT_PIN(pin)), reg); in falcon_pinconf_set()
314 if (!(pad_r32(mem, reg) & BIT(PORT_PIN(pin)))) in falcon_pinconf_set()
331 pad_r32(info->membase[port], LTQ_PADC_MUX(PORT_PIN(offset)))); in falcon_pinconf_dbg_show()
387 LTQ_PADC_MUX(PORT_PIN(info->mfp[mfp].pin))); in falcon_mux_apply()
H A Dpinctrl-xway.c29 #define PORT_PIN(x) (x % PINS) macro
1112 !gpio_getbit(info->membase[0], reg, PORT_PIN(pin))); in xway_pinconf_get()
1120 if (!gpio_getbit(info->membase[0], reg, PORT_PIN(pin))) { in xway_pinconf_get()
1129 if (!gpio_getbit(info->membase[0], reg, PORT_PIN(pin))) in xway_pinconf_get()
1138 gpio_getbit(info->membase[0], reg, PORT_PIN(pin))); in xway_pinconf_get()
1172 PORT_PIN(pin)); in xway_pinconf_set()
1176 PORT_PIN(pin)); in xway_pinconf_set()
1187 PORT_PIN(pin)); in xway_pinconf_set()
1190 gpio_setbit(info->membase[0], reg, PORT_PIN(pin)); in xway_pinconf_set()
1199 PORT_PIN(pin)); in xway_pinconf_set()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/
H A Dfsl,imx27-pinctrl.txt13 configurable pins each. PIN is PORT * 32 + PORT_PIN, PORT_PIN is the pin