s5pv210: Why don't use the FIFO for Tx/Rx at MMC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

In mmc card configuration it don't use the FIFO control for Tx/Rx. Can
you explain it?

In the spec it can support 512 bytes FIFO for data Tx/Rx.

void s5pv210_setup_sdhci_cfg_card(struct platform_device *dev,
                                    void __iomem *r,
                                    struct mmc_ios *ios,
                                    struct mmc_card *card)
{
        u32 ctrl2, ctrl3;

        /* don't need to alter anything acording to card-type */

        writel(S3C64XX_SDHCI_CONTROL4_DRIVE_9mA, r + S3C64XX_SDHCI_CONTROL4);

        ctrl2 = readl(r + S3C_SDHCI_CONTROL2);
        ctrl2 &= S3C_SDHCI_CTRL2_SELBASECLK_MASK;
        ctrl2 |= (S3C64XX_SDHCI_CTRL2_ENSTAASYNCCLR |
                  S3C64XX_SDHCI_CTRL2_ENCMDCNFMSK |
                  S3C_SDHCI_CTRL2_ENFBCLKRX |
                  S3C_SDHCI_CTRL2_DFCNT_NONE |
                  S3C_SDHCI_CTRL2_ENCLKOUTHOLD);

        if (ios->clock < 25 * 1000000)
                ctrl3 = (S3C_SDHCI_CTRL3_FCSEL3 |
                         S3C_SDHCI_CTRL3_FCSEL2 |
                         S3C_SDHCI_CTRL3_FCSEL1 |
                         S3C_SDHCI_CTRL3_FCSEL0);
        else
                ctrl3 = (S3C_SDHCI_CTRL3_FCSEL1 | S3C_SDHCI_CTRL3_FCSEL0);

        writel(ctrl2, r + S3C_SDHCI_CONTROL2);
        writel(ctrl3, r + S3C_SDHCI_CONTROL3);
}

Thank you,
Kyungmin Park
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux