Lines Matching +full:pull +full:- +full:up
1 /* SPDX-License-Identifier: GPL-2.0+ */
16 * They correspond to the normal GPIO API (asm-generic/gpio.h). The GPIO
17 * number is encoded in an unsigned int by an SoC-specific means. Pull
18 * values are also SoC-specific.
30 * encoding is SoC-specific.
34 * spl_gpio_set_pull() - Set the pull up/down state of a GPIO
37 * @gpio: GPIO to adjust (SoC-specific)
38 * @pull: Pull value (SoC-specific)
39 * @return return 0 if OK, -ve on error
41 int spl_gpio_set_pull(void *regs, uint gpio, int pull);
44 * spl_gpio_output() - Set a GPIO as an output
47 * @gpio: GPIO to adjust (SoC-specific)
49 * @return return 0 if OK, -ve on error
54 * spl_gpio_input() - Set a GPIO as an input
57 * @gpio: GPIO to adjust (SoC-specific)
58 * @return return 0 if OK, -ve on error