Lines Matching +full:gpio +full:- +full:cfg

1 /* SPDX-License-Identifier: GPL-2.0 */
8 * S3C Platform - GPIO pin configuration
11 /* This file contains the necessary definitions to get the basic gpio
13 * changing the pull-{up,down} configurations.
27 /* forward declaration if gpio-core.h hasn't been included */
31 * struct samsung_gpio_cfg GPIO configuration
33 * @get_pull: Read the current pull configuration for the GPIO
34 * @set_pull: Set the current pull configuration for the GPIO
35 * @set_config: Set the current configuration for the GPIO
36 * @get_config: Read the current configuration for the GPIO
38 * Each chip can have more than one type of GPIO bank available and some
41 * per-bank configuration information that other systems such as the
73 * s3c_gpio_cfgpin() - Change the GPIO function of a pin.
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
88 * for (gpio = start; gpio < end; gpio++)
89 * s3c_gpio_cfgpin(gpio, S3C_GPIO_SFN(2));
98 * s3c_gpio_cfgpin_range() - Change the GPIO function for configuring pin range
101 * @cfg: The configuration for the pin's function
108 unsigned int cfg);
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
122 * s3c_gpio_setpull() - set the state of a gpio pin pull resistor
126 * This function sets the state of the pull-{up,down} resistor for the
134 /* configure `all` aspects of an gpio */
137 * s3c_gpio_cfgall_range() - configure range of gpio functtion and pull.
138 * @start: The gpio number to start at.
139 * @nr: The number of gpio to configure from @start.
140 * @cfg: The configuration to use
143 * Run s3c_gpio_cfgpin() and s3c_gpio_setpull() over the gpio range starting
144 * @gpio and running for @size.
151 unsigned int cfg, samsung_gpio_pull_t pull);
154 unsigned int cfg) in s3c_gpio_cfgrange_nopull() argument
156 return s3c_gpio_cfgall_range(pin, size, cfg, S3C_GPIO_PULL_NONE); in s3c_gpio_cfgrange_nopull()