-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: OMAP2/3: intc: Add DT support for TI interrupt controller
Add a function to initialize the OMAP2/3 interrupt controller (INTC) using a device tree node. This version take advantage of the new irq_domain_add_legacy API. Replace some printk() with the proper pr_ macro. Signed-off-by: Benoit Cousson <b-cousson@ti.com> Cc: Tony Lindgren <tony@atomide.com> Acked-by: Rob Herring <rob.herring@calxeda.com> Acked-by: Grant Likely <grant.likely@secretlab.ca>
- Loading branch information
Benoit Cousson
committed
Feb 27, 2012
1 parent
1f52299
commit 52fa212
Showing
3 changed files
with
89 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
* OMAP Interrupt Controller | ||
|
||
OMAP2/3 are using a TI interrupt controller that can support several | ||
configurable number of interrupts. | ||
|
||
Main node required properties: | ||
|
||
- compatible : should be: | ||
"ti,omap2-intc" | ||
- interrupt-controller : Identifies the node as an interrupt controller | ||
- #interrupt-cells : Specifies the number of cells needed to encode an | ||
interrupt source. The type shall be a <u32> and the value shall be 1. | ||
|
||
The cell contains the interrupt number in the range [0-128]. | ||
- ti,intc-size: Number of interrupts handled by the interrupt controller. | ||
- reg: physical base address and size of the intc registers map. | ||
|
||
Example: | ||
|
||
intc: interrupt-controller@1 { | ||
compatible = "ti,omap2-intc"; | ||
interrupt-controller; | ||
#interrupt-cells = <1>; | ||
ti,intc-size = <96>; | ||
reg = <0x48200000 0x1000>; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters