Permalink
Browse files

dmaengine: sun6i: Add support for A64 (sun50i) variant

The Allwinner A64 SoC has the same dma engine as the A31 (sun6i)
but with a reduced amount of endpoints and physical channels.

Signed-off-by: Marcus Cooper <codekipper@gmail.com>
  • Loading branch information...
codekipper committed Dec 8, 2016
1 parent ff0770a commit 8c54d9852dfad6ceb478c579a1213f38fb12fa80
Showing with 13 additions and 0 deletions.
  1. +1 −0 Documentation/devicetree/bindings/dma/sun6i-dma.txt
  2. +12 −0 drivers/dma/sun6i-dma.c
@@ -9,6 +9,7 @@ Required properties:
"allwinner,sun8i-a23-dma"
"allwinner,sun8i-a83t-dma"
"allwinner,sun8i-h3-dma"
"allwinner,sun50i-a64-dma"
- reg: Should contain the registers base address and length
- interrupts: Should contain a reference to the interrupt used by this device
- clocks: Should contain a reference to the parent AHB clock
View
@@ -1028,11 +1028,23 @@ static struct sun6i_dma_config sun8i_h3_dma_cfg = {
.nr_max_vchans = 34,
};
/*
* The A64 has 8 physical channels, a maximum DRQ port id of 27,
* and a total of 38 usable source and destination endpoints.
*/
static struct sun6i_dma_config sun50i_a64_dma_cfg = {
.nr_max_channels = 8,
.nr_max_requests = 27,
.nr_max_vchans = 38,
};
static const struct of_device_id sun6i_dma_match[] = {
{ .compatible = "allwinner,sun6i-a31-dma", .data = &sun6i_a31_dma_cfg },
{ .compatible = "allwinner,sun8i-a23-dma", .data = &sun8i_a23_dma_cfg },
{ .compatible = "allwinner,sun8i-a83t-dma", .data = &sun8i_a83t_dma_cfg },
{ .compatible = "allwinner,sun8i-h3-dma", .data = &sun8i_h3_dma_cfg },
{ .compatible = "allwinner,sun50i-a64-dma", .data = &sun50i_a64_dma_cfg },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, sun6i_dma_match);

0 comments on commit 8c54d98

Please sign in to comment.