[PATCH 01/11] pinctrl: sh-pfc: Add PINMUX_SINGLE()


Biju Das <biju.das@...>
 

From: Geert Uytterhoeven <geert+renesas@...>

Add a macro to describe a pinmux configuration for a single-function
pin.

Signed-off-by: Geert Uytterhoeven <geert+renesas@...>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@...>
Acked-by: Laurent Pinchart <laurent.pinchart@...>
(cherry picked from commit dcd803bebcfc0fae9c2d3d5063210e9225fe4b1b)
Signed-off-by: Biju Das <biju.das@...>
---
drivers/pinctrl/sh-pfc/sh_pfc.h | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/drivers/pinctrl/sh-pfc/sh_pfc.h b/drivers/pinctrl/sh-pfc/sh_pfc.h
index 7b373d43..fb2de52 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)
*/

--
1.9.1

Join cip-dev@lists.cip-project.org to automatically receive all group messages.