diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-06-19 06:50:43 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-06-24 08:53:47 +0200 |
commit | 9b37931ab8457417938c2f0981d616b08afde45d (patch) | |
tree | 4b04627b8acbf8ebe671e3568988e3a2a942cf3a /drivers | |
parent | 52db76ade6568a2558a94406391a9dca5ea1adfb (diff) | |
download | barebox-9b37931ab8457417938c2f0981d616b08afde45d.tar.gz barebox-9b37931ab8457417938c2f0981d616b08afde45d.tar.xz |
mci: allocate DMA-able memory
Doesn't yet make a difference, but in a future commit, RISC-V will use a
64-bit alignment for the sector buffers by defining a custom dma_alloc.
Prepare for this.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20210619045055.779-18-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mci/mci-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c index a094f3cbf5..b174067a7f 100644 --- a/drivers/mci/mci-core.c +++ b/drivers/mci/mci-core.c @@ -21,6 +21,7 @@ #include <of.h> #include <linux/err.h> #include <linux/sizes.h> +#include <dma.h> #define MAX_BUFFER_NUMBER 0xffffffff @@ -1852,7 +1853,7 @@ static int mci_set_probe(struct param_d *param, void *priv) static int mci_init(void) { - sector_buf = xmemalign(32, SECTOR_SIZE); + sector_buf = dma_alloc(SECTOR_SIZE); return 0; } |