2 * Table of the DAVINCI register configurations for the PINMUX combinations
4 * Author: Vladimir Barinov, MontaVista Software, Inc. <source@mvista.com>
6 * Based on linux/include/asm-arm/arch-omap/mux.h:
7 * Copyright (C) 2003 - 2005 Nokia Corporation
9 * Written by Tony Lindgren
11 * 2007 (c) MontaVista Software, Inc. This file is licensed under
12 * the terms of the GNU General Public License version 2. This program
13 * is licensed "as is" without any warranty of any kind, whether express
16 * Copyright (C) 2008 Texas Instruments.
19 #ifndef __INC_MACH_MUX_H
20 #define __INC_MACH_MUX_H
24 const char *mux_reg_name
;
25 const unsigned char mux_reg
;
26 const unsigned char mask_offset
;
27 const unsigned char mask
;
28 const unsigned char mode
;
32 enum davinci_dm644x_index
{
33 /* ATA and HDDIR functions */
73 /* EMAC and MDIO function */
76 /* GPIO3V[0:16] pins */
93 enum davinci_dm646x_index
{
105 DM646X_STSOMUX_DISABLE
,
106 DM646X_STSIMUX_DISABLE
,
107 DM646X_PTSOMUX_DISABLE
,
108 DM646X_PTSIMUX_DISABLE
,
113 DM646X_PTSOMUX_PARALLEL
,
114 DM646X_PTSIMUX_PARALLEL
,
115 DM646X_PTSOMUX_SERIAL
,
116 DM646X_PTSIMUX_SERIAL
,
119 enum davinci_dm355_index
{
150 DM355_INT_EDMA_TC0_ERR
,
151 DM355_INT_EDMA_TC1_ERR
,
153 /* EDMA event muxing */
159 enum davinci_dm365_index
{
276 DM365_VOUT_FIELD_G81
,
288 DM365_INT_EDMA_TC0_ERR
,
289 DM365_INT_EDMA_TC1_ERR
,
290 DM365_INT_EDMA_TC2_ERR
,
291 DM365_INT_EDMA_TC3_ERR
,
293 DM365_INT_EMAC_RXTHRESH
,
294 DM365_INT_EMAC_RXPULSE
,
295 DM365_INT_EMAC_TXPULSE
,
296 DM365_INT_EMAC_MISCPULSE
,
298 /* EDMA event muxing */
452 DA830_RMII_MHZ_50_CLK
,
659 DA830_NLCD_AC_ENB_CS
,
708 enum davinci_da850_index
{
780 #ifdef CONFIG_DAVINCI_MUX
781 /* setup pin muxing */
782 extern int davinci_cfg_reg(unsigned long reg_cfg
);
784 /* boot loader does it all (no warnings from CONFIG_DAVINCI_MUX_WARNINGS) */
785 static inline int davinci_cfg_reg(unsigned long reg_cfg
) { return 0; }
788 #endif /* __INC_MACH_MUX_H */