author | Suman Anna <s-anna@ti.com> | |
Fri, 28 Jun 2019 17:03:41 +0000 (12:03 -0500) | ||
committer | Suman Anna <s-anna@ti.com> | |
Mon, 1 Jul 2019 16:48:02 +0000 (11:48 -0500) | ||
commit | 57c76b3f28042138bf92c203a3db576a66aab5cc | |
tree | 308ce5a1dd205c1474158004cdd3803a6c191580 | tree | snapshot (tar.xz tar.gz zip) |
parent | 26e32f353dbba8235ca36b6d0a4f931d241bbe17 | commit | diff |
irqchip/irq-pruss-intc: Use macros for operations on CMR and HMR
The PRUSS INTC configuration code is currently using hard-coded numbers
directly for performing arithmatic operations on the Channel Map Registers
(CMRs) and Host Interrupt Map Registers (HMRs). Introduce and replace
these numbers with human readable macros.
While at this, use the modulo operator instead of bitwise-and for
the bit offset computation for the events and channels in CMR and
HMR registers.
Signed-off-by: Suman Anna <s-anna@ti.com>
The PRUSS INTC configuration code is currently using hard-coded numbers
directly for performing arithmatic operations on the Channel Map Registers
(CMRs) and Host Interrupt Map Registers (HMRs). Introduce and replace
these numbers with human readable macros.
While at this, use the modulo operator instead of bitwise-and for
the bit offset computation for the events and channels in CMR and
HMR registers.
Signed-off-by: Suman Anna <s-anna@ti.com>
drivers/irqchip/irq-pruss-intc.c | diff | blob | history |