diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2019-12-02 07:19:46 -0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-12-04 08:37:12 +0100 |
commit | 3755c616cc12aa98352762e5809616e71df056d9 (patch) | |
tree | b79b22c33e50260944907c0ecdc29919be380bf1 /drivers/mci/imx-esdhc-pbl.c | |
parent | f6791764247b83b9c8611941a312a478c7ff2016 (diff) | |
download | barebox-3755c616cc12aa98352762e5809616e71df056d9.tar.gz barebox-3755c616cc12aa98352762e5809616e71df056d9.tar.xz |
mci: imx-esdhc-pbl: Don't setup DMA registers
PBL code is PIO only, so setting up DMA related registers shouldn't be
necessary.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
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, 0 insertions, 6 deletions
diff --git a/drivers/mci/imx-esdhc-pbl.c b/drivers/mci/imx-esdhc-pbl.c index 5e3157e6cd..2afb55af9d 100644 --- a/drivers/mci/imx-esdhc-pbl.c +++ b/drivers/mci/imx-esdhc-pbl.c @@ -139,13 +139,7 @@ esdhc_send_cmd(struct esdhc *esdhc, struct mci_cmd *cmd, struct mci_data *data) __udelay(1); if (data) { - unsigned long dest = (unsigned long)data->dest; - - if (dest > 0xffffffff) - return -EINVAL; - /* Set up for a data transfer if we have one */ - esdhc_write32(esdhc, SDHCI_DMA_ADDRESS, (u32)dest); esdhc_write32(esdhc, SDHCI_BLOCK_SIZE__BLOCK_COUNT, data->blocks << 16 | SECTOR_SIZE); } |