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)
commite2b372ebb9ceb22bed40572a3a5a4d86fb006b7e
treecc23eca5ac27ed8cec8579769fdfb68dad8a1042
parentc8a019e7e12e1d450b5fd8e5bfb180b5a8004d9f
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