aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sh_pfc.h
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-11-10 21:45:23 -0500
committerPaul Mundt <lethal@linux-sh.org>2011-11-11 02:45:30 -0500
commitbd8d0cbaa00883c84741b98264f8318cdade9c71 (patch)
tree4b603206fa6329779b3b56afe28ecac252f891d9 /include/linux/sh_pfc.h
parent8e6a46757ad11a16354b9037e17d6135d9a4bb87 (diff)
ARM: mach-shmobile: move helper macro PORT_DATA_xx to sh_pfc.h
This patch move PORT_DATA_xx helper macro to sh_pfc.h. and pfc-sh7372.c used it Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/linux/sh_pfc.h')
-rw-r--r--include/linux/sh_pfc.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/include/linux/sh_pfc.h b/include/linux/sh_pfc.h
index bc8c9208f7e2..5585f280dc1d 100644
--- a/include/linux/sh_pfc.h
+++ b/include/linux/sh_pfc.h
@@ -104,4 +104,40 @@ struct pinmux_info {
104int register_pinmux(struct pinmux_info *pip); 104int register_pinmux(struct pinmux_info *pip);
105int unregister_pinmux(struct pinmux_info *pip); 105int unregister_pinmux(struct pinmux_info *pip);
106 106
107/* helper macro for pinmux_enum_t */
108#define PORT_DATA_I(nr) \
109 PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, PORT##nr##_IN)
110
111#define PORT_DATA_I_PD(nr) \
112 PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, \
113 PORT##nr##_IN, PORT##nr##_IN_PD)
114
115#define PORT_DATA_I_PU(nr) \
116 PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, \
117 PORT##nr##_IN, PORT##nr##_IN_PU)
118
119#define PORT_DATA_I_PU_PD(nr) \
120 PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, \
121 PORT##nr##_IN, PORT##nr##_IN_PD, PORT##nr##_IN_PU)
122
123#define PORT_DATA_O(nr) \
124 PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, PORT##nr##_OUT)
125
126#define PORT_DATA_IO(nr) \
127 PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, PORT##nr##_OUT, \
128 PORT##nr##_IN)
129
130#define PORT_DATA_IO_PD(nr) \
131 PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, PORT##nr##_OUT, \
132 PORT##nr##_IN, PORT##nr##_IN_PD)
133
134#define PORT_DATA_IO_PU(nr) \
135 PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, PORT##nr##_OUT, \
136 PORT##nr##_IN, PORT##nr##_IN_PU)
137
138#define PORT_DATA_IO_PU_PD(nr) \
139 PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, PORT##nr##_OUT, \
140 PORT##nr##_IN, PORT##nr##_IN_PD, PORT##nr##_IN_PU)
141
142
107#endif /* __SH_PFC_H */ 143#endif /* __SH_PFC_H */