diff options
| author | James Hogan <james.hogan@imgtec.com> | 2013-05-24 12:21:12 -0400 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2013-06-16 05:56:50 -0400 |
| commit | a2df4269cad79635201587c5c5404f0b1cb0b05c (patch) | |
| tree | de7f7f4147fb891561970c30aaf054f9ba070043 /include/linux/pinctrl | |
| parent | 73ae368cd309dae277b66444d471ac62825ee407 (diff) | |
pinconf-generic: add BIAS_BUS_HOLD pinconf
Add a new PIN_CONFIG_BIAS_BUS_HOLD pin configuration for a bus holder
pin mode (also known as bus keeper, or repeater). This is a weak latch
which drives the last value on a tristate bus. Another device on the bus
can drive the bus high or low before going tristate to change the value
driven by the pin.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/pinctrl')
| -rw-r--r-- | include/linux/pinctrl/pinconf-generic.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/pinctrl/pinconf-generic.h b/include/linux/pinctrl/pinconf-generic.h index 6aa238096622..ac05b3cfeacc 100644 --- a/include/linux/pinctrl/pinconf-generic.h +++ b/include/linux/pinctrl/pinconf-generic.h | |||
| @@ -29,6 +29,11 @@ | |||
| 29 | * if for example some other pin is going to drive the signal connected | 29 | * if for example some other pin is going to drive the signal connected |
| 30 | * to it for a while. Pins used for input are usually always high | 30 | * to it for a while. Pins used for input are usually always high |
| 31 | * impedance. | 31 | * impedance. |
| 32 | * @PIN_CONFIG_BIAS_BUS_HOLD: the pin will be set to weakly latch so that it | ||
| 33 | * weakly drives the last value on a tristate bus, also known as a "bus | ||
| 34 | * holder", "bus keeper" or "repeater". This allows another device on the | ||
| 35 | * bus to change the value by driving the bus high or low and switching to | ||
| 36 | * tristate. The argument is ignored. | ||
| 32 | * @PIN_CONFIG_BIAS_PULL_UP: the pin will be pulled up (usually with high | 37 | * @PIN_CONFIG_BIAS_PULL_UP: the pin will be pulled up (usually with high |
| 33 | * impedance to VDD). If the argument is != 0 pull-up is enabled, | 38 | * impedance to VDD). If the argument is != 0 pull-up is enabled, |
| 34 | * if it is 0, pull-up is disabled. | 39 | * if it is 0, pull-up is disabled. |
| @@ -78,6 +83,7 @@ | |||
| 78 | enum pin_config_param { | 83 | enum pin_config_param { |
| 79 | PIN_CONFIG_BIAS_DISABLE, | 84 | PIN_CONFIG_BIAS_DISABLE, |
| 80 | PIN_CONFIG_BIAS_HIGH_IMPEDANCE, | 85 | PIN_CONFIG_BIAS_HIGH_IMPEDANCE, |
| 86 | PIN_CONFIG_BIAS_BUS_HOLD, | ||
| 81 | PIN_CONFIG_BIAS_PULL_UP, | 87 | PIN_CONFIG_BIAS_PULL_UP, |
| 82 | PIN_CONFIG_BIAS_PULL_DOWN, | 88 | PIN_CONFIG_BIAS_PULL_DOWN, |
| 83 | PIN_CONFIG_DRIVE_PUSH_PULL, | 89 | PIN_CONFIG_DRIVE_PUSH_PULL, |
