/**
 * Note: This file was auto-generated by TI PinMux on 1/18/2020 at 4:53:43 AM.
 *
 * \file  boardPadDelayDevice.c
 *
 * \brief   This file contain run time configuration based on devices connected to SOC interfaces.
 *
 * \copyright Copyright (CU) 2015-2018 Texas Instruments Incorporated - 
 *             http://www.ti.com/
 */

/**
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions
 *  are met:
 *
 *    Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 *    Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the
 *    distribution.
 *
 *    Neither the name of Texas Instruments Incorporated nor the names of
 *    its contributors may be used to endorse or promote products derived
 *    from this software without specific prior written permission.
 *
 *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 */
 
#include <stdio.h>
#include <stdint.h>
#include "boardPadDelay.h"


/* Table containing the MMC pad to mode mapping for MMC1 instance. */
mmcBoardPadCfgTable_t gMmc1PinmuxTable[] =
{
    { MMC1_DEFAULT_PLB, NULL, 0 },
    /**< Pad configuration for Default Pad Loopback mode of MMC1. */
    { MMC1_HS_ILB, NULL, 0 },
    /**< Pad configuration for High speed Internal Loopback mode of MMC1. */
    { MMC1_HS_PLB, NULL, 0 },
    /**< Pad configuration for High speed Pad Loopback mode of MMC1. */
    { MMC1_SDR12_PLB, NULL, 0 },
    /**< Pad configuration for SDR12 Pad Loopback mode of MMC1. */
    { MMC1_SDR12_ILB, NULL, 0 },
    /**< Pad configuration for SDR12 Internal Loopback mode of MMC1. */
    { MMC1_SDR25_ILB, NULL, 0 },
    /**< Pad configuration for SDR25 Internal Loopback mode of MMC1. */
    { MMC1_SDR50_ILB, NULL, 0 },
    /**< Pad configuration for SDR50 Internal Loopback mode of MMC1. */
    { MMC1_SDR50_PLB, NULL, 0 },
    /**< Pad configuration for SDR50 Pad Loopback mode of MMC1. */
    { MMC1_DS_ILB, NULL, 0 },
    /**< Pad configuration for Default speed Internal Loopback mode of MMC1. */
    { MMC1_DDR50_ILB, NULL, 0 },
    /**< Pad configuration for DDR50 Internal Loopback mode of MMC1. */
    { MMC1_DDR50_PLB, NULL, 0 },
    /**< Pad configuration for DDR50 Pad Loopback mode of MMC1. */
    { MMC1_SDR104, NULL, 0 },
    /**< Pad configuration for SDR104 mode of MMC1. */
    { MMC_MODE_INVALID, NULL, 0 }
    /**< Invalid MMC Mode */
};

/* Table containing the MMC pad to mode mapping for MMC2 instance. */
mmcBoardPadCfgTable_t gMmc2PinmuxTable[] =
{
    { MMC2_DEFAULT_HS_PLB, NULL, 0 },
    /**< Pad configuration for Default High Speed Pad Loopback mode of MMC2. */
    { MMC2_DEFAULT_STD_PLB, NULL, 0 },
    /**< Pad configuration for Default Standard Pad Loopback mode of MMC2. */
    { MMC2_DDR_PLB, NULL, 0 },
    /**< Pad configuration for DDR Pad Loopback mode of MMC2. */
    { MMC2_DDR_ILB, NULL, 0 },
    /**< Pad configuration for DDR Internal Loopback Manual mode of MMC2. */
    { MMC2_HS200, NULL, 0 },
    /**< Pad configuration for HS200 mode of MMC2. */
    { MMC2_STD_ILB, NULL, 0 },
    /**< Pad configuration for Standard Internal Loopback mode of MMC2. */
    { MMC2_HS_ILB, NULL, 0 },
    /**< Pad configuration for High speed Internal Loopback mode of MMC2. */
    { MMC_MODE_INVALID, NULL, 0 }
    /**< Invalid MMC Mode */
};

/* Table containing the MMC pad to mode mapping for MMC3 instance. */
mmcBoardPadCfgTable_t gMmc3PinmuxTable[] =
{
    { MMC3_DEFAULT, NULL, 0 },
    /**< Pad configuration for Default speed mode of MMC3. */
    { MMC3_HS, NULL, 0 },
    /**< Pad configuration for High speed mode of MMC3. */
    { MMC3_SDR12, NULL, 0 },
    /**< Pad configuration for SDR12 mode of MMC3. */
    { MMC3_SDR25, NULL, 0 },
    /**< Pad configuration for SDR25 mode of MMC3. */
    { MMC3_SDR50, NULL, 0 },
    /**< Pad configuration for SDR50 mode of MMC3. */
    { MMC_MODE_INVALID, NULL, 0 }
    /**< Invalid MMC Mode */
};

/* Table containing the MMC pad to mode mapping for MMC4 instance. */
mmcBoardPadCfgTable_t gMmc4PinmuxTable[] =
{
    { MMC4_DEFAULT, NULL, 0 },
    /**< Pad configuration for Default speed mode of MMC4. */
    { MMC4_HS, NULL, 0 },
    /**< Pad configuration for High speed mode of MMC4. */
    { MMC4_SDR12, NULL, 0 },
    /**< Pad configuration for SDR12 mode of MMC4. */
    { MMC4_SDR25, NULL, 0 },
    /**< Pad configuration for SDR25 mode of MMC4. */
    { MMC_MODE_INVALID, NULL, 0 }
    /**< Invalid MMC Mode */
};

/* Look up Table containing the list of all Pad configuration structures for
   different operating modes defined for an instance of the MMC device. */
mmcBoardPadCfgTable_t* gMmcPadConfigTable[] =
{
    gMmc1PinmuxTable,
    /**< Pointer to the Pad configuration structure of MMC1 instance. */
    gMmc2PinmuxTable,
    /**< Pointer to the Pad configuration structure of MMC2 instance. */
    gMmc3PinmuxTable,
    /**< Pointer to the Pad configuration structure of MMC3 instance. */
    gMmc4PinmuxTable
    /**< Pointer to the Pad configuration structure of MMC4 instance. */
};

mmcBoardPadCfgTable_t* BoardGetMmcCtrlPadPinmuxTable(uint32_t instance)
{
    return (gMmcPadConfigTable[instance]);
}
