diff options
author | Jens Kuske <jenskuske@gmail.com> | 2015-05-06 11:31:31 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-05-08 14:55:31 +0530 |
commit | f008db8c00c18d3125ca551e6961e7bd9aba6503 (patch) | |
tree | 8cbb1bee9a349031acc858e25860997a806510d4 /drivers/dma | |
parent | 385f83f85cd9428db82cae5e6f6f786be113b24c (diff) | |
download | blackbird-obmc-linux-f008db8c00c18d3125ca551e6961e7bd9aba6503.tar.gz blackbird-obmc-linux-f008db8c00c18d3125ca551e6961e7bd9aba6503.zip |
dmaengine: sun6i: Add support for Allwinner H3 (sun8i) variant
The H3 SoC has the same dma engine as the A31 (sun6i), with a
reduced amount of endpoints and physical channels. Add the proper
config data and compatible string to support it.
Signed-off-by: Jens Kuske <jenskuske@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/sun6i-dma.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/dma/sun6i-dma.c b/drivers/dma/sun6i-dma.c index 11e536586812..842ff97c2cfb 100644 --- a/drivers/dma/sun6i-dma.c +++ b/drivers/dma/sun6i-dma.c @@ -891,9 +891,21 @@ static struct sun6i_dma_config sun8i_a23_dma_cfg = { .nr_max_vchans = 37, }; +/* + * The H3 has 12 physical channels, a maximum DRQ port id of 27, + * and a total of 34 usable source and destination endpoints. + */ + +static struct sun6i_dma_config sun8i_h3_dma_cfg = { + .nr_max_channels = 12, + .nr_max_requests = 27, + .nr_max_vchans = 34, +}; + 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-h3-dma", .data = &sun8i_h3_dma_cfg }, { /* sentinel */ } }; |