Lines Matching +full:pull +full:- +full:up
2 * Code ported from Nomadik GPIO driver in ST-Ericsson Linux kernel code.
4 * copy-paste it to U-Boot.
11 * Ported to U-Boot by:
29 * The GPIO module in the db8500 Systems-on-Chip is an
37 #define GPIO_BLOCK(pin) (((pin + GPIO_PINS_PER_BLOCK) >> 5) - 1)
83 /* Can only be called from config_pin. Don't configure alt-mode directly */
102 * db8500_gpio_set_pull() - enable/disable pull up/down on a gpio
104 * @pull: one of DB8500_GPIO_PULL_DOWN, DB8500_GPIO_PULL_UP,
107 * Enables/disables pull up/down on a specified pin. This only takes effect if
111 * NOTE: If enabling the pull up/down, the caller must ensure that the GPIO is
115 void db8500_gpio_set_pull(unsigned gpio, enum db8500_gpio_pull pull) in db8500_gpio_set_pull() argument
123 if (pull == DB8500_GPIO_PULL_NONE) in db8500_gpio_set_pull()
129 if (pull == DB8500_GPIO_PULL_UP) in db8500_gpio_set_pull()
131 else if (pull == DB8500_GPIO_PULL_DOWN) in db8500_gpio_set_pull()
176 * config_pin - configure a pin's mux attributes
179 * Configures a pin's mode (alternate function or GPIO), its pull up status,
181 * usually one of the SoC specific macros defined in mach/<soc>-pins.h. These
186 * side-effects. The gpio can be manipulated later using standard GPIO API
192 int pull = PIN_PULL(cfg); in config_pin() local
201 db8500_gpio_set_pull(pin, pull); in config_pin()
208 * db8500_config_pins - configure several pins at once