]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-sh/cpu-sh3/dma.h
sh: sh7712 clock support
[linux-2.6-omap-h63xx.git] / include / asm-sh / cpu-sh3 / dma.h
index 954801b46022ec5fe5bdae0389be708f7d7db5fc..092ff9d872c3e6cf352236e82e32466c116defb6 100644 (file)
@@ -1,7 +1,22 @@
 #ifndef __ASM_CPU_SH3_DMA_H
 #define __ASM_CPU_SH3_DMA_H
 
+
+#if defined(CONFIG_CPU_SUBTYPE_SH7720) || \
+    defined(CONFIG_CPU_SUBTYPE_SH7721) || \
+    defined(CONFIG_CPU_SUBTYPE_SH7709)
+#define SH_DMAC_BASE   0xa4010020
+
+#define DMTE0_IRQ      48
+#define DMTE1_IRQ      49
+#define DMTE2_IRQ      50
+#define DMTE3_IRQ      51
+#define DMTE4_IRQ      76
+#define DMTE5_IRQ      77
+
+#else
 #define SH_DMAC_BASE   0xa4000020
+#endif
 
 /* Definitions for the SuperH DMAC */
 #define TM_BURST       0x00000020
@@ -26,7 +41,7 @@ enum {
        XMIT_SZ_128BIT,
 };
 
-static unsigned int ts_shift[] __attribute__ ((used)) = {
+static unsigned int ts_shift[] __maybe_unused = {
        [XMIT_SZ_8BIT]          = 0,
        [XMIT_SZ_16BIT]         = 1,
        [XMIT_SZ_32BIT]         = 2,