fix dma channel bug found in uart dma
authorhxy/ubuntu <hxy@rockchip.com>
Thu, 14 Jul 2011 02:49:16 +0000 (10:49 +0800)
committerhxy/ubuntu <hxy@rockchip.com>
Thu, 14 Jul 2011 02:49:16 +0000 (10:49 +0800)
arch/arm/mach-rk29/dma.c

index da53b2562419a75bdc1489b546e641a08264ce18..8080f2afa5e6fe18c60c2d4f6ee6fdfe4d6ce649 100755 (executable)
@@ -30,7 +30,7 @@ static struct rk29_pl330_platdata rk29_dmac0_pdata = {
                [4] = DMACH_I2S_2CH_TX,
                [5] = DMACH_I2S_2CH_RX,
                [6] = DMACH_SPDIF,
-                            [7] = DMACH_MAX,
+                [7] = DMACH_MAX,
                [8] = DMACH_MAX,
                [9] = DMACH_MAX,
                [10] = DMACH_MAX,
@@ -39,6 +39,22 @@ static struct rk29_pl330_platdata rk29_dmac0_pdata = {
                [13] = DMACH_MAX,
                [14] = DMACH_MAX,
                [15] = DMACH_MAX,
+                [16] = DMACH_MAX,
+               [17] = DMACH_MAX,
+               [18] = DMACH_MAX,
+               [19] = DMACH_MAX,
+               [20] = DMACH_MAX,
+               [21] = DMACH_MAX,
+               [22] = DMACH_MAX,
+               [23] = DMACH_MAX,
+               [24] = DMACH_MAX,
+               [25] = DMACH_MAX,
+               [26] = DMACH_MAX,
+               [27] = DMACH_MAX,
+               [28] = DMACH_MAX,
+               [29] = DMACH_MAX,
+               [30] = DMACH_MAX,
+               [31] = DMACH_MAX,       
        },
 };
 
@@ -84,8 +100,23 @@ static struct rk29_pl330_platdata rk29_dmac1_pdata = {
                [12] = DMACH_SPI1_TX,
                [13] = DMACH_SPI1_RX,
                [14] = DMACH_PID_FILTER, 
-                            [15] = DMACH_DMAC0_MEMTOMEM,
+                [15] = DMACH_DMAC0_MEMTOMEM,
                [16] = DMACH_MAX,
+               [17] = DMACH_MAX,
+               [18] = DMACH_MAX,
+               [19] = DMACH_MAX,
+               [20] = DMACH_MAX,
+               [21] = DMACH_MAX,
+               [22] = DMACH_MAX,
+               [23] = DMACH_MAX,
+               [24] = DMACH_MAX,
+               [25] = DMACH_MAX,
+               [26] = DMACH_MAX,
+               [27] = DMACH_MAX,
+               [28] = DMACH_MAX,
+               [29] = DMACH_MAX,
+               [30] = DMACH_MAX,
+               [31] = DMACH_MAX,       
        },
 };