PXA_MFP_ACTIVE_MODE_SETTING_T gaulMMC2MFPTable[] =
{
#ifdef SDMMC2_DATA0
#if SDMMC2_DATA0==9 //GPIO 9
{SDMMC2_DATA0, PXA_MFP_ALT_FN_4, PXA_MFP_DS_08X, PXA_MFP_CFG_PULL, PXA_MFP_NOT_DEFINED_VALUE, PXA_MFP_PULL_UP, PXA_OFF, PXA_MFP_NEITHER_EDGE, PXA_OFF}, // pull up to support SDIO
#else
#error The value of "SDMMC2_DATA0" is not supported!
#endif
#endif
#ifdef SDMMC2_DATA1
#if SDMMC2_DATA1==10 //GPIO 10
{SDMMC2_DATA1, PXA_MFP_ALT_FN_4, PXA_MFP_DS_08X, PXA_MFP_CFG_NONE, PXA_MFP_NOT_DEFINED_VALUE, PXA_MFP_PULL_NEITHER, PXA_OFF, PXA_MFP_NEITHER_EDGE, PXA_OFF},
#else
#error The value of "SDMMC2_DATA1" is not supported!
#endif
#endif
#ifdef SDMMC2_DATA2
#if SDMMC2_DATA2==11 //GPIO 11
{SDMMC2_DATA2, PXA_MFP_ALT_FN_4, PXA_MFP_DS_08X, PXA_MFP_CFG_NONE, PXA_MFP_NOT_DEFINED_VALUE, PXA_MFP_PULL_NEITHER, PXA_OFF, PXA_MFP_NEITHER_EDGE, PXA_OFF},
#else
#error The value of "SDMMC2_DATA2" is not supported!
#endif
#endif
#ifdef SDMMC2_DATA3
#if SDMMC2_DATA3==12 //GPIO 12
{SDMMC2_DATA3, PXA_MFP_ALT_FN_4, PXA_MFP_DS_08X, PXA_MFP_CFG_NONE, PXA_MFP_NOT_DEFINED_VALUE, PXA_MFP_PULL_NEITHER, PXA_OFF, PXA_MFP_NEITHER_EDGE, PXA_OFF},
#else
#error The value of "SDMMC2_DATA3" is not supported!
#endif
#endif
#ifdef SDMMC2_CMD
#if SDMMC2_CMD==14 //命令pin脚
{SDMMC2_CMD, PXA_MFP_ALT_FN_4, PXA_MFP_DS_08X, PXA_MFP_CFG_NONE, PXA_MFP_NOT_DEFINED_VALUE, PXA_MFP_PULL_NEITHER, PXA_OFF, PXA_MFP_NEITHER_EDGE, PXA_OFF},
#else
#error The value of "SDMMC2_CMD" is not supported!
#endif
#endif
#ifdef SDMMC2_CLK
#if SDMMC2_CLK==13 //时钟pin脚
{SDMMC2_CLK, PXA_MFP_ALT_FN_4, PXA_MFP_DS_08X, PXA_MFP_CFG_NONE, PXA_MFP_NOT_DEFINED_VALUE, PXA_MFP_PULL_NEITHER, PXA_OFF, PXA_MFP_NEITHER_EDGE, PXA_OFF},
#else
#error The value of "SDMMC2_CLK" is not supported!
#endif
#endif
};
Prescaler Value [7:0] Determines SDI clock(SDCLK) rate as above equation.
Baud rate = PCLK / (Prescaler value + 1)
NOTE: Prescaler Value should be greater than zero.