Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ddb6ff0 authored by Stephen Warren's avatar Stephen Warren Committed by Linus Walleij
Browse files

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: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent ae6b4d85
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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