Skip to content
Snippets Groups Projects
Commit 48e0b2bd authored by Haijun.Zhang's avatar Haijun.Zhang Committed by Andy Fleming
Browse files

powerpc/esdhc: Correct judgement for DATA PIO mode


The logic for the whether to configure for polling or DMA
was mistakenly reversed in this patch:

Commit 7b43db92
drivers/mmc/fsl_esdhc.c: fix compiler warnings

Signed-off-by: default avatarHaijun Zhang <Haijun.Zhang@freescale.com>
CC: Sun Yusong-R58495 <yorksun@freescale.com>
Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
parent f6c3b346
No related branches found
No related tags found
No related merge requests found
......@@ -178,7 +178,7 @@ static int esdhc_setup_data(struct mmc *mmc, struct mmc_data *data)
int timeout;
struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv;
struct fsl_esdhc *regs = (struct fsl_esdhc *)cfg->esdhc_base;
#ifndef CONFIG_SYS_FSL_ESDHC_USE_PIO
#ifdef CONFIG_SYS_FSL_ESDHC_USE_PIO
uint wml_value;
wml_value = data->blocksize/4;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment