Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aadb9f41 authored by Will Newton's avatar Will Newton Committed by Chris Ball
Browse files

mmc: dw_mmc: Enable low-power mode for the card clock.



Setting this bit in the clock enable register will stop the clock
when the card is in the IDLE state.

Signed-off-by: default avatarWill Newton <will.newton@imgtec.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent dd6c4b98
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -562,7 +562,8 @@ static void dw_mci_setup_bus(struct dw_mci_slot *slot)
			     SDMMC_CMD_UPD_CLK | SDMMC_CMD_PRV_DAT_WAIT, 0);

		/* enable clock */
		mci_writel(host, CLKENA, SDMMC_CLKEN_ENABLE);
		mci_writel(host, CLKENA, SDMMC_CLKEN_ENABLE |
			   SDMMC_CLKEN_LOW_PWR);

		/* inform CIU */
		mci_send_cmd(slot,