Skip to content

Commit

Permalink
ARM: shmobile: add gic_iid macro for ICCIAR / interrupt ID
Browse files Browse the repository at this point in the history
R-Car H1 datasheet GIC number is indicating
GIC ICCIAR / interrupt ID number, not SPI number,
but current marzen board code is using gic_spi() with
un-understandable calculation.

This patch adds new gic_iid() macro which means
ICCIAR / interrupt ID, and used the number
currently written on datasheet.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
[ horms+renesas@verge.net.au: Split board-marzen.c portion into a separate patch ]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
  • Loading branch information
Kuninori Morimoto authored and Simon Horman committed Mar 12, 2013
1 parent 386e946 commit 652f945
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-shmobile/include/mach/irqs.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

/* GIC */
#define gic_spi(nr) ((nr) + 32)
#define gic_iid(nr) (nr) /* ICCIAR / interrupt ID */

/* INTCS */
#define INTCS_VECT_BASE 0x3400
Expand Down

0 comments on commit 652f945

Please sign in to comment.