Lines Matching +full:pull +full:- +full:up
1 /* SPDX-License-Identifier: GPL-2.0 */
8 * S3C Platform - GPIO pin configuration
13 * changing the pull-{up,down} configurations.
27 /* forward declaration if gpio-core.h hasn't been included */
33 * @get_pull: Read the current pull configuration for the GPIO
34 * @set_pull: Set the current pull configuration for the GPIO
41 * per-bank configuration information that other systems such as the
54 samsung_gpio_pull_t pull);
73 * s3c_gpio_cfgpin() - Change the GPIO function of a pin.
85 * If a bank of GPIOs all needs to be set to special-function 2, then
98 * s3c_gpio_getcfg - Read the current function for a GPIO pin
109 * s3c_gpio_cfgpin_range() - Change the GPIO function for configuring pin range
121 /* Define values for the pull-{up,down} available for each gpio pin.
123 * These values control the state of the weak pull-{up,down} resistors
125 * up or down settings, and it may be dependent on the chip that is being
133 * s3c_gpio_setpull() - set the state of a gpio pin pull resistor
134 * @pin: The pin number to configure the pull resistor.
135 * @pull: The configuration for the pull resistor.
137 * This function sets the state of the pull-{up,down} resistor for the
139 * code if the pin cannot support the requested pull setting.
141 * @pull is one of S3C_GPIO_PULL_NONE, S3C_GPIO_PULL_DOWN or S3C_GPIO_PULL_UP.
143 extern int s3c_gpio_setpull(unsigned int pin, samsung_gpio_pull_t pull);
146 * s3c_gpio_getpull() - get the pull resistor state of a gpio pin
149 * Read the pull resistor value for the specified pin.
156 * s3c_gpio_cfgall_range() - configure range of gpio functtion and pull.
160 * @pull: The pull setting to use.
170 unsigned int cfg, samsung_gpio_pull_t pull);