2 * Pin-multiplex helper macros for TI DaVinci family devices
4 * Author: Vladimir Barinov, MontaVista Software, Inc. <source@mvista.com>
6 * 2007 (c) MontaVista Software, Inc. This file is licensed under
7 * the terms of the GNU General Public License version 2. This program
8 * is licensed "as is" without any warranty of any kind, whether express
11 * Copyright (C) 2008 Texas Instruments.
13 #ifndef _MACH_DAVINCI_MUX_H_
14 #define _MACH_DAVINCI_MUX_H_
18 #define MUX_CFG(soc, desc, muxreg, mode_offset, mode_mask, mux_mode, dbg)\
22 .mux_reg_name = "PINMUX"#muxreg, \
23 .mux_reg = PINMUX##muxreg, \
24 .mask_offset = mode_offset, \
29 #define INT_CFG(soc, desc, mode_offset, mode_mask, mux_mode, dbg) \
33 .mux_reg_name = "INTMUX", \
35 .mask_offset = mode_offset, \
40 #define EVT_CFG(soc, desc, mode_offset, mode_mask, mux_mode, dbg) \
44 .mux_reg_name = "EVTMUX", \
46 .mask_offset = mode_offset, \
51 #endif /* _MACH_DAVINCI_MUX_H */