]> git.karo-electronics.de Git - linux-beck.git/commitdiff
pinctrl: implement PINMUX_MAP_SYS_HOG
authorStephen Warren <swarren@nvidia.com>
Fri, 9 Dec 2011 23:59:03 +0000 (16:59 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 3 Jan 2012 08:10:05 +0000 (09:10 +0100)
This is the same as PINMUX_MAP_PRIMARY_SYS_HOG, except that it allows
you to specify a particular control device.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/linux/pinctrl/machine.h

index f5372319d9990e4c1db66ff752b7edd2df8ed0cf..0ca32eb63b679ed9b5d1b008c729525be1d82f87 100644 (file)
@@ -65,6 +65,14 @@ struct pinmux_map {
 #define PINMUX_MAP_SYS(a, b, c) \
        { .name = a, .ctrl_dev_name = b, .function = c }
 
+/*
+ * Convenience macro to map a system function onto a certain pinctrl device,
+ * to be hogged by the pinmux core until the system shuts down.
+ */
+#define PINMUX_MAP_SYS_HOG(a, b, c) \
+       { .name = a, .ctrl_dev_name = b, .function = c, \
+         .hog_on_boot = true }
+
 /*
  * Convenience macro to map a function onto the primary device pinctrl device
  * this is especially helpful on systems that have only one pin controller