]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dma-engine: sun4i: Add a quirk to support different chips
authorMesih Kilinc <mesihkilinc@gmail.com>
Fri, 22 Nov 2024 16:11:25 +0000 (17:11 +0100)
committerVinod Koul <vkoul@kernel.org>
Wed, 11 Dec 2024 12:04:52 +0000 (17:34 +0530)
commita2186c2cd3a700df0467d2c3b23fab4e50dde373
treefe8895b0fcc298a8a197357cdeb9b76f406ca600
parent23417899110410f2fc1bf7dd8df381312d60c933
dma-engine: sun4i: Add a quirk to support different chips

Allwinner suniv F1C100s has similar DMA engine to sun4i. Several
registers has different addresses. Total dma channels, endpoint counts
and max burst counts are also different.

In order to support F1C100s add a quirk structure to hold IC specific
data.

Signed-off-by: Mesih Kilinc <mesihkilinc@gmail.com>
[ csokas.bence: Resolve conflict in `sun4i_dma_prep_dma_cyclic()`, fix whitespace ]
Signed-off-by: Csókás Bence <csokas.bence@prolan.hu>
Link: https://lore.kernel.org/r/20241122161128.2619172-2-csokas.bence@prolan.hu
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sun4i-dma.c