]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dmaengine: mmp_pdma: Add SpacemiT K1 PDMA support with 64-bit addressing
authorGuodong Xu <guodong@riscstar.com>
Fri, 22 Aug 2025 03:06:31 +0000 (11:06 +0800)
committerVinod Koul <vkoul@kernel.org>
Tue, 2 Sep 2025 07:07:42 +0000 (12:37 +0530)
commit5cfe585d8624f7482505183dd0e4c534b061e822
treed56a2b31f9c5a87f666bd8d291b028603c40fe59
parent35e40bf761fcb24b1355d6a8d48b5b10683fe1a3
dmaengine: mmp_pdma: Add SpacemiT K1 PDMA support with 64-bit addressing

Add support for SpacemiT K1 PDMA controller which features 64-bit
addressing capabilities.

The SpacemiT K1 PDMA extends the descriptor format with additional
32-bit words for high address bits, enabling access to memory beyond
4GB boundaries. The new spacemit_k1_pdma_ops provides necessary 64-bit
address handling functions and k1 specific controller configurations.

Key changes:
- Add ARCH_SPACEMIT dependency to Kconfig
- Define new high 32-bit address registers (DDADRH, DSADRH, DTADRH)
- Add DCSR_LPAEEN bit for Long Physical Address Extension Enable
- Implement 64-bit operations for SpacemiT K1 PDMA

Signed-off-by: Guodong Xu <guodong@riscstar.com>
Link: https://lore.kernel.org/r/20250822-working_dma_0701_v2-v5-5-f5c0eda734cc@riscstar.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/Kconfig
drivers/dma/mmp_pdma.c