projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f944814
)
m68k: stmark2: enable edma support for dspi
author
Angelo Dureghello
<angelo.dureghello@timesys.com>
Thu, 2 Jul 2020 23:53:38 +0000
(
01:53
+0200)
committer
Greg Ungerer
<gerg@linux-m68k.org>
Mon, 27 Jul 2020 02:32:00 +0000
(12:32 +1000)
Enable edma support for stmark2.
Signed-off-by: Angelo Dureghello <angelo.dureghello@timesys.com>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
arch/m68k/coldfire/stmark2.c
patch
|
blob
|
history
diff --git
a/arch/m68k/coldfire/stmark2.c
b/arch/m68k/coldfire/stmark2.c
index a8d2b3d172f9531f0f3d4912997019d893d26f81..8b5af9c83244e59adfe1c96889d4dddeaa659b7c 100644
(file)
--- a/
arch/m68k/coldfire/stmark2.c
+++ b/
arch/m68k/coldfire/stmark2.c
@@
-13,6
+13,7
@@
#include <linux/spi/spi.h>
#include <linux/spi/spi-fsl-dspi.h>
#include <linux/spi/flash.h>
+#include <linux/dma-mapping.h>
#include <asm/mcfsim.h>
/*
@@
-78,6
+79,8
@@
static struct resource dspi_spi0_resource[] = {
},
};
+static u64 stmark2_dspi_mask = DMA_BIT_MASK(32);
+
/* SPI controller, id = bus number */
static struct platform_device dspi_spi0_device = {
.name = "fsl-dspi",
@@
-86,6
+89,8
@@
static struct platform_device dspi_spi0_device = {
.resource = dspi_spi0_resource,
.dev = {
.platform_data = &dspi_spi0_info,
+ .dma_mask = &stmark2_dspi_mask,
+ .coherent_dma_mask = DMA_BIT_MASK(32),
},
};