summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/sh-pfc
diff options
context:
space:
mode:
authorGeert Uytterhoeven2015-10-20 19:33:00 +0200
committerGeert Uytterhoeven2015-11-30 13:41:31 +0100
commitdcd803bebcfc0fae9c2d3d5063210e9225fe4b1b (patch)
tree257e8c2549d1dea8e3115c98e21f451b7b2331ae /drivers/pinctrl/sh-pfc
parentLinux 4.4-rc1 (diff)
downloadkernel-qcow2-linux-dcd803bebcfc0fae9c2d3d5063210e9225fe4b1b.tar.gz
kernel-qcow2-linux-dcd803bebcfc0fae9c2d3d5063210e9225fe4b1b.tar.xz
kernel-qcow2-linux-dcd803bebcfc0fae9c2d3d5063210e9225fe4b1b.zip
pinctrl: sh-pfc: Add PINMUX_SINGLE()
Add a macro to describe a pinmux configuration for a single-function pin. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'drivers/pinctrl/sh-pfc')
-rw-r--r--drivers/pinctrl/sh-pfc/sh_pfc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/pinctrl/sh-pfc/sh_pfc.h b/drivers/pinctrl/sh-pfc/sh_pfc.h
index 7b373d43d981..fb2de5297609 100644
--- a/drivers/pinctrl/sh-pfc/sh_pfc.h
+++ b/drivers/pinctrl/sh-pfc/sh_pfc.h
@@ -199,6 +199,14 @@ struct sh_pfc_soc_info {
PINMUX_DATA(fn##_MARK, FN_##ms, FN_##ipsr, FN_##fn)
/*
+ * Describe a pinmux configuration for a single-function pin with GPIO
+ * capability.
+ * - fn: Function name
+ */
+#define PINMUX_SINGLE(fn) \
+ PINMUX_DATA(fn##_MARK, FN_##fn)
+
+/*
* GP port style (32 ports banks)
*/