Skip to content

Commit 8292a15

Browse files
smaeulvinodkoul
authored andcommitted
dmaengine: sun6i: Add support for the D1 variant
So far it appears to match the configuration of the A100 variant. Since D1 is a RISC-V chip, it does not meet any of the existing dependencies for this driver, so relax the dependency somewhat. Acked-by: Maxime Ripard <maxime@cerno.tech> Signed-off-by: Samuel Holland <samuel@sholland.org> Link: https://lore.kernel.org/r/20220424172759.33383-5-samuel@sholland.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent ec31c5c commit 8292a15

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/dma/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ config DMA_SUN4I
163163

164164
config DMA_SUN6I
165165
tristate "Allwinner A31 SoCs DMA support"
166-
depends on MACH_SUN6I || MACH_SUN8I || (ARM64 && ARCH_SUNXI) || COMPILE_TEST
166+
depends on ARCH_SUNXI || COMPILE_TEST
167167
depends on RESET_CONTROLLER
168168
select DMA_ENGINE
169169
select DMA_VIRTUAL_CHANNELS

drivers/dma/sun6i-dma.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,6 +1271,7 @@ static const struct of_device_id sun6i_dma_match[] = {
12711271
{ .compatible = "allwinner,sun8i-a83t-dma", .data = &sun8i_a83t_dma_cfg },
12721272
{ .compatible = "allwinner,sun8i-h3-dma", .data = &sun8i_h3_dma_cfg },
12731273
{ .compatible = "allwinner,sun8i-v3s-dma", .data = &sun8i_v3s_dma_cfg },
1274+
{ .compatible = "allwinner,sun20i-d1-dma", .data = &sun50i_a100_dma_cfg },
12741275
{ .compatible = "allwinner,sun50i-a64-dma", .data = &sun50i_a64_dma_cfg },
12751276
{ .compatible = "allwinner,sun50i-a100-dma", .data = &sun50i_a100_dma_cfg },
12761277
{ .compatible = "allwinner,sun50i-h6-dma", .data = &sun50i_h6_dma_cfg },

0 commit comments

Comments
 (0)