Skip to content

Commit

Permalink
Merge branch 'ep93xx-dma' into spi/next
Browse files Browse the repository at this point in the history
  • Loading branch information
Grant Likely committed Jun 9, 2011
2 parents c37f3c2 + 626a96d commit e4c8308
Show file tree
Hide file tree
Showing 169 changed files with 3,492 additions and 1,656 deletions.
10 changes: 10 additions & 0 deletions Documentation/spi/ep93xx_spi
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ static void __init ts72xx_init_machine(void)
ARRAY_SIZE(ts72xx_spi_devices));
}

The driver can use DMA for the transfers also. In this case ts72xx_spi_info
becomes:

static struct ep93xx_spi_info ts72xx_spi_info = {
.num_chipselect = ARRAY_SIZE(ts72xx_spi_devices),
.use_dma = true;
};

Note that CONFIG_EP93XX_DMA should be enabled as well.

Thanks to
=========
Martin Guy, H. Hartley Sweeten and others who helped me during development of
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VERSION = 3
PATCHLEVEL = 0
SUBLEVEL = 0
EXTRAVERSION = -rc1
EXTRAVERSION = -rc2
NAME = Sneaky Weasel

# *DOCUMENTATION*
Expand Down
4 changes: 3 additions & 1 deletion arch/arm/mach-ep93xx/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#
# Makefile for the linux kernel.
#
obj-y := core.o clock.o dma-m2p.o gpio.o
obj-y := core.o clock.o gpio.o
obj-m :=
obj-n :=
obj- :=

obj-$(CONFIG_EP93XX_DMA) += dma.o

obj-$(CONFIG_MACH_ADSSPHERE) += adssphere.o
obj-$(CONFIG_MACH_EDB93XX) += edb93xx.o
obj-$(CONFIG_MACH_GESBC9312) += gesbc9312.o
Expand Down
6 changes: 5 additions & 1 deletion arch/arm/mach-ep93xx/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,11 +488,15 @@ static struct resource ep93xx_spi_resources[] = {
},
};

static u64 ep93xx_spi_dma_mask = DMA_BIT_MASK(32);

static struct platform_device ep93xx_spi_device = {
.name = "ep93xx-spi",
.id = 0,
.dev = {
.platform_data = &ep93xx_spi_master_data,
.platform_data = &ep93xx_spi_master_data,
.coherent_dma_mask = DMA_BIT_MASK(32),
.dma_mask = &ep93xx_spi_dma_mask,
},
.num_resources = ARRAY_SIZE(ep93xx_spi_resources),
.resource = ep93xx_spi_resources,
Expand Down
Loading

0 comments on commit e4c8308

Please sign in to comment.