diff options
author | Stephen Warren <swarren@nvidia.com> | 2011-12-09 18:59:03 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-01-03 03:10:05 -0500 |
commit | 1ddb6ff03c0cdec58c6cfdbada95acddcce4a7b7 (patch) | |
tree | 7bfc08fd3fb424f7faeefdcd5f60afba9d9954b2 /include/linux/pinctrl | |
parent | ae6b4d8588f4fc95520b0e62c4b1f474c82191a9 (diff) |
pinctrl: implement PINMUX_MAP_SYS_HOG
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>
Diffstat (limited to 'include/linux/pinctrl')
-rw-r--r-- | include/linux/pinctrl/machine.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/pinctrl/machine.h b/include/linux/pinctrl/machine.h index f5372319d999..0ca32eb63b67 100644 --- a/include/linux/pinctrl/machine.h +++ b/include/linux/pinctrl/machine.h | |||
@@ -66,6 +66,14 @@ struct pinmux_map { | |||
66 | { .name = a, .ctrl_dev_name = b, .function = c } | 66 | { .name = a, .ctrl_dev_name = b, .function = c } |
67 | 67 | ||
68 | /* | 68 | /* |
69 | * Convenience macro to map a system function onto a certain pinctrl device, | ||
70 | * to be hogged by the pinmux core until the system shuts down. | ||
71 | */ | ||
72 | #define PINMUX_MAP_SYS_HOG(a, b, c) \ | ||
73 | { .name = a, .ctrl_dev_name = b, .function = c, \ | ||
74 | .hog_on_boot = true } | ||
75 | |||
76 | /* | ||
69 | * Convenience macro to map a function onto the primary device pinctrl device | 77 | * Convenience macro to map a function onto the primary device pinctrl device |
70 | * this is especially helpful on systems that have only one pin controller | 78 | * this is especially helpful on systems that have only one pin controller |
71 | * or need to set up a lot of mappings on the primary controller. | 79 | * or need to set up a lot of mappings on the primary controller. |