When reading back the ICFG register we cannot know the polarity of the
configuration, just that it is level or edge.
Since falling edge and low level are invalid for SPIs we should assume
rising edge and high level (we have no better information for PPIs, so
it'll have to do).
We already assumed rising edge, switch to high level as well.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Julien Grall <julien.grall@linaro.org>
actual & edgebit ? "Edge" : "Level");
desc->arch.type = actual & edgebit ?
DT_IRQ_TYPE_EDGE_RISING :
- DT_IRQ_TYPE_LEVEL_LOW;
+ DT_IRQ_TYPE_LEVEL_HIGH;
}
/* Set target CPU mask (RAZ/WI on uniprocessor) */
actual & edgebit ? "Edge" : "Level");
desc->arch.type = actual & edgebit ?
DT_IRQ_TYPE_EDGE_RISING :
- DT_IRQ_TYPE_LEVEL_LOW;
+ DT_IRQ_TYPE_LEVEL_HIGH;
}
affinity = gicv3_mpidr_to_affinity(cpu);