diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2015-09-28 11:57:07 -0400 |
|---|---|---|
| committer | Vinod Koul <vinod.koul@intel.com> | 2015-09-30 04:13:09 -0400 |
| commit | 49dfebebfb6811693a9e883423585f079b5941fa (patch) | |
| tree | 9befca6926addf624550fa6ab493ba9d30c7d249 | |
| parent | 6dbd80a919db24f5a1c66460838bb10ebe188d21 (diff) | |
avr32: use dw_dmac autoconfiguration
Instead of hardcoding a platform data for dw_dmac let's use it's own
autoconfiguration feature. Thus, remove hardcoded values.
Tested on ATNGW100.
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
| -rw-r--r-- | arch/avr32/mach-at32ap/at32ap700x.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c index 1d8b147282cf..b4cb3bd89d8a 100644 --- a/arch/avr32/mach-at32ap/at32ap700x.c +++ b/arch/avr32/mach-at32ap/at32ap700x.c | |||
| @@ -603,18 +603,11 @@ static void __init genclk_init_parent(struct clk *clk) | |||
| 603 | clk->parent = parent; | 603 | clk->parent = parent; |
| 604 | } | 604 | } |
| 605 | 605 | ||
| 606 | static struct dw_dma_platform_data dw_dmac0_data = { | ||
| 607 | .nr_channels = 3, | ||
| 608 | .block_size = 4095U, | ||
| 609 | .nr_masters = 2, | ||
| 610 | .data_width = { 2, 2 }, | ||
| 611 | }; | ||
| 612 | |||
| 613 | static struct resource dw_dmac0_resource[] = { | 606 | static struct resource dw_dmac0_resource[] = { |
| 614 | PBMEM(0xff200000), | 607 | PBMEM(0xff200000), |
| 615 | IRQ(2), | 608 | IRQ(2), |
| 616 | }; | 609 | }; |
| 617 | DEFINE_DEV_DATA(dw_dmac, 0); | 610 | DEFINE_DEV(dw_dmac, 0); |
| 618 | DEV_CLK(hclk, dw_dmac0, hsb, 10); | 611 | DEV_CLK(hclk, dw_dmac0, hsb, 10); |
| 619 | 612 | ||
| 620 | /* -------------------------------------------------------------------- | 613 | /* -------------------------------------------------------------------- |
