diff options
author | Olof Johansson <olof@lixom.net> | 2012-10-04 23:17:25 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-10-04 23:17:25 -0400 |
commit | 54d69df5849ec2e660aa12ac75562618c10fb499 (patch) | |
tree | adbfb8bcc7cc73b83bf2b784fa331911ba03573a /arch/arm/mach-omap2/omap_hwmod.c | |
parent | ad932bb6b549722a561fb31ac2fa50dcbcb3e36b (diff) | |
parent | 46f2007c1efadfa4071c17e75f140c47f09293de (diff) |
Merge branch 'late/kirkwood' into late/soc
Merge in the late Kirkwood branch with the OMAP late branch for upstream
submission.
Final contents described in shared tag.
Fixup remove/change conflicts in arch/arm/mach-omap2/devices.c and
drivers/spi/spi-omap2-mcspi.c.
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod.c')
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index 6af64bbd9e1d..299ca2821ad1 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c | |||
@@ -3403,6 +3403,33 @@ int omap_hwmod_fill_resources(struct omap_hwmod *oh, struct resource *res) | |||
3403 | } | 3403 | } |
3404 | 3404 | ||
3405 | /** | 3405 | /** |
3406 | * omap_hwmod_fill_dma_resources - fill struct resource array with dma data | ||
3407 | * @oh: struct omap_hwmod * | ||
3408 | * @res: pointer to the array of struct resource to fill | ||
3409 | * | ||
3410 | * Fill the struct resource array @res with dma resource data from the | ||
3411 | * omap_hwmod @oh. Intended to be called by code that registers | ||
3412 | * omap_devices. See also omap_hwmod_count_resources(). Returns the | ||
3413 | * number of array elements filled. | ||
3414 | */ | ||
3415 | int omap_hwmod_fill_dma_resources(struct omap_hwmod *oh, struct resource *res) | ||
3416 | { | ||
3417 | int i, sdma_reqs_cnt; | ||
3418 | int r = 0; | ||
3419 | |||
3420 | sdma_reqs_cnt = _count_sdma_reqs(oh); | ||
3421 | for (i = 0; i < sdma_reqs_cnt; i++) { | ||
3422 | (res + r)->name = (oh->sdma_reqs + i)->name; | ||
3423 | (res + r)->start = (oh->sdma_reqs + i)->dma_req; | ||
3424 | (res + r)->end = (oh->sdma_reqs + i)->dma_req; | ||
3425 | (res + r)->flags = IORESOURCE_DMA; | ||
3426 | r++; | ||
3427 | } | ||
3428 | |||
3429 | return r; | ||
3430 | } | ||
3431 | |||
3432 | /** | ||
3406 | * omap_hwmod_get_resource_byname - fetch IP block integration data by name | 3433 | * omap_hwmod_get_resource_byname - fetch IP block integration data by name |
3407 | * @oh: struct omap_hwmod * to operate on | 3434 | * @oh: struct omap_hwmod * to operate on |
3408 | * @type: one of the IORESOURCE_* constants from include/linux/ioport.h | 3435 | * @type: one of the IORESOURCE_* constants from include/linux/ioport.h |