]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
pinctrl: add sleep state definition
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 7 May 2012 09:17:53 +0000 (11:17 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 11 May 2012 09:14:17 +0000 (11:14 +0200)
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>
include/linux/pinctrl/pinctrl-state.h

index 3920e28b4da79bbe9fefb18ccbeb16058acbe8cd..634608dc6c89fe8c59aeb70e7b6c473a4869085f 100644 (file)
@@ -2,5 +2,18 @@
  * Standard pin control state definitions
  */
 
+/**
+ * @PINCTRL_STATE_DEFAULT: the state the pinctrl handle shall be put
+ *     into as default, usually this means the pins are up and ready to
+ *     be used by the device driver. This state is commonly used by
+ *     hogs to configure muxing and pins at boot.
+ * @PINCTRL_STATE_IDLE: the state the pinctrl handle shall be put into
+ *     when the pins are idle. Could typically be set from a
+ *     pm_runtime_suspend() operation.
+ * @PINCTRL_STATE_SLEEP: the state the pinctrl handle shall be put into
+ *     when the pins are sleeping. Could typically be set from a
+ *     common suspend() function.
+ */
 #define PINCTRL_STATE_DEFAULT "default"
 #define PINCTRL_STATE_IDLE "idle"
+#define PINCTRL_STATE_SLEEP "sleep"