192e30c07SStefano Babic /* 292e30c07SStefano Babic * Copyright (C) 2011 392e30c07SStefano Babic * Stefano Babic, DENX Software Engineering, sbabic@denx.de. 492e30c07SStefano Babic * 592e30c07SStefano Babic * Copyright (C) 2010 TechNexion Ltd. 692e30c07SStefano Babic * 792e30c07SStefano Babic * This program is free software; you can redistribute it and/or modify 892e30c07SStefano Babic * it under the terms of the GNU General Public License as published by 992e30c07SStefano Babic * the Free Software Foundation; either version 2 of the License, or 1092e30c07SStefano Babic * (at your option) any later version. 1192e30c07SStefano Babic * 1292e30c07SStefano Babic * This program is distributed in the hope that it will be useful, 1392e30c07SStefano Babic * but WITHOUT ANY WARRANTY; without even the implied warranty of 1492e30c07SStefano Babic * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1592e30c07SStefano Babic * GNU General Public License for more details. 1692e30c07SStefano Babic * 1792e30c07SStefano Babic * You should have received a copy of the GNU General Public License 1892e30c07SStefano Babic * along with this program; if not, write to the Free Software 1992e30c07SStefano Babic * Foundation, Inc. 2092e30c07SStefano Babic */ 2192e30c07SStefano Babic 2292e30c07SStefano Babic #ifndef _TAM3517_H_ 2392e30c07SStefano Babic #define _TAM3517_H_ 2492e30c07SStefano Babic 2592e30c07SStefano Babic const omap3_sysinfo sysinfo = { 2692e30c07SStefano Babic DDR_DISCRETE, 2792e30c07SStefano Babic "TAM3517 TWISTER Board", 2892e30c07SStefano Babic "NAND", 2992e30c07SStefano Babic }; 3092e30c07SStefano Babic 3192e30c07SStefano Babic #define XR16L2751_GPMC_CONFIG1 0x00000000 3292e30c07SStefano Babic #define XR16L2751_GPMC_CONFIG2 0x001e1e01 3392e30c07SStefano Babic #define XR16L2751_GPMC_CONFIG3 0x00080300 3492e30c07SStefano Babic #define XR16L2751_GPMC_CONFIG4 0x1c091c09 3592e30c07SStefano Babic #define XR16L2751_GPMC_CONFIG5 0x04181f1f 3692e30c07SStefano Babic #define XR16L2751_GPMC_CONFIG6 0x00000FCF 3792e30c07SStefano Babic 3892e30c07SStefano Babic #define XR16L2751_UART1_BASE 0x21000000 3992e30c07SStefano Babic #define XR16L2751_UART2_BASE 0x23000000 4092e30c07SStefano Babic 41*30372965SStefano Babic /* GPIO used to select between U-Boot and kernel */ 42*30372965SStefano Babic #define SPL_OS_BOOT_KEY 55 4392e30c07SStefano Babic 4492e30c07SStefano Babic /* 4592e30c07SStefano Babic * IEN - Input Enable 4692e30c07SStefano Babic * IDIS - Input Disable 4792e30c07SStefano Babic * PTD - Pull type Down 4892e30c07SStefano Babic * PTU - Pull type Up 4992e30c07SStefano Babic * DIS - Pull type selection is inactive 5092e30c07SStefano Babic * EN - Pull type selection is active 5192e30c07SStefano Babic * M0 - Mode 0 5292e30c07SStefano Babic * The commented string gives the final mux configuration for that pin 5392e30c07SStefano Babic */ 5492e30c07SStefano Babic #define MUX_TWISTER() \ 5592e30c07SStefano Babic /* SDRC */\ 5692e30c07SStefano Babic MUX_VAL(CP(SDRC_D0), (IEN | PTD | DIS | M0)) \ 5792e30c07SStefano Babic MUX_VAL(CP(SDRC_D1), (IEN | PTD | DIS | M0)) \ 5892e30c07SStefano Babic MUX_VAL(CP(SDRC_D2), (IEN | PTD | DIS | M0)) \ 5992e30c07SStefano Babic MUX_VAL(CP(SDRC_D3), (IEN | PTD | DIS | M0)) \ 6092e30c07SStefano Babic MUX_VAL(CP(SDRC_D4), (IEN | PTD | DIS | M0)) \ 6192e30c07SStefano Babic MUX_VAL(CP(SDRC_D5), (IEN | PTD | DIS | M0)) \ 6292e30c07SStefano Babic MUX_VAL(CP(SDRC_D6), (IEN | PTD | DIS | M0)) \ 6392e30c07SStefano Babic MUX_VAL(CP(SDRC_D7), (IEN | PTD | DIS | M0)) \ 6492e30c07SStefano Babic MUX_VAL(CP(SDRC_D8), (IEN | PTD | DIS | M0)) \ 6592e30c07SStefano Babic MUX_VAL(CP(SDRC_D9), (IEN | PTD | DIS | M0)) \ 6692e30c07SStefano Babic MUX_VAL(CP(SDRC_D10), (IEN | PTD | DIS | M0)) \ 6792e30c07SStefano Babic MUX_VAL(CP(SDRC_D11), (IEN | PTD | DIS | M0)) \ 6892e30c07SStefano Babic MUX_VAL(CP(SDRC_D12), (IEN | PTD | DIS | M0)) \ 6992e30c07SStefano Babic MUX_VAL(CP(SDRC_D13), (IEN | PTD | DIS | M0)) \ 7092e30c07SStefano Babic MUX_VAL(CP(SDRC_D14), (IEN | PTD | DIS | M0)) \ 7192e30c07SStefano Babic MUX_VAL(CP(SDRC_D15), (IEN | PTD | DIS | M0)) \ 7292e30c07SStefano Babic MUX_VAL(CP(SDRC_D16), (IEN | PTD | DIS | M0)) \ 7392e30c07SStefano Babic MUX_VAL(CP(SDRC_D17), (IEN | PTD | DIS | M0)) \ 7492e30c07SStefano Babic MUX_VAL(CP(SDRC_D18), (IEN | PTD | DIS | M0)) \ 7592e30c07SStefano Babic MUX_VAL(CP(SDRC_D19), (IEN | PTD | DIS | M0)) \ 7692e30c07SStefano Babic MUX_VAL(CP(SDRC_D20), (IEN | PTD | DIS | M0)) \ 7792e30c07SStefano Babic MUX_VAL(CP(SDRC_D21), (IEN | PTD | DIS | M0)) \ 7892e30c07SStefano Babic MUX_VAL(CP(SDRC_D22), (IEN | PTD | DIS | M0)) \ 7992e30c07SStefano Babic MUX_VAL(CP(SDRC_D23), (IEN | PTD | DIS | M0)) \ 8092e30c07SStefano Babic MUX_VAL(CP(SDRC_D24), (IEN | PTD | DIS | M0)) \ 8192e30c07SStefano Babic MUX_VAL(CP(SDRC_D25), (IEN | PTD | DIS | M0)) \ 8292e30c07SStefano Babic MUX_VAL(CP(SDRC_D26), (IEN | PTD | DIS | M0)) \ 8392e30c07SStefano Babic MUX_VAL(CP(SDRC_D27), (IEN | PTD | DIS | M0)) \ 8492e30c07SStefano Babic MUX_VAL(CP(SDRC_D28), (IEN | PTD | DIS | M0)) \ 8592e30c07SStefano Babic MUX_VAL(CP(SDRC_D29), (IEN | PTD | DIS | M0)) \ 8692e30c07SStefano Babic MUX_VAL(CP(SDRC_D30), (IEN | PTD | DIS | M0)) \ 8792e30c07SStefano Babic MUX_VAL(CP(SDRC_D31), (IEN | PTD | DIS | M0)) \ 8892e30c07SStefano Babic MUX_VAL(CP(SDRC_CLK), (IEN | PTD | DIS | M0)) \ 8992e30c07SStefano Babic MUX_VAL(CP(SDRC_DQS0), (IEN | PTD | DIS | M0)) \ 9092e30c07SStefano Babic MUX_VAL(CP(SDRC_DQS1), (IEN | PTD | DIS | M0)) \ 9192e30c07SStefano Babic MUX_VAL(CP(SDRC_DQS2), (IEN | PTD | DIS | M0)) \ 9292e30c07SStefano Babic MUX_VAL(CP(SDRC_DQS3), (IEN | PTD | DIS | M0)) \ 9392e30c07SStefano Babic MUX_VAL(CP(SDRC_DQS0N), (IEN | PTD | EN | M0)) \ 9492e30c07SStefano Babic MUX_VAL(CP(SDRC_DQS1N), (IEN | PTD | EN | M0)) \ 9592e30c07SStefano Babic MUX_VAL(CP(SDRC_DQS2N), (IEN | PTD | EN | M0)) \ 9692e30c07SStefano Babic MUX_VAL(CP(SDRC_DQS3N), (IEN | PTD | EN | M0)) \ 9792e30c07SStefano Babic MUX_VAL(CP(SDRC_CKE0), (M0)) \ 9892e30c07SStefano Babic MUX_VAL(CP(SDRC_CKE1), (M0)) \ 9992e30c07SStefano Babic MUX_VAL(CP(STRBEN_DLY0), (IEN | PTD | EN | M0)) \ 10092e30c07SStefano Babic /*sdrc_strben_dly0*/\ 10192e30c07SStefano Babic MUX_VAL(CP(STRBEN_DLY1), (IEN | PTD | EN | M0)) \ 10292e30c07SStefano Babic /*sdrc_strben_dly1*/\ 10392e30c07SStefano Babic /* GPMC */\ 10492e30c07SStefano Babic MUX_VAL(CP(GPMC_A1), (IDIS | PTU | EN | M0)) \ 10592e30c07SStefano Babic MUX_VAL(CP(GPMC_A2), (IDIS | PTU | EN | M0)) \ 10692e30c07SStefano Babic MUX_VAL(CP(GPMC_A3), (IDIS | PTU | EN | M0)) \ 10792e30c07SStefano Babic MUX_VAL(CP(GPMC_A4), (IDIS | PTU | EN | M0)) \ 10892e30c07SStefano Babic MUX_VAL(CP(GPMC_A5), (IDIS | PTU | EN | M0)) \ 10992e30c07SStefano Babic MUX_VAL(CP(GPMC_A6), (IDIS | PTU | EN | M0)) \ 11092e30c07SStefano Babic MUX_VAL(CP(GPMC_A7), (IDIS | PTU | EN | M0)) \ 11192e30c07SStefano Babic MUX_VAL(CP(GPMC_A8), (IDIS | PTU | EN | M0)) \ 11292e30c07SStefano Babic MUX_VAL(CP(GPMC_A9), (IDIS | PTU | EN | M0)) \ 11392e30c07SStefano Babic MUX_VAL(CP(GPMC_A10), (IDIS | PTU | EN | M0)) \ 11492e30c07SStefano Babic MUX_VAL(CP(GPMC_D0), (IEN | PTU | EN | M0)) \ 11592e30c07SStefano Babic MUX_VAL(CP(GPMC_D1), (IEN | PTU | EN | M0)) \ 11692e30c07SStefano Babic MUX_VAL(CP(GPMC_D2), (IEN | PTU | EN | M0)) \ 11792e30c07SStefano Babic MUX_VAL(CP(GPMC_D3), (IEN | PTU | EN | M0)) \ 11892e30c07SStefano Babic MUX_VAL(CP(GPMC_D4), (IEN | PTU | EN | M0)) \ 11992e30c07SStefano Babic MUX_VAL(CP(GPMC_D5), (IEN | PTU | EN | M0)) \ 12092e30c07SStefano Babic MUX_VAL(CP(GPMC_D6), (IEN | PTU | EN | M0)) \ 12192e30c07SStefano Babic MUX_VAL(CP(GPMC_D7), (IEN | PTU | EN | M0)) \ 12292e30c07SStefano Babic MUX_VAL(CP(GPMC_D8), (IEN | PTU | EN | M0)) \ 12392e30c07SStefano Babic MUX_VAL(CP(GPMC_D9), (IEN | PTU | EN | M0)) \ 12492e30c07SStefano Babic MUX_VAL(CP(GPMC_D10), (IEN | PTU | EN | M0)) \ 12592e30c07SStefano Babic MUX_VAL(CP(GPMC_D11), (IEN | PTU | EN | M0)) \ 12692e30c07SStefano Babic MUX_VAL(CP(GPMC_D12), (IEN | PTU | EN | M0)) \ 12792e30c07SStefano Babic MUX_VAL(CP(GPMC_D13), (IEN | PTU | EN | M0)) \ 12892e30c07SStefano Babic MUX_VAL(CP(GPMC_D14), (IEN | PTU | EN | M0)) \ 12992e30c07SStefano Babic MUX_VAL(CP(GPMC_D15), (IEN | PTU | EN | M0)) \ 13092e30c07SStefano Babic MUX_VAL(CP(GPMC_NCS0), (IDIS | PTU | EN | M0)) \ 13192e30c07SStefano Babic MUX_VAL(CP(GPMC_NCS1), (IEN | PTU | EN | M0)) \ 13292e30c07SStefano Babic MUX_VAL(CP(GPMC_NCS2), (IDIS | PTD | EN | M2)) /*PWM9*/\ 13392e30c07SStefano Babic MUX_VAL(CP(GPMC_NCS3), (IEN | PTU | EN | M0)) \ 13492e30c07SStefano Babic MUX_VAL(CP(GPMC_NCS4), (IEN | PTD | EN | M4)) \ 13592e30c07SStefano Babic MUX_VAL(CP(GPMC_NCS5), (IDIS | PTU | EN | M0)) \ 13692e30c07SStefano Babic MUX_VAL(CP(GPMC_NCS6), (IDIS | PTD | EN | M3)) /*PWM11*/ \ 13792e30c07SStefano Babic MUX_VAL(CP(GPMC_NCS7), (IDIS | PTD | EN | M4)) /*GPIO_58*/ \ 13892e30c07SStefano Babic MUX_VAL(CP(GPMC_CLK), (IDIS | PTU | EN | M0)) \ 13992e30c07SStefano Babic MUX_VAL(CP(GPMC_NADV_ALE), (IDIS | PTD | DIS | M0)) \ 14092e30c07SStefano Babic MUX_VAL(CP(GPMC_NOE), (IDIS | PTD | DIS | M0)) \ 14192e30c07SStefano Babic MUX_VAL(CP(GPMC_NWE), (IDIS | PTD | DIS | M0)) \ 14292e30c07SStefano Babic MUX_VAL(CP(GPMC_NBE0_CLE), (IDIS | PTU | EN | M0)) \ 14392e30c07SStefano Babic MUX_VAL(CP(GPMC_NBE1), (IEN | PTU | EN | M0)) \ 14492e30c07SStefano Babic MUX_VAL(CP(GPMC_NWP), (IEN | PTD | DIS | M0)) \ 14592e30c07SStefano Babic MUX_VAL(CP(GPMC_WAIT0), (IEN | PTU | EN | M0)) \ 14692e30c07SStefano Babic MUX_VAL(CP(GPMC_WAIT1), (IEN | PTU | EN | M4)) \ 14792e30c07SStefano Babic MUX_VAL(CP(GPMC_WAIT2), (IEN | PTU | EN | M4)) /*GPIO_64*/\ 14892e30c07SStefano Babic MUX_VAL(CP(GPMC_WAIT3), (IEN | PTU | EN | M4)) \ 14992e30c07SStefano Babic /* DSS */\ 15092e30c07SStefano Babic MUX_VAL(CP(DSS_PCLK), (IDIS | PTD | DIS | M0)) \ 15192e30c07SStefano Babic MUX_VAL(CP(DSS_HSYNC), (IDIS | PTD | DIS | M0)) \ 15292e30c07SStefano Babic MUX_VAL(CP(DSS_VSYNC), (IDIS | PTD | DIS | M0)) \ 15392e30c07SStefano Babic MUX_VAL(CP(DSS_ACBIAS), (IDIS | PTD | DIS | M0)) \ 15492e30c07SStefano Babic MUX_VAL(CP(DSS_DATA0), (IDIS | PTD | DIS | M0)) \ 15592e30c07SStefano Babic MUX_VAL(CP(DSS_DATA1), (IDIS | PTD | DIS | M0)) \ 15692e30c07SStefano Babic MUX_VAL(CP(DSS_DATA2), (IDIS | PTD | DIS | M0)) \ 15792e30c07SStefano Babic MUX_VAL(CP(DSS_DATA3), (IDIS | PTD | DIS | M0)) \ 15892e30c07SStefano Babic MUX_VAL(CP(DSS_DATA4), (IDIS | PTD | DIS | M0)) \ 15992e30c07SStefano Babic MUX_VAL(CP(DSS_DATA5), (IDIS | PTD | DIS | M0)) \ 16092e30c07SStefano Babic MUX_VAL(CP(DSS_DATA6), (IDIS | PTD | DIS | M0)) \ 16192e30c07SStefano Babic MUX_VAL(CP(DSS_DATA7), (IDIS | PTD | DIS | M0)) \ 16292e30c07SStefano Babic MUX_VAL(CP(DSS_DATA8), (IDIS | PTD | DIS | M0)) \ 16392e30c07SStefano Babic MUX_VAL(CP(DSS_DATA9), (IDIS | PTD | DIS | M0)) \ 16492e30c07SStefano Babic MUX_VAL(CP(DSS_DATA10), (IDIS | PTD | DIS | M0)) \ 16592e30c07SStefano Babic MUX_VAL(CP(DSS_DATA11), (IDIS | PTD | DIS | M0)) \ 16692e30c07SStefano Babic MUX_VAL(CP(DSS_DATA12), (IDIS | PTD | DIS | M0)) \ 16792e30c07SStefano Babic MUX_VAL(CP(DSS_DATA13), (IDIS | PTD | DIS | M0)) \ 16892e30c07SStefano Babic MUX_VAL(CP(DSS_DATA14), (IDIS | PTD | DIS | M0)) \ 16992e30c07SStefano Babic MUX_VAL(CP(DSS_DATA15), (IDIS | PTD | DIS | M0)) \ 17092e30c07SStefano Babic MUX_VAL(CP(DSS_DATA16), (IDIS | PTD | DIS | M0)) \ 17192e30c07SStefano Babic MUX_VAL(CP(DSS_DATA17), (IDIS | PTD | DIS | M0)) \ 17292e30c07SStefano Babic MUX_VAL(CP(DSS_DATA18), (IDIS | PTD | DIS | M0)) \ 17392e30c07SStefano Babic MUX_VAL(CP(DSS_DATA19), (IDIS | PTD | DIS | M0)) \ 17492e30c07SStefano Babic MUX_VAL(CP(DSS_DATA20), (IDIS | PTD | DIS | M0)) \ 17592e30c07SStefano Babic MUX_VAL(CP(DSS_DATA21), (IDIS | PTD | DIS | M0)) \ 17692e30c07SStefano Babic MUX_VAL(CP(DSS_DATA22), (IDIS | PTD | DIS | M0)) \ 17792e30c07SStefano Babic MUX_VAL(CP(DSS_DATA23), (IDIS | PTD | DIS | M0)) \ 17892e30c07SStefano Babic /* CAMERA */\ 17992e30c07SStefano Babic MUX_VAL(CP(CAM_HS), (IEN | PTU | EN | M0)) \ 18092e30c07SStefano Babic MUX_VAL(CP(CAM_VS), (IEN | PTU | EN | M0)) \ 18192e30c07SStefano Babic MUX_VAL(CP(CAM_XCLKA), (IDIS | PTD | DIS | M0)) \ 18292e30c07SStefano Babic MUX_VAL(CP(CAM_PCLK), (IEN | PTU | EN | M0)) \ 18392e30c07SStefano Babic MUX_VAL(CP(CAM_FLD), (IDIS | PTD | DIS | M4)) /*GPIO_98*/\ 18492e30c07SStefano Babic MUX_VAL(CP(CAM_D0), (IEN | PTD | DIS | M0)) \ 18592e30c07SStefano Babic MUX_VAL(CP(CAM_D1), (IEN | PTD | DIS | M0)) \ 18692e30c07SStefano Babic MUX_VAL(CP(CAM_D2), (IEN | PTD | DIS | M0)) \ 18792e30c07SStefano Babic MUX_VAL(CP(CAM_D3), (IEN | PTD | DIS | M0)) \ 18892e30c07SStefano Babic MUX_VAL(CP(CAM_D4), (IEN | PTD | DIS | M0)) \ 18992e30c07SStefano Babic MUX_VAL(CP(CAM_D5), (IEN | PTD | DIS | M0)) \ 19092e30c07SStefano Babic MUX_VAL(CP(CAM_D6), (IEN | PTD | DIS | M0)) \ 19192e30c07SStefano Babic MUX_VAL(CP(CAM_D7), (IEN | PTD | DIS | M0)) \ 19292e30c07SStefano Babic MUX_VAL(CP(CAM_D8), (IEN | PTD | DIS | M0)) \ 19392e30c07SStefano Babic MUX_VAL(CP(CAM_D9), (IEN | PTD | DIS | M0)) \ 19492e30c07SStefano Babic MUX_VAL(CP(CAM_D10), (IEN | PTD | DIS | M0)) \ 19592e30c07SStefano Babic MUX_VAL(CP(CAM_D11), (IEN | PTD | DIS | M0)) \ 19692e30c07SStefano Babic MUX_VAL(CP(CAM_XCLKB), (IDIS | PTD | DIS | M0)) \ 19792e30c07SStefano Babic MUX_VAL(CP(CAM_WEN), (IEN | PTD | DIS | M4)) /*GPIO_167*/\ 19892e30c07SStefano Babic MUX_VAL(CP(CAM_STROBE), (IDIS | PTD | DIS | M0)) \ 19992e30c07SStefano Babic MUX_VAL(CP(CSI2_DX0), (IEN | PTD | DIS | M0)) \ 20092e30c07SStefano Babic MUX_VAL(CP(CSI2_DY0), (IEN | PTD | DIS | M0)) \ 20192e30c07SStefano Babic MUX_VAL(CP(CSI2_DX1), (IEN | PTD | DIS | M0)) \ 20292e30c07SStefano Babic MUX_VAL(CP(CSI2_DY1), (IEN | PTD | DIS | M0)) \ 20392e30c07SStefano Babic /* MMC */\ 20492e30c07SStefano Babic MUX_VAL(CP(MMC1_CLK), (IEN | PTU | EN | M0)) \ 20592e30c07SStefano Babic MUX_VAL(CP(MMC1_CMD), (IEN | PTU | DIS | M0)) \ 20692e30c07SStefano Babic MUX_VAL(CP(MMC1_DAT0), (IEN | PTU | DIS | M0)) \ 20792e30c07SStefano Babic MUX_VAL(CP(MMC1_DAT1), (IEN | PTU | DIS | M0)) \ 20892e30c07SStefano Babic MUX_VAL(CP(MMC1_DAT2), (IEN | PTU | DIS | M0)) \ 20992e30c07SStefano Babic MUX_VAL(CP(MMC1_DAT3), (IEN | PTU | DIS | M0)) \ 21092e30c07SStefano Babic MUX_VAL(CP(MMC1_DAT4), (IEN | PTU | EN | M4)) \ 21192e30c07SStefano Babic /* CardDetect */\ 21292e30c07SStefano Babic MUX_VAL(CP(MMC1_DAT5), (IEN | PTU | EN | M4)) \ 21392e30c07SStefano Babic MUX_VAL(CP(MMC1_DAT6), (IEN | PTU | EN | M4)) \ 21492e30c07SStefano Babic MUX_VAL(CP(MMC1_DAT7), (IEN | PTU | EN | M4)) \ 21592e30c07SStefano Babic \ 21692e30c07SStefano Babic MUX_VAL(CP(MMC2_CLK), (IEN | PTU | EN | M0)) \ 21792e30c07SStefano Babic MUX_VAL(CP(MMC2_CMD), (IEN | PTU | DIS | M0)) \ 21892e30c07SStefano Babic MUX_VAL(CP(MMC2_DAT0), (IEN | PTU | DIS | M0)) \ 21992e30c07SStefano Babic MUX_VAL(CP(MMC2_DAT1), (IEN | PTU | DIS | M0)) \ 22092e30c07SStefano Babic MUX_VAL(CP(MMC2_DAT2), (IEN | PTU | DIS | M0)) \ 22192e30c07SStefano Babic MUX_VAL(CP(MMC2_DAT3), (IEN | PTU | DIS | M0)) \ 22292e30c07SStefano Babic MUX_VAL(CP(MMC2_DAT4), (IDIS | PTU | EN | M4)) \ 22392e30c07SStefano Babic MUX_VAL(CP(MMC2_DAT5), (IDIS | PTU | EN | M4)) \ 22492e30c07SStefano Babic MUX_VAL(CP(MMC2_DAT6), (IDIS | PTU | EN | M4)) \ 22592e30c07SStefano Babic MUX_VAL(CP(MMC2_DAT7), (IDIS | PTU | EN | M4)) \ 22692e30c07SStefano Babic /* McBSP */\ 22792e30c07SStefano Babic MUX_VAL(CP(MCBSP_CLKS), (IEN | PTU | DIS | M0)) \ 22892e30c07SStefano Babic MUX_VAL(CP(MCBSP1_CLKR), (IEN | PTD | DIS | M0)) \ 22992e30c07SStefano Babic MUX_VAL(CP(MCBSP1_FSR), (IDIS | PTU | EN | M0)) \ 23092e30c07SStefano Babic MUX_VAL(CP(MCBSP1_DX), (IDIS | PTD | DIS | M0)) \ 23192e30c07SStefano Babic MUX_VAL(CP(MCBSP1_DR), (IEN | PTD | DIS | M0)) \ 23292e30c07SStefano Babic MUX_VAL(CP(MCBSP1_FSX), (IEN | PTD | DIS | M0)) \ 23392e30c07SStefano Babic MUX_VAL(CP(MCBSP1_CLKX), (IEN | PTD | DIS | M0)) \ 23492e30c07SStefano Babic \ 23592e30c07SStefano Babic MUX_VAL(CP(MCBSP2_FSX), (IEN | PTD | EN | M4)) /*GPIO_116*/ \ 23692e30c07SStefano Babic MUX_VAL(CP(MCBSP2_CLKX), (IEN | PTD | EN | M4)) \ 23792e30c07SStefano Babic MUX_VAL(CP(MCBSP2_DR), (IEN | PTD | EN | M4)) \ 23892e30c07SStefano Babic MUX_VAL(CP(MCBSP2_DX), (IEN | PTD | EN | M4)) \ 23992e30c07SStefano Babic \ 24092e30c07SStefano Babic MUX_VAL(CP(MCBSP3_DX), (IEN | PTU | EN | M4)) \ 24192e30c07SStefano Babic MUX_VAL(CP(MCBSP3_DR), (IEN | PTU | EN | M4)) \ 24292e30c07SStefano Babic MUX_VAL(CP(MCBSP3_CLKX), (IEN | PTU | EN | M4)) \ 24392e30c07SStefano Babic MUX_VAL(CP(MCBSP3_FSX), (IEN | PTU | EN | M4)) \ 24492e30c07SStefano Babic \ 24592e30c07SStefano Babic MUX_VAL(CP(MCBSP4_CLKX), (IEN | PTD | DIS | M4)) /*GPIO_152*/\ 24692e30c07SStefano Babic MUX_VAL(CP(MCBSP4_DR), (IDIS | PTD | DIS | M4)) /*GPIO_153*/\ 24792e30c07SStefano Babic MUX_VAL(CP(MCBSP4_DX), (IDIS | PTD | DIS | M4)) /*GPIO_154*/\ 24892e30c07SStefano Babic MUX_VAL(CP(MCBSP4_FSX), (IEN | PTD | DIS | M4)) /*GPIO_155*/\ 24992e30c07SStefano Babic /* UART */\ 25092e30c07SStefano Babic MUX_VAL(CP(UART1_TX), (IDIS | PTD | DIS | M0)) \ 25192e30c07SStefano Babic MUX_VAL(CP(UART1_RTS), (IEN | PTU | EN | M4)) \ 25292e30c07SStefano Babic MUX_VAL(CP(UART1_CTS), (IEN | PTU | EN | M4)) \ 25392e30c07SStefano Babic \ 25492e30c07SStefano Babic MUX_VAL(CP(UART1_RX), (IEN | PTD | DIS | M0)) \ 25592e30c07SStefano Babic MUX_VAL(CP(UART2_CTS), (IEN | PTU | EN | M0)) \ 25692e30c07SStefano Babic MUX_VAL(CP(UART2_RTS), (IDIS | PTD | DIS | M0)) \ 25792e30c07SStefano Babic MUX_VAL(CP(UART2_TX), (IDIS | PTD | DIS | M0)) \ 25892e30c07SStefano Babic MUX_VAL(CP(UART2_RX), (IEN | PTD | DIS | M0)) \ 25992e30c07SStefano Babic \ 26092e30c07SStefano Babic MUX_VAL(CP(UART3_CTS_RCTX), (IDIS | PTD | DIS | M4)) /*GPIO_163*/ \ 26192e30c07SStefano Babic MUX_VAL(CP(UART3_RTS_SD), (IEN | PTD | DIS | M4)) /*GPIO_164*/\ 26292e30c07SStefano Babic MUX_VAL(CP(UART3_RX_IRRX), (IEN | PTD | DIS | M0)) \ 26392e30c07SStefano Babic MUX_VAL(CP(UART3_TX_IRTX), (IDIS | PTD | DIS | M0)) \ 26492e30c07SStefano Babic /* I2C */\ 26592e30c07SStefano Babic MUX_VAL(CP(I2C1_SCL), (IEN | PTU | EN | M0)) \ 26692e30c07SStefano Babic MUX_VAL(CP(I2C1_SDA), (IEN | PTU | EN | M0)) \ 26792e30c07SStefano Babic MUX_VAL(CP(I2C2_SCL), (IEN | PTU | EN | M0)) \ 26892e30c07SStefano Babic MUX_VAL(CP(I2C2_SDA), (IEN | PTU | EN | M0)) \ 26992e30c07SStefano Babic MUX_VAL(CP(I2C3_SCL), (IEN | PTU | EN | M0)) \ 27092e30c07SStefano Babic MUX_VAL(CP(I2C3_SDA), (IEN | PTU | EN | M0)) \ 27192e30c07SStefano Babic MUX_VAL(CP(I2C4_SCL), (IEN | PTU | EN | M0)) \ 27292e30c07SStefano Babic MUX_VAL(CP(I2C4_SDA), (IEN | PTU | EN | M0)) \ 27392e30c07SStefano Babic /* McSPI */\ 27492e30c07SStefano Babic MUX_VAL(CP(MCSPI1_CLK), (IEN | PTD | DIS | M0)) \ 27592e30c07SStefano Babic MUX_VAL(CP(MCSPI1_SIMO), (IEN | PTD | DIS | M0)) \ 27692e30c07SStefano Babic MUX_VAL(CP(MCSPI1_SOMI), (IEN | PTD | DIS | M0)) \ 27792e30c07SStefano Babic MUX_VAL(CP(MCSPI1_CS0), (IEN | PTD | EN | M0)) \ 27892e30c07SStefano Babic MUX_VAL(CP(MCSPI1_CS1), (IEN | PTD | EN | M4)) /*GPIO_175*/\ 27992e30c07SStefano Babic MUX_VAL(CP(MCSPI1_CS2), (IEN | PTD | EN | M4)) /*GPIO_176*/\ 28092e30c07SStefano Babic MUX_VAL(CP(MCSPI1_CS3), (IEN | PTD | EN | M4)) \ 28192e30c07SStefano Babic \ 28292e30c07SStefano Babic MUX_VAL(CP(MCSPI2_CLK), (IEN | PTD | DIS | M0)) \ 28392e30c07SStefano Babic MUX_VAL(CP(MCSPI2_SIMO), (IEN | PTD | DIS | M0)) \ 28492e30c07SStefano Babic MUX_VAL(CP(MCSPI2_SOMI), (IEN | PTD | DIS | M0)) \ 28592e30c07SStefano Babic MUX_VAL(CP(MCSPI2_CS0), (IEN | PTD | EN | M4)) \ 28692e30c07SStefano Babic MUX_VAL(CP(MCSPI2_CS1), (IEN | PTD | EN | M4)) \ 28792e30c07SStefano Babic /* CCDC */\ 28892e30c07SStefano Babic MUX_VAL(CP(CCDC_PCLK), (IEN | PTU | EN | M0)) \ 28992e30c07SStefano Babic MUX_VAL(CP(CCDC_FIELD), (IEN | PTD | DIS | M1)) \ 29092e30c07SStefano Babic MUX_VAL(CP(CCDC_HD), (IEN | PTU | EN | M0)) \ 29192e30c07SStefano Babic MUX_VAL(CP(CCDC_VD), (IEN | PTU | EN | M0)) \ 29292e30c07SStefano Babic MUX_VAL(CP(CCDC_WEN), (IEN | PTD | DIS | M1)) \ 29392e30c07SStefano Babic MUX_VAL(CP(CCDC_DATA0), (IEN | PTD | DIS | M0)) \ 29492e30c07SStefano Babic MUX_VAL(CP(CCDC_DATA1), (IEN | PTD | DIS | M0)) \ 29592e30c07SStefano Babic MUX_VAL(CP(CCDC_DATA2), (IEN | PTD | DIS | M0)) \ 29692e30c07SStefano Babic MUX_VAL(CP(CCDC_DATA3), (IEN | PTD | DIS | M0)) \ 29792e30c07SStefano Babic MUX_VAL(CP(CCDC_DATA4), (IEN | PTD | DIS | M0)) \ 29892e30c07SStefano Babic MUX_VAL(CP(CCDC_DATA5), (IEN | PTD | DIS | M0)) \ 29992e30c07SStefano Babic MUX_VAL(CP(CCDC_DATA6), (IEN | PTD | DIS | M0)) \ 30092e30c07SStefano Babic MUX_VAL(CP(CCDC_DATA7), (IEN | PTD | DIS | M0)) \ 30192e30c07SStefano Babic /* RMII */\ 30292e30c07SStefano Babic MUX_VAL(CP(RMII_MDIO_DATA), (IEN | M0)) \ 30392e30c07SStefano Babic MUX_VAL(CP(RMII_MDIO_CLK), (M0)) \ 30492e30c07SStefano Babic MUX_VAL(CP(RMII_RXD0) , (IEN | PTD | M0)) \ 30592e30c07SStefano Babic MUX_VAL(CP(RMII_RXD1), (IEN | PTD | M0)) \ 30692e30c07SStefano Babic MUX_VAL(CP(RMII_CRS_DV), (IEN | PTD | M0)) \ 30792e30c07SStefano Babic MUX_VAL(CP(RMII_RXER), (PTD | M0)) \ 30892e30c07SStefano Babic MUX_VAL(CP(RMII_TXD0), (PTD | M0)) \ 30992e30c07SStefano Babic MUX_VAL(CP(RMII_TXD1), (PTD | M0)) \ 31092e30c07SStefano Babic MUX_VAL(CP(RMII_TXEN), (PTD | M0)) \ 31192e30c07SStefano Babic MUX_VAL(CP(RMII_50MHZ_CLK), (IEN | PTD | EN | M0)) \ 31292e30c07SStefano Babic /* HECC */\ 31392e30c07SStefano Babic MUX_VAL(CP(HECC1_TXD), (IEN | PTU | EN | M0)) \ 31492e30c07SStefano Babic MUX_VAL(CP(HECC1_RXD), (IEN | PTU | EN | M0)) \ 31592e30c07SStefano Babic /* HSUSB */\ 31692e30c07SStefano Babic MUX_VAL(CP(HSUSB0_CLK), (IEN | PTD | DIS | M0)) \ 31792e30c07SStefano Babic MUX_VAL(CP(HSUSB0_STP), (IDIS | PTU | EN | M0)) \ 31892e30c07SStefano Babic MUX_VAL(CP(HSUSB0_DIR), (IEN | PTD | DIS | M0)) \ 31992e30c07SStefano Babic MUX_VAL(CP(HSUSB0_NXT), (IEN | PTU | DIS | M0)) \ 32092e30c07SStefano Babic MUX_VAL(CP(HSUSB0_DATA0), (IEN | PTD | DIS | M0)) \ 32192e30c07SStefano Babic MUX_VAL(CP(HSUSB0_DATA1), (IEN | PTD | DIS | M0)) \ 32292e30c07SStefano Babic MUX_VAL(CP(HSUSB0_DATA2), (IEN | PTD | DIS | M0)) \ 32392e30c07SStefano Babic MUX_VAL(CP(HSUSB0_DATA3), (IEN | PTD | DIS | M0)) \ 32492e30c07SStefano Babic MUX_VAL(CP(HSUSB0_DATA4), (IEN | PTD | DIS | M0)) \ 32592e30c07SStefano Babic MUX_VAL(CP(HSUSB0_DATA5), (IEN | PTD | DIS | M0)) \ 32692e30c07SStefano Babic MUX_VAL(CP(HSUSB0_DATA6), (IEN | PTD | DIS | M0)) \ 32792e30c07SStefano Babic MUX_VAL(CP(HSUSB0_DATA7), (IEN | PTD | DIS | M0)) \ 32892e30c07SStefano Babic MUX_VAL(CP(USB0_DRVBUS), (IEN | PTD | EN | M0)) \ 32992e30c07SStefano Babic /* HDQ */\ 33092e30c07SStefano Babic MUX_VAL(CP(HDQ_SIO), (IEN | PTD | EN | M4)) \ 33192e30c07SStefano Babic /* Control and debug */\ 33292e30c07SStefano Babic MUX_VAL(CP(SYS_32K), (IEN | PTD | DIS | M0)) \ 33392e30c07SStefano Babic MUX_VAL(CP(SYS_CLKREQ), (IEN | PTD | DIS | M0)) \ 33492e30c07SStefano Babic MUX_VAL(CP(SYS_NIRQ), (IEN | PTU | EN | M0)) \ 33592e30c07SStefano Babic MUX_VAL(CP(SYS_NRESWARM), (IDIS | PTU | DIS | M4)) \ 33692e30c07SStefano Babic /* - GPIO30 */\ 33792e30c07SStefano Babic MUX_VAL(CP(SYS_BOOT0), (IEN | PTD | DIS | M4)) /*GPIO_2*/\ 33892e30c07SStefano Babic MUX_VAL(CP(SYS_BOOT1), (IEN | PTD | DIS | M4)) /*GPIO_3 */\ 33992e30c07SStefano Babic MUX_VAL(CP(SYS_BOOT2), (IEN | PTD | DIS | M4)) /*GPIO_4*/\ 34092e30c07SStefano Babic MUX_VAL(CP(SYS_BOOT3), (IEN | PTD | DIS | M4)) /*GPIO_5*/\ 34192e30c07SStefano Babic MUX_VAL(CP(SYS_BOOT4), (IEN | PTD | DIS | M4)) /*GPIO_6*/\ 34292e30c07SStefano Babic MUX_VAL(CP(SYS_BOOT5), (IEN | PTD | DIS | M4)) /*GPIO_7*/\ 34392e30c07SStefano Babic MUX_VAL(CP(SYS_BOOT6), (IDIS | PTD | DIS | M4)) /*GPIO_8*/\ 34492e30c07SStefano Babic /* - VIO_1V8*/\ 34592e30c07SStefano Babic MUX_VAL(CP(SYS_BOOT7), (IEN | PTD | EN | M0)) \ 34692e30c07SStefano Babic MUX_VAL(CP(SYS_BOOT8), (IEN | PTD | EN | M0)) \ 34792e30c07SStefano Babic \ 34892e30c07SStefano Babic MUX_VAL(CP(SYS_OFF_MODE), (IEN | PTD | DIS | M0)) \ 34992e30c07SStefano Babic MUX_VAL(CP(SYS_CLKOUT1), (IEN | PTD | DIS | M0)) \ 35092e30c07SStefano Babic MUX_VAL(CP(SYS_CLKOUT2), (IEN | PTU | EN | M0)) \ 35192e30c07SStefano Babic /* JTAG */\ 35292e30c07SStefano Babic MUX_VAL(CP(JTAG_nTRST), (IEN | PTD | DIS | M0)) \ 35392e30c07SStefano Babic MUX_VAL(CP(JTAG_TCK), (IEN | PTD | DIS | M0)) \ 35492e30c07SStefano Babic MUX_VAL(CP(JTAG_TMS), (IEN | PTD | DIS | M0)) \ 35592e30c07SStefano Babic MUX_VAL(CP(JTAG_TDI), (IEN | PTD | DIS | M0)) \ 35692e30c07SStefano Babic MUX_VAL(CP(JTAG_EMU0), (IDIS | PTD | EN | M4)) /*GPIO_11*/ \ 35792e30c07SStefano Babic MUX_VAL(CP(JTAG_EMU1), (IDIS | PTD | EN | M4)) /*GPIO_31*/ \ 35892e30c07SStefano Babic /* ETK (ES2 onwards) */\ 35992e30c07SStefano Babic MUX_VAL(CP(ETK_CLK_ES2), (IDIS | PTD | DIS | M3)) \ 36092e30c07SStefano Babic /* hsusb1_stp */ \ 36192e30c07SStefano Babic MUX_VAL(CP(ETK_CTL_ES2), (IDIS | PTD | DIS | M3)) \ 36292e30c07SStefano Babic /* hsusb1_clk */\ 36392e30c07SStefano Babic MUX_VAL(CP(ETK_D0_ES2), (IEN | PTU | EN | M3)) \ 36492e30c07SStefano Babic MUX_VAL(CP(ETK_D1_ES2), (IEN | PTU | EN | M3)) \ 36592e30c07SStefano Babic MUX_VAL(CP(ETK_D2_ES2), (IEN | PTU | EN | M3)) \ 36692e30c07SStefano Babic MUX_VAL(CP(ETK_D3_ES2), (IEN | PTU | EN | M3)) \ 36792e30c07SStefano Babic MUX_VAL(CP(ETK_D4_ES2), (IEN | PTU | EN | M3)) \ 36892e30c07SStefano Babic MUX_VAL(CP(ETK_D5_ES2), (IEN | PTU | EN | M3)) \ 36992e30c07SStefano Babic MUX_VAL(CP(ETK_D6_ES2), (IEN | PTU | EN | M3)) \ 37092e30c07SStefano Babic MUX_VAL(CP(ETK_D7_ES2), (IEN | PTU | EN | M3)) \ 37192e30c07SStefano Babic MUX_VAL(CP(ETK_D8_ES2), (IEN | PTD | EN | M3)) \ 37292e30c07SStefano Babic /* hsusb1_dir */\ 37392e30c07SStefano Babic MUX_VAL(CP(ETK_D9_ES2), (IEN | PTD | EN | M3)) \ 37492e30c07SStefano Babic /* hsusb1_nxt */\ 37592e30c07SStefano Babic MUX_VAL(CP(ETK_D10_ES2), (IEN | PTU | EN | M4)) \ 37692e30c07SStefano Babic MUX_VAL(CP(ETK_D11_ES2), (IDIS | PTD | DIS | M4)) \ 37792e30c07SStefano Babic MUX_VAL(CP(ETK_D12_ES2), (IEN | PTD | EN | M4)) \ 37892e30c07SStefano Babic MUX_VAL(CP(ETK_D13_ES2), (IEN | PTD | DIS | M4)) \ 37992e30c07SStefano Babic MUX_VAL(CP(ETK_D14_ES2), (IEN | PTD | DIS | M4)) \ 38092e30c07SStefano Babic MUX_VAL(CP(ETK_D15_ES2), (IEN | PTD | DIS | M4)) \ 38192e30c07SStefano Babic /* Die to Die */\ 38292e30c07SStefano Babic MUX_VAL(CP(D2D_MCAD34), (IEN | PTD | EN | M0)) \ 38392e30c07SStefano Babic MUX_VAL(CP(D2D_MCAD35), (IEN | PTD | EN | M0)) \ 38492e30c07SStefano Babic MUX_VAL(CP(D2D_MCAD36), (IEN | PTD | EN | M0)) \ 38592e30c07SStefano Babic MUX_VAL(CP(D2D_CLK26MI), (IEN | PTD | DIS | M0)) \ 38692e30c07SStefano Babic MUX_VAL(CP(D2D_NRESPWRON), (IEN | PTD | EN | M0)) \ 38792e30c07SStefano Babic MUX_VAL(CP(D2D_NRESWARM), (IEN | PTU | EN | M0)) \ 38892e30c07SStefano Babic MUX_VAL(CP(D2D_ARM9NIRQ), (IEN | PTD | DIS | M0)) \ 38992e30c07SStefano Babic MUX_VAL(CP(D2D_UMA2P6FIQ), (IEN | PTD | DIS | M0)) \ 39092e30c07SStefano Babic MUX_VAL(CP(D2D_SPINT), (IEN | PTD | EN | M0)) \ 39192e30c07SStefano Babic MUX_VAL(CP(D2D_FRINT), (IEN | PTD | EN | M0)) \ 39292e30c07SStefano Babic MUX_VAL(CP(D2D_DMAREQ0), (IEN | PTD | DIS | M0)) \ 39392e30c07SStefano Babic MUX_VAL(CP(D2D_DMAREQ1), (IEN | PTD | DIS | M0)) \ 39492e30c07SStefano Babic MUX_VAL(CP(D2D_DMAREQ2), (IEN | PTD | DIS | M0)) \ 39592e30c07SStefano Babic MUX_VAL(CP(D2D_DMAREQ3), (IEN | PTD | DIS | M0)) \ 39692e30c07SStefano Babic MUX_VAL(CP(D2D_N3GTRST), (IEN | PTD | DIS | M0)) \ 39792e30c07SStefano Babic MUX_VAL(CP(D2D_N3GTDI), (IEN | PTD | DIS | M0)) \ 39892e30c07SStefano Babic MUX_VAL(CP(D2D_N3GTDO), (IEN | PTD | DIS | M0)) \ 39992e30c07SStefano Babic MUX_VAL(CP(D2D_N3GTMS), (IEN | PTD | DIS | M0)) \ 40092e30c07SStefano Babic MUX_VAL(CP(D2D_N3GTCK), (IEN | PTD | DIS | M0)) \ 40192e30c07SStefano Babic MUX_VAL(CP(D2D_N3GRTCK), (IEN | PTD | DIS | M0)) \ 40292e30c07SStefano Babic MUX_VAL(CP(D2D_MSTDBY), (IEN | PTU | EN | M0)) \ 40392e30c07SStefano Babic MUX_VAL(CP(D2D_SWAKEUP), (IEN | PTD | EN | M0)) \ 40492e30c07SStefano Babic MUX_VAL(CP(D2D_IDLEREQ), (IEN | PTD | DIS | M0)) \ 40592e30c07SStefano Babic MUX_VAL(CP(D2D_IDLEACK), (IEN | PTU | EN | M0)) \ 40692e30c07SStefano Babic MUX_VAL(CP(D2D_MWRITE), (IEN | PTD | DIS | M0)) \ 40792e30c07SStefano Babic MUX_VAL(CP(D2D_SWRITE), (IEN | PTD | DIS | M0)) \ 40892e30c07SStefano Babic MUX_VAL(CP(D2D_MREAD), (IEN | PTD | DIS | M0)) \ 40992e30c07SStefano Babic MUX_VAL(CP(D2D_SREAD), (IEN | PTD | DIS | M0)) \ 41092e30c07SStefano Babic MUX_VAL(CP(D2D_MBUSFLAG), (IEN | PTD | DIS | M0)) \ 41192e30c07SStefano Babic MUX_VAL(CP(D2D_SBUSFLAG), (IEN | PTD | DIS | M0)) \ 41292e30c07SStefano Babic 41392e30c07SStefano Babic #endif 414