summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-06-08 09:16:06 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-06-10 09:14:46 +0200
commit408a64b4ca72d2c26a39e2c56634da1763d53df6 (patch)
tree6e81620fc3892d229601fee8f412b365ffd05df2
parentc10b20dc83ac25b1d81c39eaad4529d9911813b1 (diff)
downloadbarebox-408a64b4ca72d2c26a39e2c56634da1763d53df6.tar.gz
barebox-408a64b4ca72d2c26a39e2c56634da1763d53df6.tar.xz
mci: sdhci: Fix swapped argument for sdhci_write32
sdhci_write32 accepts the register as second argument, not third. Fix this up. Fixes: 075179763a ("mci: sdhci: add Atmel SDHCI (sama5d2, sam9x60) support") Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/mci/atmel-sdhci-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mci/atmel-sdhci-common.c b/drivers/mci/atmel-sdhci-common.c
index 680b1980c0..b952462262 100644
--- a/drivers/mci/atmel-sdhci-common.c
+++ b/drivers/mci/atmel-sdhci-common.c
@@ -358,8 +358,8 @@ int at91_sdhci_init(struct at91_sdhci *host, u32 maxclk,
}
if (cal_always_on) {
- sdhci_write32(sdhci, AT91_SDHCI_CALCR_ALWYSON | AT91_SDHCI_CALCR_EN,
- AT91_SDHCI_CALCR);
+ sdhci_write32(sdhci, AT91_SDHCI_CALCR,
+ AT91_SDHCI_CALCR_ALWYSON | AT91_SDHCI_CALCR_EN);
}
return 0;