mirror of https://gitee.com/openkylin/linux.git
m68k: stmark2: enable edma support for dspi
Enable edma support for stmark2. Signed-off-by: Angelo Dureghello <angelo.dureghello@timesys.com> Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
This commit is contained in:
parent
f944814eea
commit
fde87ebf1d
|
@ -13,6 +13,7 @@
|
||||||
#include <linux/spi/spi.h>
|
#include <linux/spi/spi.h>
|
||||||
#include <linux/spi/spi-fsl-dspi.h>
|
#include <linux/spi/spi-fsl-dspi.h>
|
||||||
#include <linux/spi/flash.h>
|
#include <linux/spi/flash.h>
|
||||||
|
#include <linux/dma-mapping.h>
|
||||||
#include <asm/mcfsim.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 */
|
/* SPI controller, id = bus number */
|
||||||
static struct platform_device dspi_spi0_device = {
|
static struct platform_device dspi_spi0_device = {
|
||||||
.name = "fsl-dspi",
|
.name = "fsl-dspi",
|
||||||
|
@ -86,6 +89,8 @@ static struct platform_device dspi_spi0_device = {
|
||||||
.resource = dspi_spi0_resource,
|
.resource = dspi_spi0_resource,
|
||||||
.dev = {
|
.dev = {
|
||||||
.platform_data = &dspi_spi0_info,
|
.platform_data = &dspi_spi0_info,
|
||||||
|
.dma_mask = &stmark2_dspi_mask,
|
||||||
|
.coherent_dma_mask = DMA_BIT_MASK(32),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue