mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
SDC: Auto-off clock when no transfer.
This commit is contained in:
parent
f8d496d9d1
commit
34963c7f37
@ -537,6 +537,8 @@ void sdc_lld_init(void) {
|
||||
void sdc_lld_start(SDCDriver *sdcp) {
|
||||
|
||||
if (sdcp->state == BLK_STOP) {
|
||||
LPC_SDMMC->CLKENA = (1U << 16); /* CCLK_LOW_POWER */
|
||||
|
||||
LPC_CCU1->CLK_M4_SDIO_CFG.RUN = 1;
|
||||
LPC_CGU->BASE_SDIO_CLK.PD = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user