Bypass option for SDIOv1 driver.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12527 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
Giovanni Di Sirio 2019-01-05 15:18:32 +00:00
parent b798346a97
commit a3653f3b16
4 changed files with 14 additions and 2 deletions

View File

@ -451,7 +451,8 @@ void sdc_lld_start_clk(SDCDriver *sdcp) {
* @notapi
*/
void sdc_lld_set_data_clk(SDCDriver *sdcp, sdcbusclk_t clk) {
#if 0
#if STM32_SDC_SDIO_50MHZ
if (SDC_CLK_50MHz == clk) {
sdcp->sdio->CLKCR = (sdcp->sdio->CLKCR & 0xFFFFFF00U) | STM32_SDIO_DIV_HS
| SDIO_CLKCR_BYPASS;

View File

@ -91,6 +91,14 @@
#define STM32_SDC_SDIO_IRQ_PRIORITY 9
#endif
/**
* @brief Enable clock bypass.
* @note Allow clock speed up to 50 Mhz.
*/
#if !defined(STM32_SDC_SDIO_50MHZ) || defined(__DOXYGEN__)
#define STM32_SDC_SDIO_50MHZ FALSE
#endif
/**
* @brief Write timeout in milliseconds.
*/

View File

@ -548,7 +548,8 @@ void sdc_lld_start_clk(SDCDriver *sdcp) {
* @notapi
*/
void sdc_lld_set_data_clk(SDCDriver *sdcp, sdcbusclk_t clk) {
#if STM32_SDC_SDMMC_50MHZ && defined(STM32F7XX)
#if STM32_SDC_SDMMC_50MHZ
if (SDC_CLK_50MHz == clk) {
sdcp->sdmmc->CLKCR = (sdcp->sdmmc->CLKCR & 0xFFFFFF00U) |
#if STM32_SDC_SDMMC_PWRSAV

View File

@ -75,6 +75,8 @@
*****************************************************************************
*** Next ***
- NEW: Added option to enable bypass on SDIOv1 driver allowing to use a
50MHz clock.
- NEW: Added TIM15, TIM16 and TIM17 support on GPT, ICU and PWM drivers,
limited to STM32F3, L4 and L4+ platforms.
- NEW: STM32H7xx and STM32L4+ ports reworked to support dynamic DMA