]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/sunxi-nmi: Support sun6i-a31-r-intc compatible
authorChen-Yu Tsai <wens@csie.org>
Tue, 6 Jun 2017 05:59:28 +0000 (13:59 +0800)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 22 Jun 2017 13:08:17 +0000 (14:08 +0100)
commit27071ed45c2e2d5ce57cccb1d601720875c63a31
tree1422183d1c521332d38fb1d416554a16a8b3ee39
parent40c69c0f873f19252d2b5eff96acfedc83ea37a1
irqchip/sunxi-nmi: Support sun6i-a31-r-intc compatible

The R_INTC on the A31 is undocumented. It was previously supported
by the sun6i-a31-sc-nmi compatible. This compatible however required
the register region to start at the first used register, rather than
the boundaries laid out in the SoC's memory map. The new compatible
fixes the alignment, while also naming it properly.

Since the only difference between the old and new compatibles are
a fixed offset for the registers, and since the old one is deprecated,
this patch adds a set of register defines for the new compatible,
while modifying the old set to reference the new set minus a fixed
offset.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-sunxi-nmi.c