/* This function use to reset FMI eMMC function.  */
void eMMC_Open(void)
/* This function use to reset FMI eMMC function.  */
void eMMC_Open(void)
{
    outpw(REG_FMI_DMACTL, FMI_DMACTL_DMARST_Msk);
    while (inpw(REG_FMI_DMACTL) & FMI_DMACTL_DMARST_Msk);
    outpw(REG_FMI_DMACTL, FMI_DMACTL_DMAEN_Msk);
    outpw(REG_FMI_CTL, FMI_CTL_CTLRST_Msk);
    while (inpw(REG_FMI_CTL) & FMI_CTL_CTLRST_Msk);
    outpw(REG_FMI_CTL, FMI_CTL_EMMCEN_Msk);
    outpw(REG_FMI_EMMCCTL, inpw(REG_FMI_EMMCCTL) | FMI_EMMCCTL_CTLRST_Msk);
    while (inpw(REG_FMI_EMMCCTL) & FMI_EMMCCTL_CTLRST_Msk);
    memset(&eMMC, 0, sizeof(EMMC_INFO_T));
    eMMC.IsCardInsert = 1;
}