Skip to content

Commit 1ddb6ff

Browse files
Stephen WarrenLinus Walleij
authored andcommitted
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>
1 parent ae6b4d8 commit 1ddb6ff

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎include/linux/pinctrl/machine.h‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ struct pinmux_map {
6565
#define PINMUX_MAP_SYS(a, b, c) \
6666
{ .name = a, .ctrl_dev_name = b, .function = c }
6767

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+
6876
/*
6977
* Convenience macro to map a function onto the primary device pinctrl device
7078
* this is especially helpful on systems that have only one pin controller

0 commit comments

Comments
 (0)