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 #ifdef CONFIG_DAVINCI_MUX
 
 160 /* setup pin muxing */
 
 161 extern int davinci_cfg_reg(unsigned long reg_cfg);
 
 163 /* boot loader does it all (no warnings from CONFIG_DAVINCI_MUX_WARNINGS) */
 
 164 static inline int davinci_cfg_reg(unsigned long reg_cfg) { return 0; }
 
 167 #endif /* __INC_MACH_MUX_H */