mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-17 20:54:10 +00:00
mmc: sdhci-pxav3: disable clock inversion for HS MMC cards
According to 'FE-2946959' erratum the clock inversion option is needed to support slow frequencies when the card input hold time requirement is high. This setting is not required for high speed MMC and might cause timing violation. Signed-off-by: Nadav Haklai <nadavh@marvell.com> Cc: <stable@vger.kernel.org> # v4.2 Reviewed-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
5de76bfcb1
commit
fa7964147d
1 changed files with 3 additions and 0 deletions
|
@ -291,6 +291,9 @@ static void pxav3_set_uhs_signaling(struct sdhci_host *host, unsigned int uhs)
|
||||||
uhs == MMC_TIMING_UHS_DDR50) {
|
uhs == MMC_TIMING_UHS_DDR50) {
|
||||||
reg_val &= ~SDIO3_CONF_CLK_INV;
|
reg_val &= ~SDIO3_CONF_CLK_INV;
|
||||||
reg_val |= SDIO3_CONF_SD_FB_CLK;
|
reg_val |= SDIO3_CONF_SD_FB_CLK;
|
||||||
|
} else if (uhs == MMC_TIMING_MMC_HS) {
|
||||||
|
reg_val &= ~SDIO3_CONF_CLK_INV;
|
||||||
|
reg_val &= ~SDIO3_CONF_SD_FB_CLK;
|
||||||
} else {
|
} else {
|
||||||
reg_val |= SDIO3_CONF_CLK_INV;
|
reg_val |= SDIO3_CONF_CLK_INV;
|
||||||
reg_val &= ~SDIO3_CONF_SD_FB_CLK;
|
reg_val &= ~SDIO3_CONF_SD_FB_CLK;
|
||||||
|
|
Loading…
Add table
Reference in a new issue