diff options
author | Tero Kristo <t-kristo@ti.com> | 2011-12-16 14:36:59 -0700 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2011-12-16 14:36:59 -0700 |
commit | abc2d5456334d548328978d0b0d22c0e5d44cdcd (patch) | |
tree | e274951ab35883a19abbbdf2b497afe95dc88ae3 /arch/arm/plat-omap | |
parent | 13a3fe52f7525d7b327f1f6766826fe9668bd749 (diff) | |
download | linux-abc2d5456334d548328978d0b0d22c0e5d44cdcd.tar.gz linux-abc2d5456334d548328978d0b0d22c0e5d44cdcd.tar.bz2 linux-abc2d5456334d548328978d0b0d22c0e5d44cdcd.zip |
ARM: OMAP: hwmod: add support for selecting mpu_irq for each wakeup pad
By default all registered pads will trigger mpu_irqs[0]. Now there is
an API for selecting used mpu_irq on pad basis, which can be used to
trigger different irq handlers for different pads in the same hwmod.
Each pad that requires its interrupt to be re-routed this way must
have a separate call to omap_hwmod_pad_route_irq(hwmod, pad, irq).
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Kevin Hilman <khilman@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
[paul@pwsan.com: moved fn to omap_hwmod.c; separated fn from mux scan_wakeups
changes; added kerneldoc]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/include/plat/omap_hwmod.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/omap_hwmod.h b/arch/arm/plat-omap/include/plat/omap_hwmod.h index f7054926f4e7..ef4bf313fe74 100644 --- a/arch/arm/plat-omap/include/plat/omap_hwmod.h +++ b/arch/arm/plat-omap/include/plat/omap_hwmod.h @@ -605,6 +605,8 @@ int omap_hwmod_get_context_loss_count(struct omap_hwmod *oh); int omap_hwmod_no_setup_reset(struct omap_hwmod *oh); +int omap_hwmod_pad_route_irq(struct omap_hwmod *oh, int pad_idx, int irq_idx); + /* * Chip variant-specific hwmod init routines - XXX should be converted * to use initcalls once the initial boot ordering is straightened out |