diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2012-05-07 05:17:53 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-05-11 05:14:17 -0400 |
commit | 65697e6b1a7d73d82d114377b448e89b9788e26b (patch) | |
tree | e65db164d172fff311c96a2a73385f36fd463519 | |
parent | d41af627638a0e1e964d546e385b20650e769ce5 (diff) |
pinctrl: add sleep state definition
There is an IDLE definition in the pinctrl framework, but for
ux500 SLEEP is more apropriate.
I've added some comments on the semantics of the common states
so as to avoid misunderstandings.
ChangeLog v1->v2:
- Fixed terminology "on"->"into".
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | include/linux/pinctrl/pinctrl-state.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/pinctrl/pinctrl-state.h b/include/linux/pinctrl/pinctrl-state.h index 3920e28b4da7..634608dc6c89 100644 --- a/include/linux/pinctrl/pinctrl-state.h +++ b/include/linux/pinctrl/pinctrl-state.h | |||
@@ -2,5 +2,18 @@ | |||
2 | * Standard pin control state definitions | 2 | * Standard pin control state definitions |
3 | */ | 3 | */ |
4 | 4 | ||
5 | /** | ||
6 | * @PINCTRL_STATE_DEFAULT: the state the pinctrl handle shall be put | ||
7 | * into as default, usually this means the pins are up and ready to | ||
8 | * be used by the device driver. This state is commonly used by | ||
9 | * hogs to configure muxing and pins at boot. | ||
10 | * @PINCTRL_STATE_IDLE: the state the pinctrl handle shall be put into | ||
11 | * when the pins are idle. Could typically be set from a | ||
12 | * pm_runtime_suspend() operation. | ||
13 | * @PINCTRL_STATE_SLEEP: the state the pinctrl handle shall be put into | ||
14 | * when the pins are sleeping. Could typically be set from a | ||
15 | * common suspend() function. | ||
16 | */ | ||
5 | #define PINCTRL_STATE_DEFAULT "default" | 17 | #define PINCTRL_STATE_DEFAULT "default" |
6 | #define PINCTRL_STATE_IDLE "idle" | 18 | #define PINCTRL_STATE_IDLE "idle" |
19 | #define PINCTRL_STATE_SLEEP "sleep" | ||