Commit 210841c690546dd9b7faeee47c56851dc508f131
1 parent
899fb9e352
Exists in
smarc_8mq_lf_v2020.04
and in
22 other branches
mmc: sdhci: Add support for optional controller specific set_ios_post()
Some SDHCI drivers might need to do some special controller configuration after the common clock set_ios() function has been called (speed / width configuration). This patch adds a call to the newly created function set_ios_port() when its configured in the host driver. This will be used by the Xenon SDHCI controller driver used on the Marvell Armada 3700 and 7k/8k ARM64 SoCs. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Jaehoon Chung <jh80.chung@samsung.com> Cc: Simon Glass <sjg@chromium.org> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Showing 2 changed files with 5 additions and 0 deletions Side-by-side Diff
drivers/mmc/sdhci.c
... | ... | @@ -458,6 +458,10 @@ |
458 | 458 | |
459 | 459 | sdhci_writeb(host, ctrl, SDHCI_HOST_CONTROL); |
460 | 460 | |
461 | + /* If available, call the driver specific "post" set_ios() function */ | |
462 | + if (host->ops && host->ops->set_ios_post) | |
463 | + host->ops->set_ios_post(host); | |
464 | + | |
461 | 465 | return 0; |
462 | 466 | } |
463 | 467 |
include/sdhci.h