aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorAngeloGioacchino Del Regno <[email protected]>2022-11-28 10:22:16 +0100
committerMarc Zyngier <[email protected]>2022-11-28 11:43:56 +0000
commit45ac01959edcecfa5d6652c2397d3866e55b0da8 (patch)
treeb18e78caed19fbcb8979092794ab69b1e44f7532 /lib/mpi/mpiutil.c
parent85de640c6b89eb76fc314a3b451d054bedd5e9dc (diff)
irqchip/irq-mtk-cirq: Move register offsets to const array
In preparation to add support for new SoCs having a different register layout, add an enumeration that documents register offsets and move the definitions for the same to a u32 array; Selecting the right register offsets array is done by adding an of_device_id array containing all of the currently supported compatible strings pointing to the "v1" offsets array (as data): since no devicetree declares the `mediatek,mtk-cirq` compatible without a SoC-specific one, it wasn't necessary to provide any legacy fallback. Every usage of the aforemementioned definitions was changed to get a register address through a newly introduced `mtk_cirq_reg()` accessor. This change brings no functional changes. Signed-off-by: AngeloGioacchino Del Regno <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions