Use UM10503 (user manual) suggestion for SD delay config.

This commit is contained in:
Jared Boone 2016-05-06 15:04:53 -07:00
parent 56a7b841cb
commit 72cc6569ca

View File

@ -580,6 +580,11 @@ void sdc_lld_start(SDCDriver *sdcp) {
sdio_reset();
sdio_reset_card();
// UM10503 recommendation
LPC_SCU->SDDELAY =
(0x8 << 0)
| (0xf << 8)
;
LPC_SDMMC->CTRL =
(1U << 4) /* INT_ENABLE */
| (1U << 25) /* USE_INTERNAL_DMAC */