diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-11-18 15:54:09 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-11-21 08:00:13 +0100 |
commit | 924b5281a89c3ab948322d93a57dd5d05dcaf9aa (patch) | |
tree | 3778e08bebd2a59d9d802038c16c5f37bd3813df /drivers/mci/imx-esdhc-pbl.c | |
parent | 56d912bd33362365773cc6e51d9726d24cc112a9 (diff) | |
download | barebox-924b5281a89c3ab948322d93a57dd5d05dcaf9aa.tar.gz barebox-924b5281a89c3ab948322d93a57dd5d05dcaf9aa.tar.xz |
mci: sdhci: remove duplicate register defines for prsstat bits
We have duplicate register bit defines for the prsstat register.
Remove the duplicates.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mci/imx-esdhc-pbl.c')
-rw-r--r-- | drivers/mci/imx-esdhc-pbl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mci/imx-esdhc-pbl.c b/drivers/mci/imx-esdhc-pbl.c index 91390bd3aa..5e3157e6cd 100644 --- a/drivers/mci/imx-esdhc-pbl.c +++ b/drivers/mci/imx-esdhc-pbl.c @@ -105,7 +105,7 @@ static int esdhc_do_data(struct esdhc *esdhc, struct mci_data *data) int timeout = 1000000; while (1) { - present = esdhc_read32(esdhc, SDHCI_PRESENT_STATE) & PRSSTAT_BREN; + present = esdhc_read32(esdhc, SDHCI_PRESENT_STATE) & SDHCI_BUFFER_READ_ENABLE; if (present) break; if (!--timeout) { @@ -196,8 +196,8 @@ esdhc_send_cmd(struct esdhc *esdhc, struct mci_cmd *cmd, struct mci_data *data) /* Wait for the bus to be idle */ timeout = 10000; - while (esdhc_read32(esdhc, SDHCI_PRESENT_STATE) & - (PRSSTAT_CICHB | PRSSTAT_CIDHB | PRSSTAT_DLA)) { + while (esdhc_read32(esdhc, SDHCI_PRESENT_STATE) & (SDHCI_CMD_INHIBIT_CMD | + SDHCI_CMD_INHIBIT_DATA | SDHCI_DATA_LINE_ACTIVE)) { __udelay(1); if (!timeout--) return -ETIMEDOUT; |