diff options
| author | Manuel Lauss <manuel.lauss@googlemail.com> | 2011-08-12 05:39:42 -0400 |
|---|---|---|
| committer | Ralf Baechle <ralf@linux-mips.org> | 2011-10-24 18:34:24 -0400 |
| commit | f2e442fd2ff4ed565835e407114f75c92c9fe443 (patch) | |
| tree | ad9c165e7e6f73d8618e79435ea807592dd1e231 | |
| parent | d4f07ae748539d792162a9aa56f192c3992cb3fb (diff) | |
MIPS: Alchemy: clean DMA code of CONFIG_SOC_AU1??? defines
This patch gets rid of all CONFIG_SOC_AU1XXX defines in
DMA/DBDMA-related code.
Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
To: Linux-MIPS <linux-mips@linux-mips.org>
Patchwork: https://patchwork.linux-mips.org/patch/2704/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| -rw-r--r-- | arch/mips/alchemy/common/dbdma.c | 203 | ||||
| -rw-r--r-- | arch/mips/alchemy/common/dma.c | 60 | ||||
| -rw-r--r-- | arch/mips/alchemy/common/platform.c | 16 | ||||
| -rw-r--r-- | arch/mips/alchemy/devboards/db1200/platform.c | 20 | ||||
| -rw-r--r-- | arch/mips/alchemy/devboards/pb1200/platform.c | 4 | ||||
| -rw-r--r-- | arch/mips/include/asm/mach-au1x00/au1xxx_dbdma.h | 116 | ||||
| -rw-r--r-- | arch/mips/include/asm/mach-db1x00/db1x00.h | 8 | ||||
| -rw-r--r-- | arch/mips/include/asm/mach-pb1x00/pb1200.h | 8 | ||||
| -rw-r--r-- | arch/mips/include/asm/mach-pb1x00/pb1550.h | 8 |
9 files changed, 207 insertions, 236 deletions
diff --git a/arch/mips/alchemy/common/dbdma.c b/arch/mips/alchemy/common/dbdma.c index 3a5abb54d505..0e63ee487d6d 100644 --- a/arch/mips/alchemy/common/dbdma.c +++ b/arch/mips/alchemy/common/dbdma.c | |||
| @@ -40,8 +40,6 @@ | |||
| 40 | #include <asm/mach-au1x00/au1000.h> | 40 | #include <asm/mach-au1x00/au1000.h> |
| 41 | #include <asm/mach-au1x00/au1xxx_dbdma.h> | 41 | #include <asm/mach-au1x00/au1xxx_dbdma.h> |
| 42 | 42 | ||
| 43 | #if defined(CONFIG_SOC_AU1550) || defined(CONFIG_SOC_AU1200) | ||
| 44 | |||
| 45 | /* | 43 | /* |
| 46 | * The Descriptor Based DMA supports up to 16 channels. | 44 | * The Descriptor Based DMA supports up to 16 channels. |
| 47 | * | 45 | * |
| @@ -62,120 +60,96 @@ static dbdma_global_t *dbdma_gptr = | |||
| 62 | (dbdma_global_t *)KSEG1ADDR(AU1550_DBDMA_CONF_PHYS_ADDR); | 60 | (dbdma_global_t *)KSEG1ADDR(AU1550_DBDMA_CONF_PHYS_ADDR); |
| 63 | static int dbdma_initialized; | 61 | static int dbdma_initialized; |
| 64 | 62 | ||
| 65 | static dbdev_tab_t dbdev_tab[] = { | 63 | static dbdev_tab_t *dbdev_tab; |
| 66 | #ifdef CONFIG_SOC_AU1550 | 64 | |
| 65 | static dbdev_tab_t au1550_dbdev_tab[] __initdata = { | ||
| 67 | /* UARTS */ | 66 | /* UARTS */ |
| 68 | { DSCR_CMD0_UART0_TX, DEV_FLAGS_OUT, 0, 8, 0x11100004, 0, 0 }, | 67 | { AU1550_DSCR_CMD0_UART0_TX, DEV_FLAGS_OUT, 0, 8, 0x11100004, 0, 0 }, |
| 69 | { DSCR_CMD0_UART0_RX, DEV_FLAGS_IN, 0, 8, 0x11100000, 0, 0 }, | 68 | { AU1550_DSCR_CMD0_UART0_RX, DEV_FLAGS_IN, 0, 8, 0x11100000, 0, 0 }, |
| 70 | { DSCR_CMD0_UART3_TX, DEV_FLAGS_OUT, 0, 8, 0x11400004, 0, 0 }, | 69 | { AU1550_DSCR_CMD0_UART3_TX, DEV_FLAGS_OUT, 0, 8, 0x11400004, 0, 0 }, |
| 71 | { DSCR_CMD0_UART3_RX, DEV_FLAGS_IN, 0, 8, 0x11400000, 0, 0 }, | 70 | { AU1550_DSCR_CMD0_UART3_RX, DEV_FLAGS_IN, 0, 8, 0x11400000, 0, 0 }, |
| 72 | 71 | ||
| 73 | /* EXT DMA */ | 72 | /* EXT DMA */ |
| 74 | { DSCR_CMD0_DMA_REQ0, 0, 0, 0, 0x00000000, 0, 0 }, | 73 | { AU1550_DSCR_CMD0_DMA_REQ0, 0, 0, 0, 0x00000000, 0, 0 }, |
| 75 | { DSCR_CMD0_DMA_REQ1, 0, 0, 0, 0x00000000, 0, 0 }, | 74 | { AU1550_DSCR_CMD0_DMA_REQ1, 0, 0, 0, 0x00000000, 0, 0 }, |
| 76 | { DSCR_CMD0_DMA_REQ2, 0, 0, 0, 0x00000000, 0, 0 }, | 75 | { AU1550_DSCR_CMD0_DMA_REQ2, 0, 0, 0, 0x00000000, 0, 0 }, |
| 77 | { DSCR_CMD0_DMA_REQ3, 0, 0, 0, 0x00000000, 0, 0 }, | 76 | { AU1550_DSCR_CMD0_DMA_REQ3, 0, 0, 0, 0x00000000, 0, 0 }, |
| 78 | 77 | ||
| 79 | /* USB DEV */ | 78 | /* USB DEV */ |
| 80 | { DSCR_CMD0_USBDEV_RX0, DEV_FLAGS_IN, 4, 8, 0x10200000, 0, 0 }, | 79 | { AU1550_DSCR_CMD0_USBDEV_RX0, DEV_FLAGS_IN, 4, 8, 0x10200000, 0, 0 }, |
| 81 | { DSCR_CMD0_USBDEV_TX0, DEV_FLAGS_OUT, 4, 8, 0x10200004, 0, 0 }, | 80 | { AU1550_DSCR_CMD0_USBDEV_TX0, DEV_FLAGS_OUT, 4, 8, 0x10200004, 0, 0 }, |
| 82 | { DSCR_CMD0_USBDEV_TX1, DEV_FLAGS_OUT, 4, 8, 0x10200008, 0, 0 }, | 81 | { AU1550_DSCR_CMD0_USBDEV_TX1, DEV_FLAGS_OUT, 4, 8, 0x10200008, 0, 0 }, |
| 83 | { DSCR_CMD0_USBDEV_TX2, DEV_FLAGS_OUT, 4, 8, 0x1020000c, 0, 0 }, | 82 | { AU1550_DSCR_CMD0_USBDEV_TX2, DEV_FLAGS_OUT, 4, 8, 0x1020000c, 0, 0 }, |
| 84 | { DSCR_CMD0_USBDEV_RX3, DEV_FLAGS_IN, 4, 8, 0x10200010, 0, 0 }, | 83 | { AU1550_DSCR_CMD0_USBDEV_RX3, DEV_FLAGS_IN, 4, 8, 0x10200010, 0, 0 }, |
| 85 | { DSCR_CMD0_USBDEV_RX4, DEV_FLAGS_IN, 4, 8, 0x10200014, 0, 0 }, | 84 | { AU1550_DSCR_CMD0_USBDEV_RX4, DEV_FLAGS_IN, 4, 8, 0x10200014, 0, 0 }, |
| 86 | 85 | ||
| 87 | /* PSC 0 */ | 86 | /* PSCs */ |
| 88 | { DSCR_CMD0_PSC0_TX, DEV_FLAGS_OUT, 0, 0, 0x11a0001c, 0, 0 }, | 87 | { AU1550_DSCR_CMD0_PSC0_TX, DEV_FLAGS_OUT, 0, 0, 0x11a0001c, 0, 0 }, |
| 89 | { DSCR_CMD0_PSC0_RX, DEV_FLAGS_IN, 0, 0, 0x11a0001c, 0, 0 }, | 88 | { AU1550_DSCR_CMD0_PSC0_RX, DEV_FLAGS_IN, 0, 0, 0x11a0001c, 0, 0 }, |
| 90 | 89 | { AU1550_DSCR_CMD0_PSC1_TX, DEV_FLAGS_OUT, 0, 0, 0x11b0001c, 0, 0 }, | |
| 91 | /* PSC 1 */ | 90 | { AU1550_DSCR_CMD0_PSC1_RX, DEV_FLAGS_IN, 0, 0, 0x11b0001c, 0, 0 }, |
| 92 | { DSCR_CMD0_PSC1_TX, DEV_FLAGS_OUT, 0, 0, 0x11b0001c, 0, 0 }, | 91 | { AU1550_DSCR_CMD0_PSC2_TX, DEV_FLAGS_OUT, 0, 0, 0x10a0001c, 0, 0 }, |
| 93 | { DSCR_CMD0_PSC1_RX, DEV_FLAGS_IN, 0, 0, 0x11b0001c, 0, 0 }, | 92 | { AU1550_DSCR_CMD0_PSC2_RX, DEV_FLAGS_IN, 0, 0, 0x10a0001c, 0, 0 }, |
| 94 | 93 | { AU1550_DSCR_CMD0_PSC3_TX, DEV_FLAGS_OUT, 0, 0, 0x10b0001c, 0, 0 }, | |
| 95 | /* PSC 2 */ | 94 | { AU1550_DSCR_CMD0_PSC3_RX, DEV_FLAGS_IN, 0, 0, 0x10b0001c, 0, 0 }, |
| 96 | { DSCR_CMD0_PSC2_TX, DEV_FLAGS_OUT, 0, 0, 0x10a0001c, 0, 0 }, | 95 | |
| 97 | { DSCR_CMD0_PSC2_RX, DEV_FLAGS_IN, 0, 0, 0x10a0001c, 0, 0 }, | 96 | { AU1550_DSCR_CMD0_PCI_WRITE, 0, 0, 0, 0x00000000, 0, 0 }, /* PCI */ |
| 98 | 97 | { AU1550_DSCR_CMD0_NAND_FLASH, 0, 0, 0, 0x00000000, 0, 0 }, /* NAND */ | |
| 99 | /* PSC 3 */ | ||
| 100 | { DSCR_CMD0_PSC3_TX, DEV_FLAGS_OUT, 0, 0, 0x10b0001c, 0, 0 }, | ||
| 101 | { DSCR_CMD0_PSC3_RX, DEV_FLAGS_IN, 0, 0, 0x10b0001c, 0, 0 }, | ||
| 102 | |||
| 103 | { DSCR_CMD0_PCI_WRITE, 0, 0, 0, 0x00000000, 0, 0 }, /* PCI */ | ||
| 104 | { DSCR_CMD0_NAND_FLASH, 0, 0, 0, 0x00000000, 0, 0 }, /* NAND */ | ||
| 105 | 98 | ||
| 106 | /* MAC 0 */ | 99 | /* MAC 0 */ |
| 107 | { DSCR_CMD0_MAC0_RX, DEV_FLAGS_IN, 0, 0, 0x00000000, 0, 0 }, | 100 | { AU1550_DSCR_CMD0_MAC0_RX, DEV_FLAGS_IN, 0, 0, 0x00000000, 0, 0 }, |
| 108 | { DSCR_CMD0_MAC0_TX, DEV_FLAGS_OUT, 0, 0, 0x00000000, 0, 0 }, | 101 | { AU1550_DSCR_CMD0_MAC0_TX, DEV_FLAGS_OUT, 0, 0, 0x00000000, 0, 0 }, |
| 109 | 102 | ||
| 110 | /* MAC 1 */ | 103 | /* MAC 1 */ |
| 111 | { DSCR_CMD0_MAC1_RX, DEV_FLAGS_IN, 0, 0, 0x00000000, 0, 0 }, | 104 | { AU1550_DSCR_CMD0_MAC1_RX, DEV_FLAGS_IN, 0, 0, 0x00000000, 0, 0 }, |
| 112 | { DSCR_CMD0_MAC1_TX, DEV_FLAGS_OUT, 0, 0, 0x00000000, 0, 0 }, | 105 | { AU1550_DSCR_CMD0_MAC1_TX, DEV_FLAGS_OUT, 0, 0, 0x00000000, 0, 0 }, |
| 113 | |||
| 114 | #endif /* CONFIG_SOC_AU1550 */ | ||
| 115 | 106 | ||
| 116 | #ifdef CONFIG_SOC_AU1200 | 107 | { DSCR_CMD0_THROTTLE, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, |
| 117 | { DSCR_CMD0_UART0_TX, DEV_FLAGS_OUT, 0, 8, 0x11100004, 0, 0 }, | 108 | { DSCR_CMD0_ALWAYS, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, |
| 118 | { DSCR_CMD0_UART0_RX, DEV_FLAGS_IN, 0, 8, 0x11100000, 0, 0 }, | 109 | }; |
| 119 | { DSCR_CMD0_UART1_TX, DEV_FLAGS_OUT, 0, 8, 0x11200004, 0, 0 }, | ||
| 120 | { DSCR_CMD0_UART1_RX, DEV_FLAGS_IN, 0, 8, 0x11200000, 0, 0 }, | ||
| 121 | |||
| 122 | { DSCR_CMD0_DMA_REQ0, 0, 0, 0, 0x00000000, 0, 0 }, | ||
| 123 | { DSCR_CMD0_DMA_REQ1, 0, 0, 0, 0x00000000, 0, 0 }, | ||
| 124 | 110 | ||
| 125 | { DSCR_CMD0_MAE_BE, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, | 111 | static dbdev_tab_t au1200_dbdev_tab[] __initdata = { |
| 126 | { DSCR_CMD0_MAE_FE, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, | 112 | { AU1200_DSCR_CMD0_UART0_TX, DEV_FLAGS_OUT, 0, 8, 0x11100004, 0, 0 }, |
| 127 | { DSCR_CMD0_MAE_BOTH, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, | 113 | { AU1200_DSCR_CMD0_UART0_RX, DEV_FLAGS_IN, 0, 8, 0x11100000, 0, 0 }, |
| 128 | { DSCR_CMD0_LCD, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, | 114 | { AU1200_DSCR_CMD0_UART1_TX, DEV_FLAGS_OUT, 0, 8, 0x11200004, 0, 0 }, |
| 115 | { AU1200_DSCR_CMD0_UART1_RX, DEV_FLAGS_IN, 0, 8, 0x11200000, 0, 0 }, | ||
| 129 | 116 | ||
| 130 | { DSCR_CMD0_SDMS_TX0, DEV_FLAGS_OUT, 4, 8, 0x10600000, 0, 0 }, | 117 | { AU1200_DSCR_CMD0_DMA_REQ0, 0, 0, 0, 0x00000000, 0, 0 }, |
| 131 | { DSCR_CMD0_SDMS_RX0, DEV_FLAGS_IN, 4, 8, 0x10600004, 0, 0 }, | 118 | { AU1200_DSCR_CMD0_DMA_REQ1, 0, 0, 0, 0x00000000, 0, 0 }, |
| 132 | { DSCR_CMD0_SDMS_TX1, DEV_FLAGS_OUT, 4, 8, 0x10680000, 0, 0 }, | ||
| 133 | { DSCR_CMD0_SDMS_RX1, DEV_FLAGS_IN, 4, 8, 0x10680004, 0, 0 }, | ||
| 134 | 119 | ||
| 135 | { DSCR_CMD0_AES_RX, DEV_FLAGS_IN , 4, 32, 0x10300008, 0, 0 }, | 120 | { AU1200_DSCR_CMD0_MAE_BE, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, |
| 136 | { DSCR_CMD0_AES_TX, DEV_FLAGS_OUT, 4, 32, 0x10300004, 0, 0 }, | 121 | { AU1200_DSCR_CMD0_MAE_FE, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, |
| 122 | { AU1200_DSCR_CMD0_MAE_BOTH, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, | ||
| 123 | { AU1200_DSCR_CMD0_LCD, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, | ||
| 137 | 124 | ||
| 138 | { DSCR_CMD0_PSC0_TX, DEV_FLAGS_OUT, 0, 16, 0x11a0001c, 0, 0 }, | 125 | { AU1200_DSCR_CMD0_SDMS_TX0, DEV_FLAGS_OUT, 4, 8, 0x10600000, 0, 0 }, |
| 139 | { DSCR_CMD0_PSC0_RX, DEV_FLAGS_IN, 0, 16, 0x11a0001c, 0, 0 }, | 126 | { AU1200_DSCR_CMD0_SDMS_RX0, DEV_FLAGS_IN, 4, 8, 0x10600004, 0, 0 }, |
| 140 | { DSCR_CMD0_PSC0_SYNC, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, | 127 | { AU1200_DSCR_CMD0_SDMS_TX1, DEV_FLAGS_OUT, 4, 8, 0x10680000, 0, 0 }, |
| 128 | { AU1200_DSCR_CMD0_SDMS_RX1, DEV_FLAGS_IN, 4, 8, 0x10680004, 0, 0 }, | ||
| 141 | 129 | ||
| 142 | { DSCR_CMD0_PSC1_TX, DEV_FLAGS_OUT, 0, 16, 0x11b0001c, 0, 0 }, | 130 | { AU1200_DSCR_CMD0_AES_RX, DEV_FLAGS_IN , 4, 32, 0x10300008, 0, 0 }, |
| 143 | { DSCR_CMD0_PSC1_RX, DEV_FLAGS_IN, 0, 16, 0x11b0001c, 0, 0 }, | 131 | { AU1200_DSCR_CMD0_AES_TX, DEV_FLAGS_OUT, 4, 32, 0x10300004, 0, 0 }, |
| 144 | { DSCR_CMD0_PSC1_SYNC, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, | ||
| 145 | 132 | ||
| 146 | { DSCR_CMD0_CIM_RXA, DEV_FLAGS_IN, 0, 32, 0x14004020, 0, 0 }, | 133 | { AU1200_DSCR_CMD0_PSC0_TX, DEV_FLAGS_OUT, 0, 16, 0x11a0001c, 0, 0 }, |
| 147 | { DSCR_CMD0_CIM_RXB, DEV_FLAGS_IN, 0, 32, 0x14004040, 0, 0 }, | 134 | { AU1200_DSCR_CMD0_PSC0_RX, DEV_FLAGS_IN, 0, 16, 0x11a0001c, 0, 0 }, |
| 148 | { DSCR_CMD0_CIM_RXC, DEV_FLAGS_IN, 0, 32, 0x14004060, 0, 0 }, | 135 | { AU1200_DSCR_CMD0_PSC0_SYNC, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, |
| 149 | { DSCR_CMD0_CIM_SYNC, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, | 136 | { AU1200_DSCR_CMD0_PSC1_TX, DEV_FLAGS_OUT, 0, 16, 0x11b0001c, 0, 0 }, |
| 137 | { AU1200_DSCR_CMD0_PSC1_RX, DEV_FLAGS_IN, 0, 16, 0x11b0001c, 0, 0 }, | ||
| 138 | { AU1200_DSCR_CMD0_PSC1_SYNC, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, | ||
| 150 | 139 | ||
| 151 | { DSCR_CMD0_NAND_FLASH, DEV_FLAGS_IN, 0, 0, 0x00000000, 0, 0 }, | 140 | { AU1200_DSCR_CMD0_CIM_RXA, DEV_FLAGS_IN, 0, 32, 0x14004020, 0, 0 }, |
| 141 | { AU1200_DSCR_CMD0_CIM_RXB, DEV_FLAGS_IN, 0, 32, 0x14004040, 0, 0 }, | ||
| 142 | { AU1200_DSCR_CMD0_CIM_RXC, DEV_FLAGS_IN, 0, 32, 0x14004060, 0, 0 }, | ||
| 143 | { AU1200_DSCR_CMD0_CIM_SYNC, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, | ||
| 152 | 144 | ||
| 153 | #endif /* CONFIG_SOC_AU1200 */ | 145 | { AU1200_DSCR_CMD0_NAND_FLASH, DEV_FLAGS_IN, 0, 0, 0x00000000, 0, 0 }, |
| 154 | 146 | ||
| 155 | { DSCR_CMD0_THROTTLE, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, | 147 | { DSCR_CMD0_THROTTLE, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, |
| 156 | { DSCR_CMD0_ALWAYS, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, | 148 | { DSCR_CMD0_ALWAYS, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 }, |
| 157 | |||
| 158 | /* Provide 16 user definable device types */ | ||
| 159 | { ~0, 0, 0, 0, 0, 0, 0 }, | ||
| 160 | { ~0, 0, 0, 0, 0, 0, 0 }, | ||
| 161 | { ~0, 0, 0, 0, 0, 0, 0 }, | ||
| 162 | { ~0, 0, 0, 0, 0, 0, 0 }, | ||
| 163 | { ~0, 0, 0, 0, 0, 0, 0 }, | ||
| 164 | { ~0, 0, 0, 0, 0, 0, 0 }, | ||
| 165 | { ~0, 0, 0, 0, 0, 0, 0 }, | ||
| 166 | { ~0, 0, 0, 0, 0, 0, 0 }, | ||
| 167 | { ~0, 0, 0, 0, 0, 0, 0 }, | ||
| 168 | { ~0, 0, 0, 0, 0, 0, 0 }, | ||
| 169 | { ~0, 0, 0, 0, 0, 0, 0 }, | ||
| 170 | { ~0, 0, 0, 0, 0, 0, 0 }, | ||
| 171 | { ~0, 0, 0, 0, 0, 0, 0 }, | ||
| 172 | { ~0, 0, 0, 0, 0, 0, 0 }, | ||
| 173 | { ~0, 0, 0, 0, 0, 0, 0 }, | ||
| 174 | { ~0, 0, 0, 0, 0, 0, 0 }, | ||
| 175 | }; | 149 | }; |
| 176 | 150 | ||
| 177 | #define DBDEV_TAB_SIZE ARRAY_SIZE(dbdev_tab) | 151 | /* 32 predefined plus 32 custom */ |
| 178 | 152 | #define DBDEV_TAB_SIZE 64 | |
| 179 | 153 | ||
| 180 | static chan_tab_t *chan_tab_ptr[NUM_DBDMA_CHANS]; | 154 | static chan_tab_t *chan_tab_ptr[NUM_DBDMA_CHANS]; |
| 181 | 155 | ||
| @@ -1028,38 +1002,43 @@ static struct syscore_ops alchemy_dbdma_syscore_ops = { | |||
| 1028 | .resume = alchemy_dbdma_resume, | 1002 | .resume = alchemy_dbdma_resume, |
| 1029 | }; | 1003 | }; |
| 1030 | 1004 | ||
| 1031 | static int __init au1xxx_dbdma_init(void) | 1005 | static int __init dbdma_setup(unsigned int irq, dbdev_tab_t *idtable) |
| 1032 | { | 1006 | { |
| 1033 | int irq_nr, ret; | 1007 | int ret; |
| 1008 | |||
| 1009 | dbdev_tab = kzalloc(sizeof(dbdev_tab_t) * DBDEV_TAB_SIZE, GFP_KERNEL); | ||
| 1010 | if (!dbdev_tab) | ||
| 1011 | return -ENOMEM; | ||
| 1012 | |||
| 1013 | memcpy(dbdev_tab, idtable, 32 * sizeof(dbdev_tab_t)); | ||
| 1014 | for (ret = 32; ret < DBDEV_TAB_SIZE; ret++) | ||
| 1015 | dbdev_tab[ret].dev_id = ~0; | ||
| 1034 | 1016 | ||
| 1035 | dbdma_gptr->ddma_config = 0; | 1017 | dbdma_gptr->ddma_config = 0; |
| 1036 | dbdma_gptr->ddma_throttle = 0; | 1018 | dbdma_gptr->ddma_throttle = 0; |
| 1037 | dbdma_gptr->ddma_inten = 0xffff; | 1019 | dbdma_gptr->ddma_inten = 0xffff; |
| 1038 | au_sync(); | 1020 | au_sync(); |
| 1039 | 1021 | ||
| 1040 | switch (alchemy_get_cputype()) { | 1022 | ret = request_irq(irq, dbdma_interrupt, IRQF_DISABLED, "dbdma", |
| 1041 | case ALCHEMY_CPU_AU1550: | 1023 | (void *)dbdma_gptr); |
| 1042 | irq_nr = AU1550_DDMA_INT; | ||
| 1043 | break; | ||
| 1044 | case ALCHEMY_CPU_AU1200: | ||
| 1045 | irq_nr = AU1200_DDMA_INT; | ||
| 1046 | break; | ||
| 1047 | default: | ||
| 1048 | return -ENODEV; | ||
| 1049 | } | ||
| 1050 | |||
| 1051 | ret = request_irq(irq_nr, dbdma_interrupt, IRQF_DISABLED, | ||
| 1052 | "Au1xxx dbdma", (void *)dbdma_gptr); | ||
| 1053 | if (ret) | 1024 | if (ret) |
| 1054 | printk(KERN_ERR "Cannot grab DBDMA interrupt!\n"); | 1025 | printk(KERN_ERR "Cannot grab DBDMA interrupt!\n"); |
| 1055 | else { | 1026 | else { |
| 1056 | dbdma_initialized = 1; | 1027 | dbdma_initialized = 1; |
| 1057 | printk(KERN_INFO "Alchemy DBDMA initialized\n"); | ||
| 1058 | register_syscore_ops(&alchemy_dbdma_syscore_ops); | 1028 | register_syscore_ops(&alchemy_dbdma_syscore_ops); |
| 1059 | } | 1029 | } |
| 1060 | 1030 | ||
| 1061 | return ret; | 1031 | return ret; |
| 1062 | } | 1032 | } |
| 1063 | subsys_initcall(au1xxx_dbdma_init); | ||
| 1064 | 1033 | ||
| 1065 | #endif /* defined(CONFIG_SOC_AU1550) || defined(CONFIG_SOC_AU1200) */ | 1034 | static int __init alchemy_dbdma_init(void) |
| 1035 | { | ||
| 1036 | switch (alchemy_get_cputype()) { | ||
| 1037 | case ALCHEMY_CPU_AU1550: | ||
| 1038 | return dbdma_setup(AU1550_DDMA_INT, au1550_dbdev_tab); | ||
| 1039 | case ALCHEMY_CPU_AU1200: | ||
| 1040 | return dbdma_setup(AU1200_DDMA_INT, au1200_dbdev_tab); | ||
| 1041 | } | ||
| 1042 | return 0; | ||
| 1043 | } | ||
| 1044 | subsys_initcall(alchemy_dbdma_init); | ||
diff --git a/arch/mips/alchemy/common/dma.c b/arch/mips/alchemy/common/dma.c index 6652a237b920..9b624e2c0fcf 100644 --- a/arch/mips/alchemy/common/dma.c +++ b/arch/mips/alchemy/common/dma.c | |||
| @@ -40,8 +40,6 @@ | |||
| 40 | #include <asm/mach-au1x00/au1000.h> | 40 | #include <asm/mach-au1x00/au1000.h> |
| 41 | #include <asm/mach-au1x00/au1000_dma.h> | 41 | #include <asm/mach-au1x00/au1000_dma.h> |
| 42 | 42 | ||
| 43 | #if defined(CONFIG_SOC_AU1000) || defined(CONFIG_SOC_AU1500) || \ | ||
| 44 | defined(CONFIG_SOC_AU1100) | ||
| 45 | /* | 43 | /* |
| 46 | * A note on resource allocation: | 44 | * A note on resource allocation: |
| 47 | * | 45 | * |
| @@ -170,13 +168,13 @@ int request_au1000_dma(int dev_id, const char *dev_str, | |||
| 170 | const struct dma_dev *dev; | 168 | const struct dma_dev *dev; |
| 171 | int i, ret; | 169 | int i, ret; |
| 172 | 170 | ||
| 173 | #if defined(CONFIG_SOC_AU1100) | 171 | if (alchemy_get_cputype() == ALCHEMY_CPU_AU1100) { |
| 174 | if (dev_id < 0 || dev_id >= (DMA_NUM_DEV + DMA_NUM_DEV_BANK2)) | 172 | if (dev_id < 0 || dev_id >= (DMA_NUM_DEV + DMA_NUM_DEV_BANK2)) |
| 175 | return -EINVAL; | 173 | return -EINVAL; |
| 176 | #else | 174 | } else { |
| 177 | if (dev_id < 0 || dev_id >= DMA_NUM_DEV) | 175 | if (dev_id < 0 || dev_id >= DMA_NUM_DEV) |
| 178 | return -EINVAL; | 176 | return -EINVAL; |
| 179 | #endif | 177 | } |
| 180 | 178 | ||
| 181 | for (i = 0; i < NUM_AU1000_DMA_CHANNELS; i++) | 179 | for (i = 0; i < NUM_AU1000_DMA_CHANNELS; i++) |
| 182 | if (au1000_dma_table[i].dev_id < 0) | 180 | if (au1000_dma_table[i].dev_id < 0) |
| @@ -239,30 +237,28 @@ EXPORT_SYMBOL(free_au1000_dma); | |||
| 239 | 237 | ||
| 240 | static int __init au1000_dma_init(void) | 238 | static int __init au1000_dma_init(void) |
| 241 | { | 239 | { |
| 242 | int base, i; | 240 | int base, i; |
| 243 | 241 | ||
| 244 | switch (alchemy_get_cputype()) { | 242 | switch (alchemy_get_cputype()) { |
| 245 | case ALCHEMY_CPU_AU1000: | 243 | case ALCHEMY_CPU_AU1000: |
| 246 | base = AU1000_DMA_INT_BASE; | 244 | base = AU1000_DMA_INT_BASE; |
| 247 | break; | 245 | break; |
| 248 | case ALCHEMY_CPU_AU1500: | 246 | case ALCHEMY_CPU_AU1500: |
| 249 | base = AU1500_DMA_INT_BASE; | 247 | base = AU1500_DMA_INT_BASE; |
| 250 | break; | 248 | break; |
| 251 | case ALCHEMY_CPU_AU1100: | 249 | case ALCHEMY_CPU_AU1100: |
| 252 | base = AU1100_DMA_INT_BASE; | 250 | base = AU1100_DMA_INT_BASE; |
| 253 | break; | 251 | break; |
| 254 | default: | 252 | default: |
| 255 | goto out; | 253 | goto out; |
| 256 | } | 254 | } |
| 257 | 255 | ||
| 258 | for (i = 0; i < NUM_AU1000_DMA_CHANNELS; i++) | 256 | for (i = 0; i < NUM_AU1000_DMA_CHANNELS; i++) |
| 259 | au1000_dma_table[i].irq = base + i; | 257 | au1000_dma_table[i].irq = base + i; |
| 260 | 258 | ||
| 261 | printk(KERN_INFO "Alchemy DMA initialized\n"); | 259 | printk(KERN_INFO "Alchemy DMA initialized\n"); |
| 262 | 260 | ||
| 263 | out: | 261 | out: |
| 264 | return 0; | 262 | return 0; |
| 265 | } | 263 | } |
| 266 | arch_initcall(au1000_dma_init); | 264 | arch_initcall(au1000_dma_init); |
| 267 | |||
| 268 | #endif /* AU1000 AU1500 AU1100 */ | ||
diff --git a/arch/mips/alchemy/common/platform.c b/arch/mips/alchemy/common/platform.c index bf1ac414d4bb..7eca306175f1 100644 --- a/arch/mips/alchemy/common/platform.c +++ b/arch/mips/alchemy/common/platform.c | |||
| @@ -263,13 +263,13 @@ static struct resource au1200_mmc0_resources[] = { | |||
| 263 | .flags = IORESOURCE_IRQ, | 263 | .flags = IORESOURCE_IRQ, |
| 264 | }, | 264 | }, |
| 265 | [2] = { | 265 | [2] = { |
| 266 | .start = DSCR_CMD0_SDMS_TX0, | 266 | .start = AU1200_DSCR_CMD0_SDMS_TX0, |
| 267 | .end = DSCR_CMD0_SDMS_TX0, | 267 | .end = AU1200_DSCR_CMD0_SDMS_TX0, |
| 268 | .flags = IORESOURCE_DMA, | 268 | .flags = IORESOURCE_DMA, |
| 269 | }, | 269 | }, |
| 270 | [3] = { | 270 | [3] = { |
| 271 | .start = DSCR_CMD0_SDMS_RX0, | 271 | .start = AU1200_DSCR_CMD0_SDMS_RX0, |
| 272 | .end = DSCR_CMD0_SDMS_RX0, | 272 | .end = AU1200_DSCR_CMD0_SDMS_RX0, |
| 273 | .flags = IORESOURCE_DMA, | 273 | .flags = IORESOURCE_DMA, |
| 274 | } | 274 | } |
| 275 | }; | 275 | }; |
| @@ -299,13 +299,13 @@ static struct resource au1200_mmc1_resources[] = { | |||
| 299 | .flags = IORESOURCE_IRQ, | 299 | .flags = IORESOURCE_IRQ, |
| 300 | }, | 300 | }, |
| 301 | [2] = { | 301 | [2] = { |
| 302 | .start = DSCR_CMD0_SDMS_TX1, | 302 | .start = AU1200_DSCR_CMD0_SDMS_TX1, |
| 303 | .end = DSCR_CMD0_SDMS_TX1, | 303 | .end = AU1200_DSCR_CMD0_SDMS_TX1, |
| 304 | .flags = IORESOURCE_DMA, | 304 | .flags = IORESOURCE_DMA, |
| 305 | }, | 305 | }, |
| 306 | [3] = { | 306 | [3] = { |
| 307 | .start = DSCR_CMD0_SDMS_RX1, | 307 | .start = AU1200_DSCR_CMD0_SDMS_RX1, |
| 308 | .end = DSCR_CMD0_SDMS_RX1, | 308 | .end = AU1200_DSCR_CMD0_SDMS_RX1, |
| 309 | .flags = IORESOURCE_DMA, | 309 | .flags = IORESOURCE_DMA, |
| 310 | } | 310 | } |
| 311 | }; | 311 | }; |
diff --git a/arch/mips/alchemy/devboards/db1200/platform.c b/arch/mips/alchemy/devboards/db1200/platform.c index 6fd070d9084a..1bc16f0e3651 100644 --- a/arch/mips/alchemy/devboards/db1200/platform.c +++ b/arch/mips/alchemy/devboards/db1200/platform.c | |||
| @@ -215,8 +215,8 @@ static struct resource db1200_ide_res[] = { | |||
| 215 | .flags = IORESOURCE_IRQ, | 215 | .flags = IORESOURCE_IRQ, |
| 216 | }, | 216 | }, |
| 217 | [2] = { | 217 | [2] = { |
| 218 | .start = DSCR_CMD0_DMA_REQ1, | 218 | .start = AU1200_DSCR_CMD0_DMA_REQ1, |
| 219 | .end = DSCR_CMD0_DMA_REQ1, | 219 | .end = AU1200_DSCR_CMD0_DMA_REQ1, |
| 220 | .flags = IORESOURCE_DMA, | 220 | .flags = IORESOURCE_DMA, |
| 221 | }, | 221 | }, |
| 222 | }; | 222 | }; |
| @@ -358,13 +358,13 @@ static struct resource au1200_psc0_res[] = { | |||
| 358 | .flags = IORESOURCE_IRQ, | 358 | .flags = IORESOURCE_IRQ, |
| 359 | }, | 359 | }, |
| 360 | [2] = { | 360 | [2] = { |
| 361 | .start = DSCR_CMD0_PSC0_TX, | 361 | .start = AU1200_DSCR_CMD0_PSC0_TX, |
| 362 | .end = DSCR_CMD0_PSC0_TX, | 362 | .end = AU1200_DSCR_CMD0_PSC0_TX, |
| 363 | .flags = IORESOURCE_DMA, | 363 | .flags = IORESOURCE_DMA, |
| 364 | }, | 364 | }, |
| 365 | [3] = { | 365 | [3] = { |
| 366 | .start = DSCR_CMD0_PSC0_RX, | 366 | .start = AU1200_DSCR_CMD0_PSC0_RX, |
| 367 | .end = DSCR_CMD0_PSC0_RX, | 367 | .end = AU1200_DSCR_CMD0_PSC0_RX, |
| 368 | .flags = IORESOURCE_DMA, | 368 | .flags = IORESOURCE_DMA, |
| 369 | }, | 369 | }, |
| 370 | }; | 370 | }; |
| @@ -416,13 +416,13 @@ static struct resource au1200_psc1_res[] = { | |||
| 416 | .flags = IORESOURCE_IRQ, | 416 | .flags = IORESOURCE_IRQ, |
| 417 | }, | 417 | }, |
| 418 | [2] = { | 418 | [2] = { |
| 419 | .start = DSCR_CMD0_PSC1_TX, | 419 | .start = AU1200_DSCR_CMD0_PSC1_TX, |
| 420 | .end = DSCR_CMD0_PSC1_TX, | 420 | .end = AU1200_DSCR_CMD0_PSC1_TX, |
| 421 | .flags = IORESOURCE_DMA, | 421 | .flags = IORESOURCE_DMA, |
| 422 | }, | 422 | }, |
| 423 | [3] = { | 423 | [3] = { |
| 424 | .start = DSCR_CMD0_PSC1_RX, | 424 | .start = AU1200_DSCR_CMD0_PSC1_RX, |
| 425 | .end = DSCR_CMD0_PSC1_RX, | 425 | .end = AU1200_DSCR_CMD0_PSC1_RX, |
| 426 | .flags = IORESOURCE_DMA, | 426 | .flags = IORESOURCE_DMA, |
| 427 | }, | 427 | }, |
| 428 | }; | 428 | }; |
diff --git a/arch/mips/alchemy/devboards/pb1200/platform.c b/arch/mips/alchemy/devboards/pb1200/platform.c index 6ac04941917a..7de4f883da1c 100644 --- a/arch/mips/alchemy/devboards/pb1200/platform.c +++ b/arch/mips/alchemy/devboards/pb1200/platform.c | |||
| @@ -118,8 +118,8 @@ static struct resource ide_resources[] = { | |||
| 118 | .flags = IORESOURCE_IRQ | 118 | .flags = IORESOURCE_IRQ |
| 119 | }, | 119 | }, |
| 120 | [2] = { | 120 | [2] = { |
| 121 | .start = DSCR_CMD0_DMA_REQ1, | 121 | .start = AU1200_DSCR_CMD0_DMA_REQ1, |
| 122 | .end = DSCR_CMD0_DMA_REQ1, | 122 | .end = AU1200_DSCR_CMD0_DMA_REQ1, |
| 123 | .flags = IORESOURCE_DMA, | 123 | .flags = IORESOURCE_DMA, |
| 124 | }, | 124 | }, |
| 125 | }; | 125 | }; |
diff --git a/arch/mips/include/asm/mach-au1x00/au1xxx_dbdma.h b/arch/mips/include/asm/mach-au1x00/au1xxx_dbdma.h index 2fdacfe85e23..323ce2d145f2 100644 --- a/arch/mips/include/asm/mach-au1x00/au1xxx_dbdma.h +++ b/arch/mips/include/asm/mach-au1x00/au1xxx_dbdma.h | |||
| @@ -126,66 +126,62 @@ typedef volatile struct au1xxx_ddma_desc { | |||
| 126 | #define SW_STATUS_INUSE (1 << 0) | 126 | #define SW_STATUS_INUSE (1 << 0) |
| 127 | 127 | ||
| 128 | /* Command 0 device IDs. */ | 128 | /* Command 0 device IDs. */ |
| 129 | #ifdef CONFIG_SOC_AU1550 | 129 | #define AU1550_DSCR_CMD0_UART0_TX 0 |
| 130 | #define DSCR_CMD0_UART0_TX 0 | 130 | #define AU1550_DSCR_CMD0_UART0_RX 1 |
| 131 | #define DSCR_CMD0_UART0_RX 1 | 131 | #define AU1550_DSCR_CMD0_UART3_TX 2 |
| 132 | #define DSCR_CMD0_UART3_TX 2 | 132 | #define AU1550_DSCR_CMD0_UART3_RX 3 |
| 133 | #define DSCR_CMD0_UART3_RX 3 | 133 | #define AU1550_DSCR_CMD0_DMA_REQ0 4 |
| 134 | #define DSCR_CMD0_DMA_REQ0 4 | 134 | #define AU1550_DSCR_CMD0_DMA_REQ1 5 |
| 135 | #define DSCR_CMD0_DMA_REQ1 5 | 135 | #define AU1550_DSCR_CMD0_DMA_REQ2 6 |
| 136 | #define DSCR_CMD0_DMA_REQ2 6 | 136 | #define AU1550_DSCR_CMD0_DMA_REQ3 7 |
| 137 | #define DSCR_CMD0_DMA_REQ3 7 | 137 | #define AU1550_DSCR_CMD0_USBDEV_RX0 8 |
| 138 | #define DSCR_CMD0_USBDEV_RX0 8 | 138 | #define AU1550_DSCR_CMD0_USBDEV_TX0 9 |
| 139 | #define DSCR_CMD0_USBDEV_TX0 9 | 139 | #define AU1550_DSCR_CMD0_USBDEV_TX1 10 |
| 140 | #define DSCR_CMD0_USBDEV_TX1 10 | 140 | #define AU1550_DSCR_CMD0_USBDEV_TX2 11 |
| 141 | #define DSCR_CMD0_USBDEV_TX2 11 | 141 | #define AU1550_DSCR_CMD0_USBDEV_RX3 12 |
| 142 | #define DSCR_CMD0_USBDEV_RX3 12 | 142 | #define AU1550_DSCR_CMD0_USBDEV_RX4 13 |
| 143 | #define DSCR_CMD0_USBDEV_RX4 13 | 143 | #define AU1550_DSCR_CMD0_PSC0_TX 14 |
| 144 | #define DSCR_CMD0_PSC0_TX 14 | 144 | #define AU1550_DSCR_CMD0_PSC0_RX 15 |
| 145 | #define DSCR_CMD0_PSC0_RX 15 | 145 | #define AU1550_DSCR_CMD0_PSC1_TX 16 |
| 146 | #define DSCR_CMD0_PSC1_TX 16 | 146 | #define AU1550_DSCR_CMD0_PSC1_RX 17 |
| 147 | #define DSCR_CMD0_PSC1_RX 17 | 147 | #define AU1550_DSCR_CMD0_PSC2_TX 18 |
| 148 | #define DSCR_CMD0_PSC2_TX 18 | 148 | #define AU1550_DSCR_CMD0_PSC2_RX 19 |
| 149 | #define DSCR_CMD0_PSC2_RX 19 | 149 | #define AU1550_DSCR_CMD0_PSC3_TX 20 |
| 150 | #define DSCR_CMD0_PSC3_TX 20 | 150 | #define AU1550_DSCR_CMD0_PSC3_RX 21 |
| 151 | #define DSCR_CMD0_PSC3_RX 21 | 151 | #define AU1550_DSCR_CMD0_PCI_WRITE 22 |
| 152 | #define DSCR_CMD0_PCI_WRITE 22 | 152 | #define AU1550_DSCR_CMD0_NAND_FLASH 23 |
| 153 | #define DSCR_CMD0_NAND_FLASH 23 | 153 | #define AU1550_DSCR_CMD0_MAC0_RX 24 |
| 154 | #define DSCR_CMD0_MAC0_RX 24 | 154 | #define AU1550_DSCR_CMD0_MAC0_TX 25 |
| 155 | #define DSCR_CMD0_MAC0_TX 25 | 155 | #define AU1550_DSCR_CMD0_MAC1_RX 26 |
| 156 | #define DSCR_CMD0_MAC1_RX 26 | 156 | #define AU1550_DSCR_CMD0_MAC1_TX 27 |
| 157 | #define DSCR_CMD0_MAC1_TX 27 | 157 | |
| 158 | #endif /* CONFIG_SOC_AU1550 */ | 158 | #define AU1200_DSCR_CMD0_UART0_TX 0 |
| 159 | 159 | #define AU1200_DSCR_CMD0_UART0_RX 1 | |
| 160 | #ifdef CONFIG_SOC_AU1200 | 160 | #define AU1200_DSCR_CMD0_UART1_TX 2 |
| 161 | #define DSCR_CMD0_UART0_TX 0 | 161 | #define AU1200_DSCR_CMD0_UART1_RX 3 |
| 162 | #define DSCR_CMD0_UART0_RX 1 | 162 | #define AU1200_DSCR_CMD0_DMA_REQ0 4 |
| 163 | #define DSCR_CMD0_UART1_TX 2 | 163 | #define AU1200_DSCR_CMD0_DMA_REQ1 5 |
| 164 | #define DSCR_CMD0_UART1_RX 3 | 164 | #define AU1200_DSCR_CMD0_MAE_BE 6 |
| 165 | #define DSCR_CMD0_DMA_REQ0 4 | 165 | #define AU1200_DSCR_CMD0_MAE_FE 7 |
| 166 | #define DSCR_CMD0_DMA_REQ1 5 | 166 | #define AU1200_DSCR_CMD0_SDMS_TX0 8 |
| 167 | #define DSCR_CMD0_MAE_BE 6 | 167 | #define AU1200_DSCR_CMD0_SDMS_RX0 9 |
| 168 | #define DSCR_CMD0_MAE_FE 7 | 168 | #define AU1200_DSCR_CMD0_SDMS_TX1 10 |
| 169 | #define DSCR_CMD0_SDMS_TX0 8 | 169 | #define AU1200_DSCR_CMD0_SDMS_RX1 11 |
| 170 | #define DSCR_CMD0_SDMS_RX0 9 | 170 | #define AU1200_DSCR_CMD0_AES_TX 13 |
| 171 | #define DSCR_CMD0_SDMS_TX1 10 | 171 | #define AU1200_DSCR_CMD0_AES_RX 12 |
| 172 | #define DSCR_CMD0_SDMS_RX1 11 | 172 | #define AU1200_DSCR_CMD0_PSC0_TX 14 |
| 173 | #define DSCR_CMD0_AES_TX 13 | 173 | #define AU1200_DSCR_CMD0_PSC0_RX 15 |
| 174 | #define DSCR_CMD0_AES_RX 12 | 174 | #define AU1200_DSCR_CMD0_PSC1_TX 16 |
| 175 | #define DSCR_CMD0_PSC0_TX 14 | 175 | #define AU1200_DSCR_CMD0_PSC1_RX 17 |
| 176 | #define DSCR_CMD0_PSC0_RX 15 | 176 | #define AU1200_DSCR_CMD0_CIM_RXA 18 |
| 177 | #define DSCR_CMD0_PSC1_TX 16 | 177 | #define AU1200_DSCR_CMD0_CIM_RXB 19 |
| 178 | #define DSCR_CMD0_PSC1_RX 17 | 178 | #define AU1200_DSCR_CMD0_CIM_RXC 20 |
| 179 | #define DSCR_CMD0_CIM_RXA 18 | 179 | #define AU1200_DSCR_CMD0_MAE_BOTH 21 |
| 180 | #define DSCR_CMD0_CIM_RXB 19 | 180 | #define AU1200_DSCR_CMD0_LCD 22 |
| 181 | #define DSCR_CMD0_CIM_RXC 20 | 181 | #define AU1200_DSCR_CMD0_NAND_FLASH 23 |
| 182 | #define DSCR_CMD0_MAE_BOTH 21 | 182 | #define AU1200_DSCR_CMD0_PSC0_SYNC 24 |
| 183 | #define DSCR_CMD0_LCD 22 | 183 | #define AU1200_DSCR_CMD0_PSC1_SYNC 25 |
| 184 | #define DSCR_CMD0_NAND_FLASH 23 | 184 | #define AU1200_DSCR_CMD0_CIM_SYNC 26 |
| 185 | #define DSCR_CMD0_PSC0_SYNC 24 | ||
| 186 | #define DSCR_CMD0_PSC1_SYNC 25 | ||
| 187 | #define DSCR_CMD0_CIM_SYNC 26 | ||
| 188 | #endif /* CONFIG_SOC_AU1200 */ | ||
| 189 | 185 | ||
| 190 | #define DSCR_CMD0_THROTTLE 30 | 186 | #define DSCR_CMD0_THROTTLE 30 |
| 191 | #define DSCR_CMD0_ALWAYS 31 | 187 | #define DSCR_CMD0_ALWAYS 31 |
diff --git a/arch/mips/include/asm/mach-db1x00/db1x00.h b/arch/mips/include/asm/mach-db1x00/db1x00.h index 115cc7c44402..a5affb0568ef 100644 --- a/arch/mips/include/asm/mach-db1x00/db1x00.h +++ b/arch/mips/include/asm/mach-db1x00/db1x00.h | |||
| @@ -31,10 +31,10 @@ | |||
| 31 | 31 | ||
| 32 | #ifdef CONFIG_MIPS_DB1550 | 32 | #ifdef CONFIG_MIPS_DB1550 |
| 33 | 33 | ||
| 34 | #define DBDMA_AC97_TX_CHAN DSCR_CMD0_PSC1_TX | 34 | #define DBDMA_AC97_TX_CHAN AU1550_DSCR_CMD0_PSC1_TX |
| 35 | #define DBDMA_AC97_RX_CHAN DSCR_CMD0_PSC1_RX | 35 | #define DBDMA_AC97_RX_CHAN AU1550_DSCR_CMD0_PSC1_RX |
| 36 | #define DBDMA_I2S_TX_CHAN DSCR_CMD0_PSC3_TX | 36 | #define DBDMA_I2S_TX_CHAN AU1550_DSCR_CMD0_PSC3_TX |
| 37 | #define DBDMA_I2S_RX_CHAN DSCR_CMD0_PSC3_RX | 37 | #define DBDMA_I2S_RX_CHAN AU1550_DSCR_CMD0_PSC3_RX |
| 38 | 38 | ||
| 39 | #define SPI_PSC_BASE AU1550_PSC0_PHYS_ADDR | 39 | #define SPI_PSC_BASE AU1550_PSC0_PHYS_ADDR |
| 40 | #define AC97_PSC_BASE AU1550_PSC1_PHYS_ADDR | 40 | #define AC97_PSC_BASE AU1550_PSC1_PHYS_ADDR |
diff --git a/arch/mips/include/asm/mach-pb1x00/pb1200.h b/arch/mips/include/asm/mach-pb1x00/pb1200.h index 56865e96acfa..374416adb65b 100644 --- a/arch/mips/include/asm/mach-pb1x00/pb1200.h +++ b/arch/mips/include/asm/mach-pb1x00/pb1200.h | |||
| @@ -28,10 +28,10 @@ | |||
| 28 | #include <asm/mach-au1x00/au1000.h> | 28 | #include <asm/mach-au1x00/au1000.h> |
| 29 | #include <asm/mach-au1x00/au1xxx_psc.h> | 29 | #include <asm/mach-au1x00/au1xxx_psc.h> |
| 30 | 30 | ||
| 31 | #define DBDMA_AC97_TX_CHAN DSCR_CMD0_PSC1_TX | 31 | #define DBDMA_AC97_TX_CHAN AU1200_DSCR_CMD0_PSC1_TX |
| 32 | #define DBDMA_AC97_RX_CHAN DSCR_CMD0_PSC1_RX | 32 | #define DBDMA_AC97_RX_CHAN AU1200_DSCR_CMD0_PSC1_RX |
| 33 | #define DBDMA_I2S_TX_CHAN DSCR_CMD0_PSC1_TX | 33 | #define DBDMA_I2S_TX_CHAN AU1200_DSCR_CMD0_PSC1_TX |
| 34 | #define DBDMA_I2S_RX_CHAN DSCR_CMD0_PSC1_RX | 34 | #define DBDMA_I2S_RX_CHAN AU1200_DSCR_CMD0_PSC1_RX |
| 35 | 35 | ||
| 36 | /* | 36 | /* |
| 37 | * SPI and SMB are muxed on the Pb1200 board. | 37 | * SPI and SMB are muxed on the Pb1200 board. |
diff --git a/arch/mips/include/asm/mach-pb1x00/pb1550.h b/arch/mips/include/asm/mach-pb1x00/pb1550.h index 0b0f462e4bfb..443b88adebf1 100644 --- a/arch/mips/include/asm/mach-pb1x00/pb1550.h +++ b/arch/mips/include/asm/mach-pb1x00/pb1550.h | |||
| @@ -30,10 +30,10 @@ | |||
| 30 | #include <linux/types.h> | 30 | #include <linux/types.h> |
| 31 | #include <asm/mach-au1x00/au1xxx_psc.h> | 31 | #include <asm/mach-au1x00/au1xxx_psc.h> |
| 32 | 32 | ||
| 33 | #define DBDMA_AC97_TX_CHAN DSCR_CMD0_PSC1_TX | 33 | #define DBDMA_AC97_TX_CHAN AU1550_DSCR_CMD0_PSC1_TX |
| 34 | #define DBDMA_AC97_RX_CHAN DSCR_CMD0_PSC1_RX | 34 | #define DBDMA_AC97_RX_CHAN AU1550_DSCR_CMD0_PSC1_RX |
| 35 | #define DBDMA_I2S_TX_CHAN DSCR_CMD0_PSC3_TX | 35 | #define DBDMA_I2S_TX_CHAN AU1550_DSCR_CMD0_PSC3_TX |
| 36 | #define DBDMA_I2S_RX_CHAN DSCR_CMD0_PSC3_RX | 36 | #define DBDMA_I2S_RX_CHAN AU1550_DSCR_CMD0_PSC3_RX |
| 37 | 37 | ||
| 38 | #define SPI_PSC_BASE AU1550_PSC0_PHYS_ADDR | 38 | #define SPI_PSC_BASE AU1550_PSC0_PHYS_ADDR |
| 39 | #define AC97_PSC_BASE AU1550_PSC1_PHYS_ADDR | 39 | #define AC97_PSC_BASE AU1550_PSC1_PHYS_ADDR |
