mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
Merge branch 'u-boot-imx/master' into 'u-boot-arm/master'
This commit is contained in:
commit
345be0b267
2 changed files with 6 additions and 6 deletions
|
@ -327,9 +327,6 @@ esdhc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
|
||||||
while (!(esdhc_read32(®s->irqstat) & (IRQSTAT_CC | IRQSTAT_CTOE)))
|
while (!(esdhc_read32(®s->irqstat) & (IRQSTAT_CC | IRQSTAT_CTOE)))
|
||||||
;
|
;
|
||||||
|
|
||||||
if (data && (data->flags & MMC_DATA_READ))
|
|
||||||
check_and_invalidate_dcache_range(cmd, data);
|
|
||||||
|
|
||||||
irqstat = esdhc_read32(®s->irqstat);
|
irqstat = esdhc_read32(®s->irqstat);
|
||||||
esdhc_write32(®s->irqstat, irqstat);
|
esdhc_write32(®s->irqstat, irqstat);
|
||||||
|
|
||||||
|
@ -400,9 +397,10 @@ esdhc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
|
||||||
|
|
||||||
if (irqstat & DATA_ERR)
|
if (irqstat & DATA_ERR)
|
||||||
return COMM_ERR;
|
return COMM_ERR;
|
||||||
} while (!(irqstat & IRQSTAT_TC) &&
|
} while ((irqstat & DATA_COMPLETE) != DATA_COMPLETE);
|
||||||
(esdhc_read32(®s->prsstat) & PRSSTAT_DLA));
|
|
||||||
#endif
|
#endif
|
||||||
|
if (data->flags & MMC_DATA_READ)
|
||||||
|
check_and_invalidate_dcache_range(cmd, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
esdhc_write32(®s->irqstat, -1);
|
esdhc_write32(®s->irqstat, -1);
|
||||||
|
|
|
@ -63,7 +63,9 @@
|
||||||
#define IRQSTAT_CC (0x00000001)
|
#define IRQSTAT_CC (0x00000001)
|
||||||
|
|
||||||
#define CMD_ERR (IRQSTAT_CIE | IRQSTAT_CEBE | IRQSTAT_CCE)
|
#define CMD_ERR (IRQSTAT_CIE | IRQSTAT_CEBE | IRQSTAT_CCE)
|
||||||
#define DATA_ERR (IRQSTAT_DEBE | IRQSTAT_DCE | IRQSTAT_DTOE)
|
#define DATA_ERR (IRQSTAT_DEBE | IRQSTAT_DCE | IRQSTAT_DTOE | \
|
||||||
|
IRQSTAT_DMAE)
|
||||||
|
#define DATA_COMPLETE (IRQSTAT_TC | IRQSTAT_DINT)
|
||||||
|
|
||||||
#define IRQSTATEN 0x0002e034
|
#define IRQSTATEN 0x0002e034
|
||||||
#define IRQSTATEN_DMAE (0x10000000)
|
#define IRQSTATEN_DMAE (0x10000000)
|
||||||
|
|
Loading…
Reference in a new issue