Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e698dad8 authored by Mitchel Humpherys's avatar Mitchel Humpherys
Browse files

ARM: dts: msm: Use macro definitions for interrupts for SMP2P



There are some preprocessor macros that represent the supported values
for the `interrupts' property.  Currently we're just hard-coding the
numerical values, which is hard to understand.  Fix this by using the
macros.

Change-Id: I835ac805a4cdc619eab354197faa3bfcc98bd02f
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent f5d3db32
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -9,13 +9,16 @@
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#include <dt-bindings/interrupt-controller/arm-gic.h>

&soc {
	qcom,smp2p-modem@9820010 {
		compatible = "qcom,smp2p";
		reg = <0x9820010 0x4>;
		qcom,remote-pid = <1>;
		qcom,irq-bitmask = <0x4000>;
		interrupts = <0 451 1>;
		interrupts = <GIC_SPI 451 IRQ_TYPE_EDGE_RISING>;
	};

	qcom,smp2p-adsp@9820010 {
@@ -23,7 +26,7 @@
		reg = <0x9820010 0x4>;
		qcom,remote-pid = <2>;
		qcom,irq-bitmask = <0x400>;
		interrupts = <0 158 1>;
		interrupts = <GIC_SPI 158 IRQ_TYPE_EDGE_RISING>;
	};

	qcom,smp2p-dsps@9820010 {
@@ -31,7 +34,7 @@
		reg = <0x9820010 0x4>;
		qcom,remote-pid = <3>;
		qcom,irq-bitmask = <0x4000000>;
		interrupts = <0 178 1>;
		interrupts = <GIC_SPI 178 IRQ_TYPE_EDGE_RISING>;
	};

	smp2pgpio_smp2p_15_in: qcom,smp2pgpio-smp2p-15-in {