diff options
author | Benoit Cousson <b-cousson@ti.com> | 2010-09-21 12:34:08 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2010-09-21 12:34:08 -0400 |
commit | 9ee9fff92e02e8c5f84794b3a5ce47646c2dfc39 (patch) | |
tree | 59b3904f78a379ab0e3eed6db274756b6009836e /arch/arm | |
parent | b30a3f6257ed2105259b404d419b4964e363928c (diff) |
OMAP: hwmod: Rename dma_ch to dma_req
The dma request line attribute was named dma channel, which leads
to confusion with the real dma channel definition.
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Tested-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod.c | 10 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/omap_hwmod.h | 12 |
2 files changed, 11 insertions, 11 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index cb911d7d1a3c..8bf19a7efb5c 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c | |||
@@ -1468,7 +1468,7 @@ int omap_hwmod_count_resources(struct omap_hwmod *oh) | |||
1468 | { | 1468 | { |
1469 | int ret, i; | 1469 | int ret, i; |
1470 | 1470 | ||
1471 | ret = oh->mpu_irqs_cnt + oh->sdma_chs_cnt; | 1471 | ret = oh->mpu_irqs_cnt + oh->sdma_reqs_cnt; |
1472 | 1472 | ||
1473 | for (i = 0; i < oh->slaves_cnt; i++) | 1473 | for (i = 0; i < oh->slaves_cnt; i++) |
1474 | ret += oh->slaves[i]->addr_cnt; | 1474 | ret += oh->slaves[i]->addr_cnt; |
@@ -1501,10 +1501,10 @@ int omap_hwmod_fill_resources(struct omap_hwmod *oh, struct resource *res) | |||
1501 | r++; | 1501 | r++; |
1502 | } | 1502 | } |
1503 | 1503 | ||
1504 | for (i = 0; i < oh->sdma_chs_cnt; i++) { | 1504 | for (i = 0; i < oh->sdma_reqs_cnt; i++) { |
1505 | (res + r)->name = (oh->sdma_chs + i)->name; | 1505 | (res + r)->name = (oh->sdma_reqs + i)->name; |
1506 | (res + r)->start = (oh->sdma_chs + i)->dma_ch; | 1506 | (res + r)->start = (oh->sdma_reqs + i)->dma_req; |
1507 | (res + r)->end = (oh->sdma_chs + i)->dma_ch; | 1507 | (res + r)->end = (oh->sdma_reqs + i)->dma_req; |
1508 | (res + r)->flags = IORESOURCE_DMA; | 1508 | (res + r)->flags = IORESOURCE_DMA; |
1509 | r++; | 1509 | r++; |
1510 | } | 1510 | } |
diff --git a/arch/arm/plat-omap/include/plat/omap_hwmod.h b/arch/arm/plat-omap/include/plat/omap_hwmod.h index a4e508dfaba2..5506d80d94b9 100644 --- a/arch/arm/plat-omap/include/plat/omap_hwmod.h +++ b/arch/arm/plat-omap/include/plat/omap_hwmod.h | |||
@@ -96,7 +96,7 @@ struct omap_hwmod_irq_info { | |||
96 | /** | 96 | /** |
97 | * struct omap_hwmod_dma_info - DMA channels used by the hwmod | 97 | * struct omap_hwmod_dma_info - DMA channels used by the hwmod |
98 | * @name: name of the DMA channel (module local name) | 98 | * @name: name of the DMA channel (module local name) |
99 | * @dma_ch: DMA channel ID | 99 | * @dma_req: DMA request ID |
100 | * | 100 | * |
101 | * @name should be something short, e.g., "tx" or "rx". It is for use | 101 | * @name should be something short, e.g., "tx" or "rx". It is for use |
102 | * by platform_get_resource_byname(). It is defined locally to the | 102 | * by platform_get_resource_byname(). It is defined locally to the |
@@ -104,7 +104,7 @@ struct omap_hwmod_irq_info { | |||
104 | */ | 104 | */ |
105 | struct omap_hwmod_dma_info { | 105 | struct omap_hwmod_dma_info { |
106 | const char *name; | 106 | const char *name; |
107 | u16 dma_ch; | 107 | u16 dma_req; |
108 | }; | 108 | }; |
109 | 109 | ||
110 | /** | 110 | /** |
@@ -410,7 +410,7 @@ struct omap_hwmod_class { | |||
410 | * @class: struct omap_hwmod_class * to the class of this hwmod | 410 | * @class: struct omap_hwmod_class * to the class of this hwmod |
411 | * @od: struct omap_device currently associated with this hwmod (internal use) | 411 | * @od: struct omap_device currently associated with this hwmod (internal use) |
412 | * @mpu_irqs: ptr to an array of MPU IRQs (see also mpu_irqs_cnt) | 412 | * @mpu_irqs: ptr to an array of MPU IRQs (see also mpu_irqs_cnt) |
413 | * @sdma_chs: ptr to an array of SDMA channel IDs (see also sdma_chs_cnt) | 413 | * @sdma_reqs: ptr to an array of System DMA request IDs (see sdma_reqs_cnt) |
414 | * @prcm: PRCM data pertaining to this hwmod | 414 | * @prcm: PRCM data pertaining to this hwmod |
415 | * @main_clk: main clock: OMAP clock name | 415 | * @main_clk: main clock: OMAP clock name |
416 | * @_clk: pointer to the main struct clk (filled in at runtime) | 416 | * @_clk: pointer to the main struct clk (filled in at runtime) |
@@ -424,7 +424,7 @@ struct omap_hwmod_class { | |||
424 | * @msuspendmux_reg_id: CONTROL_MSUSPENDMUX register ID (1-6) | 424 | * @msuspendmux_reg_id: CONTROL_MSUSPENDMUX register ID (1-6) |
425 | * @msuspendmux_shift: CONTROL_MSUSPENDMUX register bit shift | 425 | * @msuspendmux_shift: CONTROL_MSUSPENDMUX register bit shift |
426 | * @mpu_irqs_cnt: number of @mpu_irqs | 426 | * @mpu_irqs_cnt: number of @mpu_irqs |
427 | * @sdma_chs_cnt: number of @sdma_chs | 427 | * @sdma_reqs_cnt: number of @sdma_reqs |
428 | * @opt_clks_cnt: number of @opt_clks | 428 | * @opt_clks_cnt: number of @opt_clks |
429 | * @master_cnt: number of @master entries | 429 | * @master_cnt: number of @master entries |
430 | * @slaves_cnt: number of @slave entries | 430 | * @slaves_cnt: number of @slave entries |
@@ -448,7 +448,7 @@ struct omap_hwmod { | |||
448 | struct omap_hwmod_class *class; | 448 | struct omap_hwmod_class *class; |
449 | struct omap_device *od; | 449 | struct omap_device *od; |
450 | struct omap_hwmod_irq_info *mpu_irqs; | 450 | struct omap_hwmod_irq_info *mpu_irqs; |
451 | struct omap_hwmod_dma_info *sdma_chs; | 451 | struct omap_hwmod_dma_info *sdma_reqs; |
452 | union { | 452 | union { |
453 | struct omap_hwmod_omap2_prcm omap2; | 453 | struct omap_hwmod_omap2_prcm omap2; |
454 | struct omap_hwmod_omap4_prcm omap4; | 454 | struct omap_hwmod_omap4_prcm omap4; |
@@ -468,7 +468,7 @@ struct omap_hwmod { | |||
468 | u8 msuspendmux_shift; | 468 | u8 msuspendmux_shift; |
469 | u8 response_lat; | 469 | u8 response_lat; |
470 | u8 mpu_irqs_cnt; | 470 | u8 mpu_irqs_cnt; |
471 | u8 sdma_chs_cnt; | 471 | u8 sdma_reqs_cnt; |
472 | u8 opt_clks_cnt; | 472 | u8 opt_clks_cnt; |
473 | u8 masters_cnt; | 473 | u8 masters_cnt; |
474 | u8 slaves_cnt; | 474 | u8 slaves_cnt; |