Skip to content
Snippets Groups Projects
Commit 9924ca6e authored by Wu, Josh's avatar Wu, Josh Committed by Andreas Bießmann
Browse files

mmc: at91: use max timeout value. It will avoid some situation that timeout happened.

parent 3a49cd7e
No related branches found
No related tags found
No related merge requests found
...@@ -321,8 +321,8 @@ static int mci_init(struct mmc *mmc) ...@@ -321,8 +321,8 @@ static int mci_init(struct mmc *mmc)
writel(MMCI_BIT(MCIEN), &mci->cr); /* enable mci */ writel(MMCI_BIT(MCIEN), &mci->cr); /* enable mci */
writel(MMCI_BF(SCDSEL, MCI_BUS), &mci->sdcr); /* select port */ writel(MMCI_BF(SCDSEL, MCI_BUS), &mci->sdcr); /* select port */
/* Initial Time-outs */ /* This delay can be optimized, but stick with max value */
writel(0x5f, &mci->dtor); writel(0x7f, &mci->dtor);
/* Disable Interrupts */ /* Disable Interrupts */
writel(~0UL, &mci->idr); writel(~0UL, &mci->idr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment