Re: [PATCH] m68k: stmark2: enable edma support for dspi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Greg,

just realized i double-posted this patch.
You already added it to for-next, so please discard this patch.

Thanks,
angelo


On Mon, Aug 3, 2020 at 8:19 PM Angelo Dureghello
<angelo.dureghello@xxxxxxxxxxx> wrote:

Enable dspi edma support for stmark2.

Signed-off-by: Angelo Dureghello <angelo.dureghello@xxxxxxxxxxx>
---
 arch/m68k/coldfire/stmark2.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/m68k/coldfire/stmark2.c b/arch/m68k/coldfire/stmark2.c
index a8d2b3d172f9..8b5af9c83244 100644
--- 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),
        },
 };

--
2.28.0



-- 
Angelo Dureghello
Timesys
e. angelo.dureghello@xxxxxxxxxxx



[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux