浏览代码

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>
Tony Lindgren 14 年之前
父节点
当前提交
8aee603946
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      arch/arm/mach-omap2/mux.h

+ 6 - 0
arch/arm/mach-omap2/mux.h

@@ -186,6 +186,12 @@ struct omap_device_pad {
 
 struct omap_hwmod_mux_info;
 
+#define OMAP_MUX_STATIC(signal, mode)					\
+{									\
+	.name	= (signal),						\
+	.enable	= (mode),						\
+}
+
 #if defined(CONFIG_OMAP_MUX)
 
 /**