aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@st.com>2018-05-17 16:53:57 +0200
committerTom Rini <trini@konsulko.com>2018-05-26 18:19:19 -0400
commit635159a090fc44c5200c18bf049873476735578d (patch)
treec00452fc10623869b4fccda7ed4697e7d7cd111a /drivers
parent7f7deb0c72f559ab892c5f9013078c885120a64c (diff)
downloadu-boot-635159a090fc44c5200c18bf049873476735578d.zip
u-boot-635159a090fc44c5200c18bf049873476735578d.tar.gz
u-boot-635159a090fc44c5200c18bf049873476735578d.tar.bz2
mmc: stm32_sdmmc2: Fix stm32_sdmmc2_start_cmd()
SDMMC_CMD_CPSMEN bit is wrongly check and set in SDMMC_ARG register instead of SDMMC_CMD register. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/stm32_sdmmc2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/stm32_sdmmc2.c b/drivers/mmc/stm32_sdmmc2.c
index 11cc438..e8292c4 100644
--- a/drivers/mmc/stm32_sdmmc2.c
+++ b/drivers/mmc/stm32_sdmmc2.c
@@ -235,8 +235,8 @@ static void stm32_sdmmc2_start_data(struct stm32_sdmmc2_priv *priv,
static void stm32_sdmmc2_start_cmd(struct stm32_sdmmc2_priv *priv,
struct mmc_cmd *cmd, u32 cmd_param)
{
- if (readl(priv->base + SDMMC_ARG) & SDMMC_CMD_CPSMEN)
- writel(0, priv->base + SDMMC_ARG);
+ if (readl(priv->base + SDMMC_CMD) & SDMMC_CMD_CPSMEN)
+ writel(0, priv->base + SDMMC_CMD);
cmd_param |= cmd->cmdidx | SDMMC_CMD_CPSMEN;
if (cmd->resp_type & MMC_RSP_PRESENT) {