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

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 <contact@artur-rojek.eu>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Link: https://lore.kernel.org/r/20230527164452.64797-4-contact@artur-rojek.eu
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>

authored by

Artur Rojek and committed by
John Paul Adrian Glaubitz
3ad4dcbc d2f4a190

+8 -6
+8 -6
arch/sh/drivers/dma/Kconfig
··· 28 28 config NR_ONCHIP_DMA_CHANNELS 29 29 int 30 30 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 33 34 default "8" if CPU_SUBTYPE_SH7750R || CPU_SUBTYPE_SH7751R || \ 34 35 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 37 38 default "6" 38 39 help 39 40 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. 42 44 43 45 config SH_DMABRG 44 46 bool "SH7760 DMABRG support"