Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256744
b: refs/heads/master
c: 626a96d
h: refs/heads/master
v: v3
  • Loading branch information
Mika Westerberg authored and Grant Likely committed Jun 8, 2011
1 parent e421030 commit 322db54
Show file tree
Hide file tree
Showing 5 changed files with 309 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 71cebd700257a4f644066631bf02187d8f67817e
refs/heads/master: 626a96db11698119a67eeda130488e869aa6f14e
10 changes: 10 additions & 0 deletions trunk/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
6 changes: 5 additions & 1 deletion trunk/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
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-ep93xx/include/mach/ep93xx_spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ struct spi_device;
* struct ep93xx_spi_info - EP93xx specific SPI descriptor
* @num_chipselect: number of chip selects on this board, must be
* at least one
* @use_dma: use DMA for the transfers
*/
struct ep93xx_spi_info {
int num_chipselect;
bool use_dma;
};

/**
Expand Down
Loading

0 comments on commit 322db54

Please sign in to comment.