Commit d85429a3 authored by Magnus Damm's avatar Magnus Damm Committed by Paul Mundt

sh: extend INTC with force_disable

Extend the shared INTC code with force_disable support to
allow keeping mask bits statically disabled. Needed for
SDHI support to mask out unsupported interrupt sources.
Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 92e1f9a7
...@@ -851,6 +851,9 @@ void __init register_intc_controller(struct intc_desc *desc) ...@@ -851,6 +851,9 @@ void __init register_intc_controller(struct intc_desc *desc)
d->chip.mask_ack = intc_mask_ack; d->chip.mask_ack = intc_mask_ack;
} }
/* disable bits matching force_disable before registering irqs */
if (desc->force_disable)
intc_enable_disable_enum(desc, d, desc->force_disable, 0);
/* disable bits matching force_enable before registering irqs */ /* disable bits matching force_enable before registering irqs */
if (desc->force_enable) if (desc->force_enable)
......
...@@ -72,6 +72,7 @@ struct intc_hw_desc { ...@@ -72,6 +72,7 @@ struct intc_hw_desc {
struct intc_desc { struct intc_desc {
char *name; char *name;
intc_enum force_enable; intc_enum force_enable;
intc_enum force_disable;
struct intc_hw_desc hw; struct intc_hw_desc hw;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment