aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/aspeed
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2019-07-29 15:26:03 +0930
committerLinus Walleij <linus.walleij@linaro.org>2019-08-05 12:40:48 +0200
commit86392fac9a9c92f36c0a422a3075865a0fe959f9 (patch)
tree4572f1049eb6fa1e13f4eb45ece294e40e201464 /drivers/pinctrl/aspeed
parentpinctrl: aspeed: Add multiple pin group support for functions (diff)
downloadlinux-dev-86392fac9a9c92f36c0a422a3075865a0fe959f9.tar.xz
linux-dev-86392fac9a9c92f36c0a422a3075865a0fe959f9.zip
pinctrl: aspeed: Add SIG_DESC_CLEAR() helper
The complement of SIG_DESC_SET(). Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Link: https://lore.kernel.org/r/20190729055604.13239-6-andrew@aj.id.au Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/aspeed')
-rw-r--r--drivers/pinctrl/aspeed/pinmux-aspeed.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pinctrl/aspeed/pinmux-aspeed.h b/drivers/pinctrl/aspeed/pinmux-aspeed.h
index 474820df6263..c59e936a7dde 100644
--- a/drivers/pinctrl/aspeed/pinmux-aspeed.h
+++ b/drivers/pinctrl/aspeed/pinmux-aspeed.h
@@ -508,6 +508,7 @@ struct aspeed_pin_desc {
* @idx: The bit index in the register
*/
#define SIG_DESC_SET(reg, idx) SIG_DESC_IP_BIT(ASPEED_IP_SCU, reg, idx, 1)
+#define SIG_DESC_CLEAR(reg, idx) SIG_DESC_IP_BIT(ASPEED_IP_SCU, reg, idx, 0)
#define SIG_DESC_LIST_SYM(sig, group) sig_descs_ ## sig ## _ ## group
#define SIG_DESC_LIST_DECL(sig, group, ...) \