OSDN Git Service

ARCv2: IDU-intc: Add support for edge-triggered interrupts
authorMischa Jonker <Mischa.Jonker@synopsys.com>
Wed, 24 Jul 2019 12:04:34 +0000 (14:04 +0200)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 26 Aug 2019 17:04:59 +0000 (22:34 +0530)
commit174ae4e96e0f54958cbe3fd3090a3cefeb63af4d
treef88520e09b92c603be965720d4df1a31da554e8b
parente86d94fdda8e11a2acbe0a910e82f7519f6088b7
ARCv2: IDU-intc: Add support for edge-triggered interrupts

This adds support for an optional extra interrupt cell to specify edge
vs level triggered. It is backward compatible with dts files with only
one cell, and will default to level-triggered in such a case.

Note that I had to make a change to idu_irq_set_affinity as well, as
this function was setting the interrupt type to "level" unconditionally,
since this was the only type supported previously.

Signed-off-by: Mischa Jonker <mischa.jonker@synopsys.com>
Reviewed-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/mcip.c
include/soc/arc/mcip.h