Lines Matching +full:pin +full:- +full:dependent

1 /* SPDX-License-Identifier: GPL-2.0 */
8 * S3C Platform - GPIO pin configuration
12 * pin configuration done such as setting a pin to input or output or
13 * changing the pull-{up,down} configurations.
27 /* forward declaration if gpio-core.h hasn't been included */
41 * per-bank configuration information that other systems such as the
64 /* Defines for generic pin configurations */
73 * s3c_gpio_cfgpin() - Change the GPIO function of a pin.
74 * @pin pin The pin number to configure.
75 * @to to The configuration for the pin's function.
78 * pin, such as an gpio input, output or some form of special function
85 * If a bank of GPIOs all needs to be set to special-function 2, then
95 extern int s3c_gpio_cfgpin(unsigned int pin, unsigned int to);
98 * s3c_gpio_cfgpin_range() - Change the GPIO function for configuring pin range
99 * @start: The pin number to start at
101 * @cfg: The configuration for the pin's function
110 /* Define values for the pull-{up,down} available for each gpio pin.
112 * These values control the state of the weak pull-{up,down} resistors
114 * up or down settings, and it may be dependent on the chip that is being
122 * s3c_gpio_setpull() - set the state of a gpio pin pull resistor
123 * @pin: The pin number to configure the pull resistor.
126 * This function sets the state of the pull-{up,down} resistor for the
127 * specified pin. It will return 0 if successful, or a negative error
128 * code if the pin cannot support the requested pull setting.
132 extern int s3c_gpio_setpull(unsigned int pin, samsung_gpio_pull_t pull);
137 * s3c_gpio_cfgall_range() - configure range of gpio functtion and pull.
153 static inline int s3c_gpio_cfgrange_nopull(unsigned int pin, unsigned int size, in s3c_gpio_cfgrange_nopull() argument
156 return s3c_gpio_cfgall_range(pin, size, cfg, S3C_GPIO_PULL_NONE); in s3c_gpio_cfgrange_nopull()