diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2013-01-04 11:57:40 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-01-11 15:49:20 -0500 |
commit | 483f33f63c1cb3c6becb465bac7b75d7ff5e3b8f (patch) | |
tree | 91bbe9cb07b0125597fb341122aa163d37ffc370 /include/linux/pinctrl | |
parent | 8d99b32d7b9fb542c5efb00a8ec3b96e77be86fd (diff) |
pinctrl: add pinconf-generic defines for output
This adds a definition of a generic output configuration
for a certain pin when using the generic pin configuration
library. Whereas driving pins low/high is usually a GPIO
business, you may want to set up pins into a default state
using hogs, and never touch them again. This helps out
with that scenario.
Based on a patch from Patrice Chotard.
Signed-off-by: Patrice Chotard <patrice.chotard@stericsson.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/pinctrl')
-rw-r--r-- | include/linux/pinctrl/pinconf-generic.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pinctrl/pinconf-generic.h b/include/linux/pinctrl/pinconf-generic.h index 47a1bdd88878..b23d99da3b4b 100644 --- a/include/linux/pinctrl/pinconf-generic.h +++ b/include/linux/pinctrl/pinconf-generic.h | |||
@@ -62,6 +62,8 @@ | |||
62 | * operation, if several modes of operation are supported these can be | 62 | * operation, if several modes of operation are supported these can be |
63 | * passed in the argument on a custom form, else just use argument 1 | 63 | * passed in the argument on a custom form, else just use argument 1 |
64 | * to indicate low power mode, argument 0 turns low power mode off. | 64 | * to indicate low power mode, argument 0 turns low power mode off. |
65 | * @PIN_CONFIG_OUTPUT: this will configure the pin in output, use argument | ||
66 | * 1 to indicate high level, argument 0 to indicate low level. | ||
65 | * @PIN_CONFIG_END: this is the last enumerator for pin configurations, if | 67 | * @PIN_CONFIG_END: this is the last enumerator for pin configurations, if |
66 | * you need to pass in custom configurations to the pin controller, use | 68 | * you need to pass in custom configurations to the pin controller, use |
67 | * PIN_CONFIG_END+1 as the base offset. | 69 | * PIN_CONFIG_END+1 as the base offset. |
@@ -79,6 +81,7 @@ enum pin_config_param { | |||
79 | PIN_CONFIG_INPUT_DEBOUNCE, | 81 | PIN_CONFIG_INPUT_DEBOUNCE, |
80 | PIN_CONFIG_POWER_SOURCE, | 82 | PIN_CONFIG_POWER_SOURCE, |
81 | PIN_CONFIG_LOW_POWER_MODE, | 83 | PIN_CONFIG_LOW_POWER_MODE, |
84 | PIN_CONFIG_OUTPUT, | ||
82 | PIN_CONFIG_END = 0x7FFF, | 85 | PIN_CONFIG_END = 0x7FFF, |
83 | }; | 86 | }; |
84 | 87 | ||