Lines Matching +full:pull +full:- +full:up

1 /* SPDX-License-Identifier: GPL-2.0 */
8 * Samsung Platform - GPIO pin configuration helper definitions
26 return (chip->config->set_config)(chip, off, config); in samsung_gpio_do_setcfg()
32 return (chip->config->get_config)(chip, off); in samsung_gpio_do_getcfg()
36 unsigned int off, samsung_gpio_pull_t pull) in samsung_gpio_do_setpull() argument
38 return (chip->config->set_pull)(chip, off, pull); in samsung_gpio_do_setpull()
44 return chip->config->get_pull(chip, off); in samsung_gpio_do_getpull()
47 /* Pull-{up,down} resistor controls.
49 * S3C2410,S3C2440 = Pull-UP,
50 * S3C2412,S3C2413 = Pull-Down
51 * S3C6400,S3C6410 = Pull-Both [None,Down,Up,Undef]
52 * S3C2443 = Pull-Both [not same as S3C6400]
56 * s3c24xx_gpio_setpull_1up() - Pull configuration for choice of up or none.
59 * @param: pull: The pull mode being requested.
62 * bit configuring the presence of a pull-up resistor.
65 unsigned int off, samsung_gpio_pull_t pull);
68 * s3c24xx_gpio_setpull_1down() - Pull configuration for choice of down or none
71 * @param: pull: The pull mode being requested
74 * bit configuring the presence of a pull-down resistor.
77 unsigned int off, samsung_gpio_pull_t pull);
80 * samsung_gpio_setpull_upown() - Pull configuration for choice of up,
85 * @param: pull: The pull mode being requested.
88 * bits configuring the presence of a pull resistor, in the following
90 * 00 = No pull resistor connected
91 * 01 = Pull-up resistor connected
92 * 10 = Pull-down resistor connected
95 unsigned int off, samsung_gpio_pull_t pull);
98 * samsung_gpio_getpull_updown() - Get configuration for choice of up,
104 * This helper function reads the state of the pull-{up,down} resistor
111 * s3c24xx_gpio_getpull_1up() - Get configuration for choice of up or none
115 * This helper function reads the state of the pull-up resistor for the
122 * s3c24xx_gpio_getpull_1down() - Get configuration for choice of down or none
126 * This helper function reads the state of the pull-down resistor for the
133 * s3c2443_gpio_setpull() - Pull configuration for s3c2443.
136 * @param: pull: The pull mode being requested.
139 * bits configuring the presence of a pull resistor, in the following
141 * 00 = Pull-up resistor connected
142 * 10 = Pull-down resistor connected
143 * x1 = No pull up resistor
146 unsigned int off, samsung_gpio_pull_t pull);
149 * s3c2443_gpio_getpull() - Get configuration for s3c2443 pull resistors
153 * This helper function reads the state of the pull-{up,down} resistor for the