forked from pool/u-boot
fe9c0cb377
1 OBS-URL: https://build.opensuse.org/request/show/312513 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=48
19 lines
706 B
Diff
19 lines
706 B
Diff
diff --git a/drivers/mmc/bcm2835_sdhci.c b/drivers/mmc/bcm2835_sdhci.c
|
|
index 078ef05..74b497e 100644
|
|
--- a/drivers/mmc/bcm2835_sdhci.c
|
|
+++ b/drivers/mmc/bcm2835_sdhci.c
|
|
@@ -69,11 +69,11 @@ static inline void bcm2835_sdhci_raw_writel(struct sdhci_host *host, u32 val,
|
|
* (Which is just as well - otherwise we'd have to nobble the DMA engine
|
|
* too)
|
|
*/
|
|
- while (get_timer(bcm_host->last_write) < bcm_host->twoticks_delay)
|
|
+ while (timer_get_us() < bcm_host->last_write + bcm_host->twoticks_delay)
|
|
;
|
|
|
|
writel(val, host->ioaddr + reg);
|
|
- bcm_host->last_write = get_timer(0);
|
|
+ bcm_host->last_write = timer_get_us();
|
|
}
|
|
|
|
static inline u32 bcm2835_sdhci_raw_readl(struct sdhci_host *host, int reg)
|