pinctrl: sh-pfc: Add PINMUX_SINGLE()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 20 Oct 2015 17:33:00 +0000 (19:33 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 30 Nov 2015 12:41:31 +0000 (13:41 +0100)
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>
drivers/pinctrl/sh-pfc/sh_pfc.h

index 7b373d43d981899f1d85e5eab6846025235f1d89..fb2de5297609d86577d74405f28b5eddaf72d03e 100644 (file)
@@ -198,6 +198,14 @@ struct sh_pfc_soc_info {
 #define PINMUX_IPSR_MSEL(ipsr, fn, ms)                                 \
        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)
  */