]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-of-at91: set clocks and presets after resume from deepest PM
authorQuentin Schulz <quentin.schulz@free-electrons.com>
Thu, 13 Jul 2017 08:04:18 +0000 (10:04 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 12:01:31 +0000 (14:01 +0200)
commit45eb525637ad12c5ad0e3b446279b0b000a8d979
treecc23eca5ac27ed8cec8579769fdfb68dad8a1042
parentd4614050867f129d756f4633285952c5994239b0
mmc: sdhci-of-at91: set clocks and presets after resume from deepest PM

This adds deepest (Backup+Self-Refresh) PM support to the ATMEL SAMA5D2
SoC's SDHCI controller.

When resuming from deepest state, it is required to restore preset
registers as the registers are lost since VDD core has been shut down
when entering deepest state on the SAMA5D2. The clocks need to be
reconfigured as well.

The other registers and init process are taken care of by the SDHCI
core.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-at91.c