Skip to content

Commit

Permalink
memory: omap-gpmc: Implement IRQ domain for NAND IRQs
Browse files Browse the repository at this point in the history
GPMC provides 2 interrupts for NAND use. i.e. fifoevent and termcount.
Use IRQ domain for this. NAND device tree node can then
get the necessary interrupts by using gpmc as the interrupt parent.

Legacy boot uses gpmc_get_client_irq to get the
NAND interrupts from the GPMC IRQ domain.
Get rid of custom bitmasks and use IRQ domain for that
as well.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Roger Quadros committed Apr 15, 2016
1 parent 512d73d commit 384258f
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 115 deletions.
8 changes: 8 additions & 0 deletions Documentation/devicetree/bindings/bus/ti-gpmc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ Required properties:
bootloader) are used for the physical address decoding.
As this will change in the future, filling correct
values here is a requirement.
- interrupt-controller: The GPMC driver implements and interrupt controller for
the NAND events "fifoevent" and "termcount".
The interrupt number mapping is as follows
0 - NAND_fifoevent
1 - NAND_termcount
- interrupt-cells: Must be set to 2

Timing properties for child nodes. All are optional and default to 0.

Expand Down Expand Up @@ -130,6 +136,8 @@ Example for an AM33xx board:
#address-cells = <2>;
#size-cells = <1>;
ranges = <0 0 0x08000000 0x10000000>; /* CS0 @addr 0x8000000, size 0x10000000 */
interrupt-controller;
#interrupt-cells = <2>;

/* child nodes go here */
};
Loading

0 comments on commit 384258f

Please sign in to comment.