aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pinctrl
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2011-12-14 03:30:08 -0500
committerLinus Walleij <linus.walleij@linaro.org>2012-01-03 03:10:06 -0500
commit23750196ef472e9249958d5165b0bb292518c710 (patch)
tree8c49d754f8291bff02ef124a44bbc3bd94c10160 /include/linux/pinctrl
parent51cd24ee625c348654114032499914d0311e5832 (diff)
pinctrl: add a group-specific hog macro
To create elegant tables for pinmux hogs on the PXA MMP platform, we need this hog macro that can specify both function and group in one go. Acked-by: Stephen Warren <swarren@nvidia.com> Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/pinctrl')
-rw-r--r--include/linux/pinctrl/machine.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/pinctrl/machine.h b/include/linux/pinctrl/machine.h
index ad430e05a7ba..d0aecb7f6fb9 100644
--- a/include/linux/pinctrl/machine.h
+++ b/include/linux/pinctrl/machine.h
@@ -73,6 +73,15 @@ struct pinmux_map {
73 { .name = a, .ctrl_dev_name = b, .function = c, \ 73 { .name = a, .ctrl_dev_name = b, .function = c, \
74 .hog_on_boot = true } 74 .hog_on_boot = true }
75 75
76/*
77 * Convenience macro to map a system function onto a certain pinctrl device
78 * using a specified group, to be hogged by the pinmux core until the system
79 * shuts down.
80 */
81#define PINMUX_MAP_SYS_HOG_GROUP(a, b, c, d) \
82 { .name = a, .ctrl_dev_name = b, .function = c, .group = d, \
83 .hog_on_boot = true }
84
76#ifdef CONFIG_PINMUX 85#ifdef CONFIG_PINMUX
77 86
78extern int pinmux_register_mappings(struct pinmux_map const *map, 87extern int pinmux_register_mappings(struct pinmux_map const *map,