Frank Wille asked;
I suggest to extend our trigger types like this (powerpc/include/intr.h): ... ... support polarities as in the following example for the mpcsoc PIC:
How about using plain if-clauses there like;
if (i8259iswired && irq == 0)
x |= OPENPIC_POLARITY_POSITIVE; /* ISA style southbridge compat */
else if (type == IST_LEVEL_RISING || type == IST_LEVEL_HIGH)
x |= OPENPIC_POLARITY_POSITIVE;
else
x |= OPENPIC_POLARITY_NEGATIVE;
if (type == IST_EDGE_FALLING || type == IST_EDGE_RASING)
x |= OPENPIC_SENSE_EDGE;
else
x |= OPENPIC_SENSE_LEVEL;
Toru Nishimura / ALKYL Technology