Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <cosmin-gabriel.tanislav.xa@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260105114445.878262-5-cosmin-gabriel.tanislav.xa@renesas.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Cosmin Tanislav and committed by
Vinod Koul
c03d8b54 40dd470a

+7
+7
drivers/dma/sh/rz-dmac.c
··· 15 15 #include <linux/interrupt.h> 16 16 #include <linux/iopoll.h> 17 17 #include <linux/irqchip/irq-renesas-rzv2h.h> 18 + #include <linux/irqchip/irq-renesas-rzt2h.h> 18 19 #include <linux/list.h> 19 20 #include <linux/module.h> 20 21 #include <linux/of.h> ··· 1073 1072 .default_dma_req_no = RZV2H_ICU_DMAC_REQ_NO_DEFAULT, 1074 1073 }; 1075 1074 1075 + static const struct rz_dmac_info rz_dmac_t2h_info = { 1076 + .icu_register_dma_req = rzt2h_icu_register_dma_req, 1077 + .default_dma_req_no = RZT2H_ICU_DMAC_REQ_NO_DEFAULT, 1078 + }; 1079 + 1076 1080 static const struct rz_dmac_info rz_dmac_generic_info = { 1077 1081 .default_dma_req_no = 0, 1078 1082 }; 1079 1083 1080 1084 static const struct of_device_id of_rz_dmac_match[] = { 1081 1085 { .compatible = "renesas,r9a09g057-dmac", .data = &rz_dmac_v2h_info }, 1086 + { .compatible = "renesas,r9a09g077-dmac", .data = &rz_dmac_t2h_info }, 1082 1087 { .compatible = "renesas,rz-dmac", .data = &rz_dmac_generic_info }, 1083 1088 { /* Sentinel */ } 1084 1089 };