Lines Matching refs:pin
36 * If pin function is set to eMMC/SD, then configure the eMMC/SD PHY
39 void mvebu_pinctl_emmc_set_mux(struct udevice *dev, u32 pin, u32 func)
46 if ((pin == AP806_EMMC_CLK_PIN_ID) &&
53 if ((pin == CP110_EMMC_CLK_PIN_ID) &&
62 * mvebu_pinctrl_set_state: configure pin functions.
92 * Only the first pin id in array is tested, all the rest use the same
93 * pin function.
100 int pin = pin_arr[i];
110 (pin >> (PIN_REG_SHIFT));
111 field_offset = (BITS_PER_PIN) * (pin & PIN_FIELD_MASK);
122 * mvebu_pinctrl_set_state_all: configure the entire bank pin functions.
134 int pin, err;
138 err = fdtdec_get_int_array(blob, node, "pin-func",
141 debug("Failed reading pin functions for bank %s\n",
154 for (pin = 0; pin < priv->pin_cnt; pin++) {
157 u32 func = func_arr[pin];
161 debug("Warning: pin %d value is not modified ", pin);
165 debug("Illegal function %d for pin %d\n", func, pin);
171 (pin >> (PIN_REG_SHIFT));
172 field_offset = (BITS_PER_PIN) * (pin & PIN_FIELD_MASK);
200 priv->pin_cnt = fdtdec_get_int(blob, node, "pin-count",