diff options
| -rw-r--r-- | arch/arm/mach-davinci/devices-da8xx.c | 29 | ||||
| -rw-r--r-- | arch/arm/mach-davinci/devices-tnetv107x.c | 24 | ||||
| -rw-r--r-- | arch/arm/mach-davinci/dm355.c | 22 | ||||
| -rw-r--r-- | arch/arm/mach-davinci/dm365.c | 24 | ||||
| -rw-r--r-- | arch/arm/mach-davinci/dm644x.c | 22 | ||||
| -rw-r--r-- | arch/arm/mach-davinci/dm646x.c | 22 | ||||
| -rw-r--r-- | arch/arm/mach-davinci/dma.c | 21 | ||||
| -rw-r--r-- | arch/arm/mach-davinci/include/mach/edma.h | 2 |
8 files changed, 92 insertions, 74 deletions
diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c index 8cda729be273..1d956bfa9cf0 100644 --- a/arch/arm/mach-davinci/devices-da8xx.c +++ b/arch/arm/mach-davinci/devices-da8xx.c | |||
| @@ -111,19 +111,21 @@ static const s8 da850_queue_priority_mapping[][2] = { | |||
| 111 | {-1, -1} | 111 | {-1, -1} |
| 112 | }; | 112 | }; |
| 113 | 113 | ||
| 114 | static struct edma_soc_info da830_edma_info[] = { | 114 | static struct edma_soc_info da830_edma_cc0_info = { |
| 115 | { | 115 | .n_channel = 32, |
| 116 | .n_channel = 32, | 116 | .n_region = 4, |
| 117 | .n_region = 4, | 117 | .n_slot = 128, |
| 118 | .n_slot = 128, | 118 | .n_tc = 2, |
| 119 | .n_tc = 2, | 119 | .n_cc = 1, |
| 120 | .n_cc = 1, | 120 | .queue_tc_mapping = da8xx_queue_tc_mapping, |
| 121 | .queue_tc_mapping = da8xx_queue_tc_mapping, | 121 | .queue_priority_mapping = da8xx_queue_priority_mapping, |
| 122 | .queue_priority_mapping = da8xx_queue_priority_mapping, | 122 | }; |
| 123 | }, | 123 | |
| 124 | static struct edma_soc_info *da830_edma_info[EDMA_MAX_CC] = { | ||
| 125 | &da830_edma_cc0_info, | ||
| 124 | }; | 126 | }; |
| 125 | 127 | ||
| 126 | static struct edma_soc_info da850_edma_info[] = { | 128 | static struct edma_soc_info da850_edma_cc_info[] = { |
| 127 | { | 129 | { |
| 128 | .n_channel = 32, | 130 | .n_channel = 32, |
| 129 | .n_region = 4, | 131 | .n_region = 4, |
| @@ -144,6 +146,11 @@ static struct edma_soc_info da850_edma_info[] = { | |||
| 144 | }, | 146 | }, |
| 145 | }; | 147 | }; |
| 146 | 148 | ||
| 149 | static struct edma_soc_info *da850_edma_info[EDMA_MAX_CC] = { | ||
| 150 | &da850_edma_cc_info[0], | ||
| 151 | &da850_edma_cc_info[1], | ||
| 152 | }; | ||
| 153 | |||
| 147 | static struct resource da830_edma_resources[] = { | 154 | static struct resource da830_edma_resources[] = { |
| 148 | { | 155 | { |
| 149 | .name = "edma_cc0", | 156 | .name = "edma_cc0", |
diff --git a/arch/arm/mach-davinci/devices-tnetv107x.c b/arch/arm/mach-davinci/devices-tnetv107x.c index 4eef6ccdc73e..2718a3a90dff 100644 --- a/arch/arm/mach-davinci/devices-tnetv107x.c +++ b/arch/arm/mach-davinci/devices-tnetv107x.c | |||
| @@ -69,16 +69,18 @@ static const s8 edma_priority_mapping[][2] = { | |||
| 69 | { -1, -1 } | 69 | { -1, -1 } |
| 70 | }; | 70 | }; |
| 71 | 71 | ||
| 72 | static struct edma_soc_info edma_info[] = { | 72 | static struct edma_soc_info edma_cc0_info = { |
| 73 | { | 73 | .n_channel = EDMA_TNETV107X_NUM_DMACH, |
| 74 | .n_channel = EDMA_TNETV107X_NUM_DMACH, | 74 | .n_region = EDMA_TNETV107X_NUM_REGIONS, |
| 75 | .n_region = EDMA_TNETV107X_NUM_REGIONS, | 75 | .n_slot = EDMA_TNETV107X_NUM_PARAMENTRY, |
| 76 | .n_slot = EDMA_TNETV107X_NUM_PARAMENTRY, | 76 | .n_tc = EDMA_TNETV107X_NUM_TC, |
| 77 | .n_tc = EDMA_TNETV107X_NUM_TC, | 77 | .n_cc = 1, |
| 78 | .n_cc = 1, | 78 | .queue_tc_mapping = edma_tc_mapping, |
| 79 | .queue_tc_mapping = edma_tc_mapping, | 79 | .queue_priority_mapping = edma_priority_mapping, |
| 80 | .queue_priority_mapping = edma_priority_mapping, | 80 | }; |
| 81 | }, | 81 | |
| 82 | static struct edma_soc_info *tnetv107x_edma_info[EDMA_MAX_CC] = { | ||
| 83 | &edma_cc0_info, | ||
| 82 | }; | 84 | }; |
| 83 | 85 | ||
| 84 | static struct resource edma_resources[] = { | 86 | static struct resource edma_resources[] = { |
| @@ -117,7 +119,7 @@ static struct platform_device edma_device = { | |||
| 117 | .id = -1, | 119 | .id = -1, |
| 118 | .num_resources = ARRAY_SIZE(edma_resources), | 120 | .num_resources = ARRAY_SIZE(edma_resources), |
| 119 | .resource = edma_resources, | 121 | .resource = edma_resources, |
| 120 | .dev.platform_data = edma_info, | 122 | .dev.platform_data = tnetv107x_edma_info, |
| 121 | }; | 123 | }; |
| 122 | 124 | ||
| 123 | static struct plat_serial8250_port serial_data[] = { | 125 | static struct plat_serial8250_port serial_data[] = { |
diff --git a/arch/arm/mach-davinci/dm355.c b/arch/arm/mach-davinci/dm355.c index 383478116ef5..3d996b659ff4 100644 --- a/arch/arm/mach-davinci/dm355.c +++ b/arch/arm/mach-davinci/dm355.c | |||
| @@ -591,16 +591,18 @@ queue_priority_mapping[][2] = { | |||
| 591 | {-1, -1}, | 591 | {-1, -1}, |
| 592 | }; | 592 | }; |
| 593 | 593 | ||
| 594 | static struct edma_soc_info dm355_edma_info[] = { | 594 | static struct edma_soc_info edma_cc0_info = { |
| 595 | { | 595 | .n_channel = 64, |
| 596 | .n_channel = 64, | 596 | .n_region = 4, |
| 597 | .n_region = 4, | 597 | .n_slot = 128, |
| 598 | .n_slot = 128, | 598 | .n_tc = 2, |
| 599 | .n_tc = 2, | 599 | .n_cc = 1, |
| 600 | .n_cc = 1, | 600 | .queue_tc_mapping = queue_tc_mapping, |
| 601 | .queue_tc_mapping = queue_tc_mapping, | 601 | .queue_priority_mapping = queue_priority_mapping, |
| 602 | .queue_priority_mapping = queue_priority_mapping, | 602 | }; |
| 603 | }, | 603 | |
| 604 | static struct edma_soc_info *dm355_edma_info[EDMA_MAX_CC] = { | ||
| 605 | &edma_cc0_info, | ||
| 604 | }; | 606 | }; |
| 605 | 607 | ||
| 606 | static struct resource edma_resources[] = { | 608 | static struct resource edma_resources[] = { |
diff --git a/arch/arm/mach-davinci/dm365.c b/arch/arm/mach-davinci/dm365.c index 652f4b6ee1cd..6b6f4c643709 100644 --- a/arch/arm/mach-davinci/dm365.c +++ b/arch/arm/mach-davinci/dm365.c | |||
| @@ -822,17 +822,19 @@ dm365_queue_priority_mapping[][2] = { | |||
| 822 | {-1, -1}, | 822 | {-1, -1}, |
| 823 | }; | 823 | }; |
| 824 | 824 | ||
| 825 | static struct edma_soc_info dm365_edma_info[] = { | 825 | static struct edma_soc_info edma_cc0_info = { |
| 826 | { | 826 | .n_channel = 64, |
| 827 | .n_channel = 64, | 827 | .n_region = 4, |
| 828 | .n_region = 4, | 828 | .n_slot = 256, |
| 829 | .n_slot = 256, | 829 | .n_tc = 4, |
| 830 | .n_tc = 4, | 830 | .n_cc = 1, |
| 831 | .n_cc = 1, | 831 | .queue_tc_mapping = dm365_queue_tc_mapping, |
| 832 | .queue_tc_mapping = dm365_queue_tc_mapping, | 832 | .queue_priority_mapping = dm365_queue_priority_mapping, |
| 833 | .queue_priority_mapping = dm365_queue_priority_mapping, | 833 | .default_queue = EVENTQ_3, |
| 834 | .default_queue = EVENTQ_3, | 834 | }; |
| 835 | }, | 835 | |
| 836 | static struct edma_soc_info *dm365_edma_info[EDMA_MAX_CC] = { | ||
| 837 | &edma_cc0_info, | ||
| 836 | }; | 838 | }; |
| 837 | 839 | ||
| 838 | static struct resource edma_resources[] = { | 840 | static struct resource edma_resources[] = { |
diff --git a/arch/arm/mach-davinci/dm644x.c b/arch/arm/mach-davinci/dm644x.c index 7ad15208b841..40fec315c99a 100644 --- a/arch/arm/mach-davinci/dm644x.c +++ b/arch/arm/mach-davinci/dm644x.c | |||
| @@ -492,16 +492,18 @@ queue_priority_mapping[][2] = { | |||
| 492 | {-1, -1}, | 492 | {-1, -1}, |
| 493 | }; | 493 | }; |
| 494 | 494 | ||
| 495 | static struct edma_soc_info dm644x_edma_info[] = { | 495 | static struct edma_soc_info edma_cc0_info = { |
| 496 | { | 496 | .n_channel = 64, |
| 497 | .n_channel = 64, | 497 | .n_region = 4, |
| 498 | .n_region = 4, | 498 | .n_slot = 128, |
| 499 | .n_slot = 128, | 499 | .n_tc = 2, |
| 500 | .n_tc = 2, | 500 | .n_cc = 1, |
| 501 | .n_cc = 1, | 501 | .queue_tc_mapping = queue_tc_mapping, |
| 502 | .queue_tc_mapping = queue_tc_mapping, | 502 | .queue_priority_mapping = queue_priority_mapping, |
| 503 | .queue_priority_mapping = queue_priority_mapping, | 503 | }; |
| 504 | }, | 504 | |
| 505 | static struct edma_soc_info *dm644x_edma_info[EDMA_MAX_CC] = { | ||
| 506 | &edma_cc0_info, | ||
| 505 | }; | 507 | }; |
| 506 | 508 | ||
| 507 | static struct resource edma_resources[] = { | 509 | static struct resource edma_resources[] = { |
diff --git a/arch/arm/mach-davinci/dm646x.c b/arch/arm/mach-davinci/dm646x.c index 94045656cff6..bfc887e9f118 100644 --- a/arch/arm/mach-davinci/dm646x.c +++ b/arch/arm/mach-davinci/dm646x.c | |||
| @@ -529,16 +529,18 @@ dm646x_queue_priority_mapping[][2] = { | |||
| 529 | {-1, -1}, | 529 | {-1, -1}, |
