blob: b91fa8dbf047b374cf31e6d3878067d3941df635 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001menu "DMA support"
2
Manuel Laussfc467a22007-05-09 17:36:15 +09003config SH_DMA_API
4 bool
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
Manuel Laussfc467a22007-05-09 17:36:15 +09006config SH_DMA
7 bool "SuperH on-chip DMA controller (DMAC) support"
Paul Mundt3e767832007-07-20 14:23:04 +09008 depends on CPU_SH3 || CPU_SH4
Manuel Laussfc467a22007-05-09 17:36:15 +09009 select SH_DMA_API
10 default n
Linus Torvalds1da177e2005-04-16 15:20:36 -070011
Nobuhiro Iwamatsu988f8312009-03-16 03:22:07 +000012config SH_DMA_IRQ_MULTI
13 bool
14 depends on SH_DMA
Paul Mundta27873c2009-04-04 11:40:22 -040015 default y if CPU_SUBTYPE_SH7750 || CPU_SUBTYPE_SH7751 || \
16 CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7750R || \
17 CPU_SUBTYPE_SH7751R || CPU_SUBTYPE_SH7091 || \
18 CPU_SUBTYPE_SH7763 || CPU_SUBTYPE_SH7764 || \
Magnus Damm3d6ad462009-05-11 09:01:08 +000019 CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785 || \
20 CPU_SUBTYPE_SH7760
Nobuhiro Iwamatsu988f8312009-03-16 03:22:07 +000021
Linus Torvalds1da177e2005-04-16 15:20:36 -070022config NR_ONCHIP_DMA_CHANNELS
Paul Mundtfc100202007-07-20 14:24:57 +090023 int
Linus Torvalds1da177e2005-04-16 15:20:36 -070024 depends on SH_DMA
Paul Mundta27873c2009-04-04 11:40:22 -040025 default "4" if CPU_SUBTYPE_SH7750 || CPU_SUBTYPE_SH7751 || \
26 CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7091
27 default "8" if CPU_SUBTYPE_SH7750R || CPU_SUBTYPE_SH7751R || \
28 CPU_SUBTYPE_SH7760
29 default "12" if CPU_SUBTYPE_SH7723 || CPU_SUBTYPE_SH7780 || \
Kuninori Morimoto24d76192009-08-19 10:24:15 +000030 CPU_SUBTYPE_SH7785 || CPU_SUBTYPE_SH7724
Nobuhiro Iwamatsu71b973a2009-03-10 17:26:49 +090031 default "6"
Linus Torvalds1da177e2005-04-16 15:20:36 -070032 help
33 This allows you to specify the number of channels that the on-chip
Kuninori Morimoto24d76192009-08-19 10:24:15 +000034 DMAC supports. This will be 4 for SH7750/SH7751/Sh7750S/SH7091 and 8 for the
35 SH7750R/SH7751R/SH7760, 12 for the SH7723/SH7780/SH7785/SH7724, default is 6.
Linus Torvalds1da177e2005-04-16 15:20:36 -070036
37config NR_DMA_CHANNELS_BOOL
38 depends on SH_DMA
39 bool "Override default number of maximum DMA channels"
40 help
41 This allows you to forcibly update the maximum number of supported
42 DMA channels for a given board. If this is unset, this will default
43 to the number of channels that the on-chip DMAC has.
44
45config NR_DMA_CHANNELS
46 int "Maximum number of DMA channels"
47 depends on SH_DMA && NR_DMA_CHANNELS_BOOL
48 default NR_ONCHIP_DMA_CHANNELS
49 help
50 This allows you to specify the maximum number of DMA channels to
51 support. Setting this to a higher value allows for cascading DMACs
52 with additional channels.
53
Manuel Laussfc467a22007-05-09 17:36:15 +090054config SH_DMABRG
55 bool "SH7760 DMABRG support"
56 depends on CPU_SUBTYPE_SH7760
57 help
58 The DMABRG does data transfers from main memory to Audio/USB units
59 of the SH7760.
60 Say Y if you want to use Audio/USB DMA on your SH7760 board.
61
Paul Mundtda62e712009-03-17 09:30:36 +090062config PVR2_DMA
63 tristate "PowerVR 2 DMAC support"
64 depends on SH_DREAMCAST && SH_DMA
65 help
66 Selecting this will enable support for the PVR2 DMA controller.
67 As this chains off of the on-chip DMAC, that must also be
68 enabled by default.
69
70 This is primarily used by the pvr2fb framebuffer driver for
71 certain optimizations, but is not necessary for functionality.
72
73 If in doubt, say N.
74
Paul Mundt40f49e72009-03-17 12:47:56 +090075config G2_DMA
76 tristate "G2 Bus DMA support"
77 depends on SH_DREAMCAST
78 select SH_DMA_API
79 help
80 This enables support for the DMA controller for the Dreamcast's
81 G2 bus. Drivers that want this will generally enable this on
82 their own.
83
84 If in doubt, say N.
85
Linus Torvalds1da177e2005-04-16 15:20:36 -070086endmenu