]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: mvebu: Clean-up the Armada XP support
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Thu, 30 Oct 2014 11:39:41 +0000 (12:39 +0100)
committerJason Cooper <jason@lakedaemon.net>
Sat, 22 Nov 2014 02:13:24 +0000 (02:13 +0000)
This patch removes the unneeded include of the armada-370-xp.h header.

It also moves some declarations from this file into more accurate
places.

Finally, it also adds a comment explaining that we can't remove yet the
smp field in the dt machine struct due to backward compatibly of the
device tree.

In a few releases, when the old device tree will be obsolete, we will be
able to remove the smp field and then the armada-370-xp.h header.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Link: https://lkml.kernel.org/r/1414669184-16785-2-git-send-email-gregory.clement@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-mvebu/armada-370-xp.h
arch/arm/mach-mvebu/board-v7.c
arch/arm/mach-mvebu/coherency.c
arch/arm/mach-mvebu/cpu-reset.c
arch/arm/mach-mvebu/platsmp.c
arch/arm/mach-mvebu/pmsu.c
arch/arm/mach-mvebu/pmsu.h

index 84cd90d9b8609a1990fb4f2d0ce2a999740973fc..c55bbf81de0ec5a09f4c53e25ff5b3f12b8fabbd 100644 (file)
 #define __MACH_ARMADA_370_XP_H
 
 #ifdef CONFIG_SMP
-#include <linux/cpumask.h>
-
-#define ARMADA_XP_MAX_CPUS 4
-
 void armada_xp_secondary_startup(void);
 extern struct smp_operations armada_xp_smp_ops;
 #endif
 
-int armada_370_xp_pmsu_idle_enter(unsigned long deepidle);
-
 #endif /* __MACH_ARMADA_370_XP_H */
index d965d0c0ef2de9dfdda0760b7307feb090066a53..e15ead876a48a991bc4c820b692bd33fbe53f18f 100644 (file)
@@ -142,6 +142,11 @@ static const char * const armada_370_xp_dt_compat[] = {
 DT_MACHINE_START(ARMADA_370_XP_DT, "Marvell Armada 370/XP (Device Tree)")
        .l2c_aux_val    = 0,
        .l2c_aux_mask   = ~0,
+/*
+ * The following field (.smp) is still needed to ensure backward
+ * compatibility with old Device Trees that were not specifying the
+ * cpus enable-method property.
+ */
        .smp            = smp_ops(armada_xp_smp_ops),
        .init_machine   = mvebu_dt_init,
        .init_irq       = mvebu_init_irq,
index c18da36c75b199990d90375dda6e711c16d1104b..3585cb394e9b952388e4f26bfb5e950bfd0ad9eb 100644 (file)
@@ -33,7 +33,6 @@
 #include <asm/smp_plat.h>
 #include <asm/cacheflush.h>
 #include <asm/mach/map.h>
-#include "armada-370-xp.h"
 #include "coherency.h"
 #include "mvebu-soc-id.h"
 
index 60fb537870047d2850e8681a57e92f3e4a399460..4a2cadd6b48e218a30ebe44167a1173e4afb2f40 100644 (file)
@@ -15,7 +15,6 @@
 #include <linux/of_address.h>
 #include <linux/io.h>
 #include <linux/resource.h>
-#include "armada-370-xp.h"
 
 static void __iomem *cpu_reset_base;
 static size_t cpu_reset_size;
index 895dc373c8a1cce357d8ed93876ef5432673acdc..622315c185b2c1d6e346687926938eb16190748c 100644 (file)
@@ -30,6 +30,8 @@
 #include "pmsu.h"
 #include "coherency.h"
 
+#define ARMADA_XP_MAX_CPUS 4
+
 #define AXP_BOOTROM_BASE 0xfff00000
 #define AXP_BOOTROM_SIZE 0x100000
 
index bbd8664d1bacb2732ec58072d630e70d963904de..5af58927a56dcb0e11d7f638815b2f7fd995505e 100644 (file)
@@ -39,7 +39,6 @@
 #include <asm/suspend.h>
 #include <asm/tlbflush.h>
 #include "common.h"
-#include "armada-370-xp.h"
 
 
 #define PMSU_BASE_OFFSET    0x100
index 6b58c1fe2b0d8e07ec10480100fbd95ba9e716c6..e1eb4959a2d4f492db0250076b1d0d1e19f4cc19 100644 (file)
@@ -18,4 +18,5 @@ int mvebu_setup_boot_addr_wa(unsigned int crypto_eng_target,
 
 void mvebu_v7_pmsu_idle_exit(void);
 
+int armada_370_xp_pmsu_idle_enter(unsigned long deepidle);
 #endif /* __MACH_370_XP_PMSU_H */