mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
mmc: sdhci: Add support for disabling clock
This patch adds support to disable clock if clk_disable was set and then enable or set clock if the clock was changed or clock was disabled when clock needs to be enabled. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
36332b6e4b
commit
2a2d7efe77
1 changed files with 3 additions and 0 deletions
|
@ -439,6 +439,9 @@ static int sdhci_set_ios(struct mmc *mmc)
|
|||
if (mmc->clock != host->clock)
|
||||
sdhci_set_clock(mmc, mmc->clock);
|
||||
|
||||
if (mmc->clk_disable)
|
||||
sdhci_set_clock(mmc, 0);
|
||||
|
||||
/* Set bus width */
|
||||
ctrl = sdhci_readb(host, SDHCI_HOST_CONTROL);
|
||||
if (mmc->bus_width == 8) {
|
||||
|
|
Loading…
Add table
Reference in a new issue