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 */
160 DM355_VOUT_FIELD_G70
,
165 /* Video In Pin Mux */
175 enum davinci_dm365_index
{
292 DM365_VOUT_FIELD_G81
,
304 DM365_INT_EDMA_TC0_ERR
,
305 DM365_INT_EDMA_TC1_ERR
,
306 DM365_INT_EDMA_TC2_ERR
,
307 DM365_INT_EDMA_TC3_ERR
,
309 DM365_INT_EMAC_RXTHRESH
,
310 DM365_INT_EMAC_RXPULSE
,
311 DM365_INT_EMAC_TXPULSE
,
312 DM365_INT_EMAC_MISCPULSE
,
313 DM365_INT_IMX0_ENABLE
,
314 DM365_INT_IMX0_DISABLE
,
315 DM365_INT_HDVICP_ENABLE
,
316 DM365_INT_HDVICP_DISABLE
,
317 DM365_INT_IMX1_ENABLE
,
318 DM365_INT_IMX1_DISABLE
,
319 DM365_INT_NSF_ENABLE
,
320 DM365_INT_NSF_DISABLE
,
322 /* EDMA event muxing */
476 DA830_RMII_MHZ_50_CLK
,
683 DA830_NLCD_AC_ENB_CS
,
732 enum davinci_da850_index
{
823 DA850_NLCD_AC_ENB_CS
,
825 /* MMC/SD0 function */
833 /* EMIF2.5/EMIFA function */
890 #ifdef CONFIG_DAVINCI_MUX
891 /* setup pin muxing */
892 extern int davinci_cfg_reg(unsigned long reg_cfg
);
894 /* boot loader does it all (no warnings from CONFIG_DAVINCI_MUX_WARNINGS) */
895 static inline int davinci_cfg_reg(unsigned long reg_cfg
) { return 0; }
898 #endif /* __INC_MACH_MUX_H */