]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: mvebu: use CPU_METHOD_OF_DECLARE for SMP on Armada XP
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 14 Apr 2014 13:53:59 +0000 (15:53 +0200)
committerJason Cooper <jason@lakedaemon.net>
Thu, 8 May 2014 16:07:45 +0000 (16:07 +0000)
This commit adds the CPU_METHOD_OF_DECLARE declaration for the Armada
XP SMP operations. Note that the .smp_ops field of Armada XP
DT_MACHINE structure is kept, in order to ensure we remain compatible
with older Device Trees that do not include the "enable-method"
property for the CPUs.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Link: https://lkml.kernel.org/r/1397483648-26611-3-git-send-email-thomas.petazzoni@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Documentation/devicetree/bindings/arm/cpus.txt
arch/arm/mach-mvebu/platsmp.c

index 333f4aea30291e7a2882c8f2f67d1ec417307ef5..0dc59c36ad633049b34411aa1449f68ab27d6eea 100644 (file)
@@ -185,6 +185,7 @@ nodes to be present and contain the properties described below.
                            "qcom,gcc-msm8660"
                            "qcom,kpss-acc-v1"
                            "qcom,kpss-acc-v2"
+                           "marvell,armada-xp-smp"
 
        - cpu-release-addr
                Usage: required for systems that have an "enable-method"
index e98075f7175a67f1b6bda6f1d924c3a017f1a9ce..e01ae51bee56d785ba6041bd7e9eed4b7521ff58 100644 (file)
@@ -138,3 +138,6 @@ struct smp_operations armada_xp_smp_ops __initdata = {
        .cpu_die                = armada_xp_cpu_die,
 #endif
 };
+
+CPU_METHOD_OF_DECLARE(armada_xp_smp, "marvell,armada-xp-smp",
+                     &armada_xp_smp_ops);