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

Kyungmin Park kmpark at infradead.org
Wed Jul 14 04:11:40 EDT 2010


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



More information about the linux-arm-kernel mailing list