Skip to content

Commit fde87eb

Browse files
adureghello-tsGreg Ungerer
authored andcommitted
m68k: stmark2: enable edma support for dspi
Enable edma support for stmark2. Signed-off-by: Angelo Dureghello <[email protected]> Signed-off-by: Greg Ungerer <[email protected]>
1 parent f944814 commit fde87eb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/m68k/coldfire/stmark2.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <linux/spi/spi.h>
1414
#include <linux/spi/spi-fsl-dspi.h>
1515
#include <linux/spi/flash.h>
16+
#include <linux/dma-mapping.h>
1617
#include <asm/mcfsim.h>
1718

1819
/*
@@ -78,6 +79,8 @@ static struct resource dspi_spi0_resource[] = {
7879
},
7980
};
8081

82+
static u64 stmark2_dspi_mask = DMA_BIT_MASK(32);
83+
8184
/* SPI controller, id = bus number */
8285
static struct platform_device dspi_spi0_device = {
8386
.name = "fsl-dspi",
@@ -86,6 +89,8 @@ static struct platform_device dspi_spi0_device = {
8689
.resource = dspi_spi0_resource,
8790
.dev = {
8891
.platform_data = &dspi_spi0_info,
92+
.dma_mask = &stmark2_dspi_mask,
93+
.coherent_dma_mask = DMA_BIT_MASK(32),
8994
},
9095
};
9196

0 commit comments

Comments
 (0)