]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/rpmsg.git/commit
irqchip/irq-pruss-intc: Use macros for operations on CMR and HMR
authorSuman Anna <s-anna@ti.com>
Fri, 28 Jun 2019 17:03:41 +0000 (12:03 -0500)
committerSuman Anna <s-anna@ti.com>
Mon, 1 Jul 2019 16:48:02 +0000 (11:48 -0500)
commit57c76b3f28042138bf92c203a3db576a66aab5cc
tree308ce5a1dd205c1474158004cdd3803a6c191580
parent26e32f353dbba8235ca36b6d0a4f931d241bbe17
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>
drivers/irqchip/irq-pruss-intc.c