From: Cosmin Tanislav Date: Mon, 5 Jan 2026 11:44:45 +0000 (+0200) Subject: dmaengine: sh: rz_dmac: add RZ/{T2H,N2H} support X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c03d8b5462bcb0022f9477d09eb37dae66c3a769;p=thirdparty%2Fkernel%2Flinux.git dmaengine: sh: rz_dmac: add RZ/{T2H,N2H} support The Renesas RZ/T2H (R9A09G077) and RZ/N2H (R9A09G087) SoCs use a completely different ICU unit compared to RZ/V2H, which requires a separate implementation. Add support for them. RZ/N2H will use RZ/T2H as a fallback. Signed-off-by: Cosmin Tanislav Reviewed-by: Geert Uytterhoeven Link: https://patch.msgid.link/20260105114445.878262-5-cosmin-gabriel.tanislav.xa@renesas.com Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/sh/rz-dmac.c b/drivers/dma/sh/rz-dmac.c index c6018e03a08c9..c75e9202e2394 100644 --- a/drivers/dma/sh/rz-dmac.c +++ b/drivers/dma/sh/rz-dmac.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -1072,12 +1073,18 @@ static const struct rz_dmac_info rz_dmac_v2h_info = { .default_dma_req_no = RZV2H_ICU_DMAC_REQ_NO_DEFAULT, }; +static const struct rz_dmac_info rz_dmac_t2h_info = { + .icu_register_dma_req = rzt2h_icu_register_dma_req, + .default_dma_req_no = RZT2H_ICU_DMAC_REQ_NO_DEFAULT, +}; + static const struct rz_dmac_info rz_dmac_generic_info = { .default_dma_req_no = 0, }; static const struct of_device_id of_rz_dmac_match[] = { { .compatible = "renesas,r9a09g057-dmac", .data = &rz_dmac_v2h_info }, + { .compatible = "renesas,r9a09g077-dmac", .data = &rz_dmac_t2h_info }, { .compatible = "renesas,rz-dmac", .data = &rz_dmac_generic_info }, { /* Sentinel */ } };