git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6673 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
57d5ba67c5
commit
58fd763110
|
@ -380,6 +380,9 @@ void sdc_lld_start_clk(SDCDriver *sdcp) {
|
||||||
SDIO->CLKCR = STM32_SDIO_DIV_LS;
|
SDIO->CLKCR = STM32_SDIO_DIV_LS;
|
||||||
SDIO->POWER |= SDIO_POWER_PWRCTRL_0 | SDIO_POWER_PWRCTRL_1;
|
SDIO->POWER |= SDIO_POWER_PWRCTRL_0 | SDIO_POWER_PWRCTRL_1;
|
||||||
SDIO->CLKCR |= SDIO_CLKCR_CLKEN;
|
SDIO->CLKCR |= SDIO_CLKCR_CLKEN;
|
||||||
|
|
||||||
|
/* Clock activation delay.*/
|
||||||
|
osalThreadSleep(MS2ST(STM32_SDC_CLOCK_ACTIVATION_DELAY));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -200,9 +200,6 @@ bool sdcConnect(SDCDriver *sdcp) {
|
||||||
/* Card clock initialization.*/
|
/* Card clock initialization.*/
|
||||||
sdc_lld_start_clk(sdcp);
|
sdc_lld_start_clk(sdcp);
|
||||||
|
|
||||||
/* Clock activation delay.*/
|
|
||||||
osalThreadSleep(MS2ST(STM32_SDC_CLOCK_ACTIVATION_DELAY));
|
|
||||||
|
|
||||||
/* Enforces the initial card state.*/
|
/* Enforces the initial card state.*/
|
||||||
sdc_lld_send_cmd_none(sdcp, MMCSD_CMD_GO_IDLE_STATE, 0);
|
sdc_lld_send_cmd_none(sdcp, MMCSD_CMD_GO_IDLE_STATE, 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue