diff options
author | Tony Lindgren <tony@atomide.com> | 2011-03-11 14:32:26 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-03-11 14:32:26 -0500 |
commit | 8aee6039465c9887af6a4babfa5b52f8bc96b43d (patch) | |
tree | 39eaed372f3d4a00061a648c47cde101675d7461 | |
parent | 86c79bf45f380c6efd907e95f993146b2b975232 (diff) |
omap2+: mux: Add macro for configuring static with omap_hwmod_mux_init
Add macro for defining static pins in the board file.
We can now start implementing pin multiplexing in the platform init
code for devices that call omap_hwmod_mux_init. Currently that is
only implemented for serial.c.
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/mux.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/mux.h b/arch/arm/mach-omap2/mux.h index 8920fa4775ac..137f321c029f 100644 --- a/arch/arm/mach-omap2/mux.h +++ b/arch/arm/mach-omap2/mux.h | |||
@@ -186,6 +186,12 @@ struct omap_device_pad { | |||
186 | 186 | ||
187 | struct omap_hwmod_mux_info; | 187 | struct omap_hwmod_mux_info; |
188 | 188 | ||
189 | #define OMAP_MUX_STATIC(signal, mode) \ | ||
190 | { \ | ||
191 | .name = (signal), \ | ||
192 | .enable = (mode), \ | ||
193 | } | ||
194 | |||
189 | #if defined(CONFIG_OMAP_MUX) | 195 | #if defined(CONFIG_OMAP_MUX) |
190 | 196 | ||
191 | /** | 197 | /** |