diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2013-01-08 16:43:12 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-01-18 10:16:28 -0500 |
commit | f868ef995b32f0f08d7b6ce700bbe25de3ad65ac (patch) | |
tree | fe6395e990f058aafb5027ea34ea484420019b1f /include/linux/pinctrl/pinconf-generic.h | |
parent | b6ae7a26535bb37c6c023c6f25b7f98904a8ab7c (diff) |
pinctrl: pinconf-generic: add drive strength parameter
Some pin configurations IP allows to set the current output to the pin.
This patch adds such a parameter to the pinconf-generic mechanism.
This parameter takes as argument the drive strength in mA.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/pinctrl/pinconf-generic.h')
-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 b23d99da3b4b..40d7bb9c7562 100644 --- a/include/linux/pinctrl/pinconf-generic.h +++ b/include/linux/pinctrl/pinconf-generic.h | |||
@@ -46,6 +46,8 @@ | |||
46 | * @PIN_CONFIG_DRIVE_OPEN_SOURCE: the pin will be driven with open source | 46 | * @PIN_CONFIG_DRIVE_OPEN_SOURCE: the pin will be driven with open source |
47 | * (open emitter). Sending this config will enabale open drain mode, the | 47 | * (open emitter). Sending this config will enabale open drain mode, the |
48 | * argument is ignored. | 48 | * argument is ignored. |
49 | * @PIN_CONFIG_DRIVE_STRENGTH: the pin will output the current passed as | ||
50 | * argument. The argument is in mA. | ||
49 | * @PIN_CONFIG_INPUT_SCHMITT_DISABLE: disable schmitt-trigger mode on the pin. | 51 | * @PIN_CONFIG_INPUT_SCHMITT_DISABLE: disable schmitt-trigger mode on the pin. |
50 | * @PIN_CONFIG_INPUT_SCHMITT: this will configure an input pin to run in | 52 | * @PIN_CONFIG_INPUT_SCHMITT: this will configure an input pin to run in |
51 | * schmitt-trigger mode. If the schmitt-trigger has adjustable hysteresis, | 53 | * schmitt-trigger mode. If the schmitt-trigger has adjustable hysteresis, |
@@ -76,6 +78,7 @@ enum pin_config_param { | |||
76 | PIN_CONFIG_DRIVE_PUSH_PULL, | 78 | PIN_CONFIG_DRIVE_PUSH_PULL, |
77 | PIN_CONFIG_DRIVE_OPEN_DRAIN, | 79 | PIN_CONFIG_DRIVE_OPEN_DRAIN, |
78 | PIN_CONFIG_DRIVE_OPEN_SOURCE, | 80 | PIN_CONFIG_DRIVE_OPEN_SOURCE, |
81 | PIN_CONFIG_DRIVE_STRENGTH, | ||
79 | PIN_CONFIG_INPUT_SCHMITT_DISABLE, | 82 | PIN_CONFIG_INPUT_SCHMITT_DISABLE, |
80 | PIN_CONFIG_INPUT_SCHMITT, | 83 | PIN_CONFIG_INPUT_SCHMITT, |
81 | PIN_CONFIG_INPUT_DEBOUNCE, | 84 | PIN_CONFIG_INPUT_DEBOUNCE, |