Skip to content

Commit

Permalink
Merge branch 'topic/sa11x0' into for-linus
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinod Koul committed Nov 14, 2017
2 parents b683fa2 + 73d2a3c commit 2c85285
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions drivers/dma/sa11x0-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,13 @@ static const struct sa11x0_dma_channel_desc chan_desc[] = {
CD(Ser4SSPRc, DDAR_RW),
};

static const struct dma_slave_map sa11x0_dma_map[] = {
{ "sa11x0-ir", "tx", "Ser2ICPTr" },
{ "sa11x0-ir", "rx", "Ser2ICPRc" },
{ "sa11x0-ssp", "tx", "Ser4SSPTr" },
{ "sa11x0-ssp", "rx", "Ser4SSPRc" },
};

static int sa11x0_dma_init_dmadev(struct dma_device *dmadev,
struct device *dev)
{
Expand Down Expand Up @@ -909,6 +916,10 @@ static int sa11x0_dma_probe(struct platform_device *pdev)
spin_lock_init(&d->lock);
INIT_LIST_HEAD(&d->chan_pending);

d->slave.filter.fn = sa11x0_dma_filter_fn;
d->slave.filter.mapcnt = ARRAY_SIZE(sa11x0_dma_map);
d->slave.filter.map = sa11x0_dma_map;

d->base = ioremap(res->start, resource_size(res));
if (!d->base) {
ret = -ENOMEM;
Expand Down

0 comments on commit 2c85285

Please sign in to comment.