]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mmc: sdhci-of-at91: add DT property to enable calibration on full reset
authorNicolas Ferre <nicolas.ferre@microchip.com>
Tue, 8 Oct 2019 12:34:32 +0000 (14:34 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 13 Nov 2019 15:10:16 +0000 (16:10 +0100)
commit727d836a375adc49f824a80a824a7e91ddac9d88
tree9db1bb9de3456967737d1c62401619317f8a753d
parent5cd41fe89704d4614562363d9051ee8bfdcf1ea1
mmc: sdhci-of-at91: add DT property to enable calibration on full reset

Add a property to keep the analog calibration cell powered.
This feature is specific to the Microchip SDHCI IP and outside
of the standard SDHCI register map.

By always keeping it on, after a full reset sequence, we make sure
that this feature is activated and not disabled.

We expose a hardware property to the DT as this feature can be used
to adapt SDHCI behavior vs. how the SDCAL SoC pin is connected
on the board.

Note that managing properly this property would reduce
power consumption on some SAMA5D2 SiP revisions.

Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.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