Skip to content

Commit 3ad4dcb

Browse files
zearglaubitz
authored andcommitted
sh: dma: Correct the number of DMA channels for SH7709
According to the hardware manual [1], the DMAC found in the SH7709 SoC features only 4 channels. While at it, also sort the existing targets. [1] https://www.renesas.com/us/en/document/mah/sh7709s-group-hardware-manual (p. 373) Signed-off-by: Artur Rojek <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Reviewed-by: John Paul Adrian Glaubitz <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: John Paul Adrian Glaubitz <[email protected]>
1 parent d2f4a19 commit 3ad4dcb

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

arch/sh/drivers/dma/Kconfig

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,19 @@ config SH_DMA_API
2828
config NR_ONCHIP_DMA_CHANNELS
2929
int
3030
depends on SH_DMA
31-
default "4" if CPU_SUBTYPE_SH7750 || CPU_SUBTYPE_SH7751 || \
32-
CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7091
31+
default "4" if CPU_SUBTYPE_SH7709 || CPU_SUBTYPE_SH7750 || \
32+
CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7751 || \
33+
CPU_SUBTYPE_SH7091
3334
default "8" if CPU_SUBTYPE_SH7750R || CPU_SUBTYPE_SH7751R || \
3435
CPU_SUBTYPE_SH7760
35-
default "12" if CPU_SUBTYPE_SH7723 || CPU_SUBTYPE_SH7780 || \
36-
CPU_SUBTYPE_SH7785 || CPU_SUBTYPE_SH7724
36+
default "12" if CPU_SUBTYPE_SH7723 || CPU_SUBTYPE_SH7724 || \
37+
CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785
3738
default "6"
3839
help
3940
This allows you to specify the number of channels that the on-chip
40-
DMAC supports. This will be 4 for SH7750/SH7751/Sh7750S/SH7091 and 8 for the
41-
SH7750R/SH7751R/SH7760, 12 for the SH7723/SH7780/SH7785/SH7724, default is 6.
41+
DMAC supports. This will be 4 for SH7709/SH7750/SH7750S/SH7751/SH7091,
42+
8 for SH7750R/SH7751R/SH7760, and 12 for SH7723/SH7724/SH7780/SH7785.
43+
Default is 6.
4244

4345
config SH_DMABRG
4446
bool "SH7760 DMABRG support"

0 commit comments

Comments
 (0)