diff options
author | Hema Kalliguddi <hemahk@ti.com> | 2010-09-29 12:26:39 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2010-12-01 03:56:33 -0500 |
commit | fcf173e4511193b1efeccb0f22a8c641b464353b (patch) | |
tree | a5cc4b3e560d857513a6684ed307b04a492b9670 /arch/blackfin/mach-bf548 | |
parent | ea65df57c2eea803535a071752efb030c46a11f5 (diff) |
usb: musb: add names for IRQs in structure resource
Soon resource data will get automatically
populated from a set of autogenerated data
from TI's hardware database for the OMAP
platform.
Such database, might not have resources at
the expected order by the current drivers.
While we could hack in some exceptions to
that tool to generate resources in a specific
order, it seems less fragile to use the
resource name instead. That way, no matter
what order the resources are generated, the
driver still work.
Modified the OMAP, Blackfin and Davinci
architecture files to add the name of the IRQs
in the resource structures and musb driver to
use the platform_get_irq_byname() api to get
the device and dma irq numbers instead of using
the index.
Cc: Tony Lindgren <tony@atomide.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Hema HK <hemahk@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'arch/blackfin/mach-bf548')
-rw-r--r-- | arch/blackfin/mach-bf548/boards/cm_bf548.c | 2 | ||||
-rw-r--r-- | arch/blackfin/mach-bf548/boards/ezkit.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf548/boards/cm_bf548.c b/arch/blackfin/mach-bf548/boards/cm_bf548.c index f0c0eef95ba8..3e3dfb23f94e 100644 --- a/arch/blackfin/mach-bf548/boards/cm_bf548.c +++ b/arch/blackfin/mach-bf548/boards/cm_bf548.c | |||
@@ -482,11 +482,13 @@ static struct resource musb_resources[] = { | |||
482 | .start = IRQ_USB_INT0, | 482 | .start = IRQ_USB_INT0, |
483 | .end = IRQ_USB_INT0, | 483 | .end = IRQ_USB_INT0, |
484 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, | 484 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, |
485 | .name = "mc" | ||
485 | }, | 486 | }, |
486 | [2] = { /* DMA IRQ */ | 487 | [2] = { /* DMA IRQ */ |
487 | .start = IRQ_USB_DMA, | 488 | .start = IRQ_USB_DMA, |
488 | .end = IRQ_USB_DMA, | 489 | .end = IRQ_USB_DMA, |
489 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, | 490 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, |
491 | .name = "dma" | ||
490 | }, | 492 | }, |
491 | }; | 493 | }; |
492 | 494 | ||
diff --git a/arch/blackfin/mach-bf548/boards/ezkit.c b/arch/blackfin/mach-bf548/boards/ezkit.c index 216e26999af9..9ff166d6f00d 100644 --- a/arch/blackfin/mach-bf548/boards/ezkit.c +++ b/arch/blackfin/mach-bf548/boards/ezkit.c | |||
@@ -587,11 +587,13 @@ static struct resource musb_resources[] = { | |||
587 | .start = IRQ_USB_INT0, | 587 | .start = IRQ_USB_INT0, |
588 | .end = IRQ_USB_INT0, | 588 | .end = IRQ_USB_INT0, |
589 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, | 589 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, |
590 | .name = "mc" | ||
590 | }, | 591 | }, |
591 | [2] = { /* DMA IRQ */ | 592 | [2] = { /* DMA IRQ */ |
592 | .start = IRQ_USB_DMA, | 593 | .start = IRQ_USB_DMA, |
593 | .end = IRQ_USB_DMA, | 594 | .end = IRQ_USB_DMA, |
594 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, | 595 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, |
596 | .name = "dma" | ||
595 | }, | 597 | }, |
596 | }; | 598 | }; |
597 | 599 | ||