Skip to content

Commit

Permalink
pinctrl: implement PINMUX_MAP_SYS_HOG
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Warren authored and Linus Walleij committed Jan 3, 2012
1 parent ae6b4d8 commit 1ddb6ff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/linux/pinctrl/machine.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ddb6ff

Please sign in to comment.