From: Angelo Dureghello Date: Thu, 2 Jul 2020 23:53:38 +0000 (+0200) Subject: m68k: stmark2: enable edma support for dspi X-Git-Tag: v5.9-rc1~101^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fde87ebf1daa8d96e4412aa06536da4b55103e02;p=thirdparty%2Fkernel%2Flinux.git m68k: stmark2: enable edma support for dspi Enable edma support for stmark2. Signed-off-by: Angelo Dureghello Signed-off-by: Greg Ungerer --- diff --git a/arch/m68k/coldfire/stmark2.c b/arch/m68k/coldfire/stmark2.c index a8d2b3d172f95..8b5af9c83244e 100644 --- a/arch/m68k/coldfire/stmark2.c +++ b/arch/m68k/coldfire/stmark2.c @@ -13,6 +13,7 @@ #include #include #include +#include #include /* @@ -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), }, };