aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregory CLEMENT <gregory.clement@free-electrons.com>2014-10-30 07:39:41 -0400
committerJason Cooper <jason@lakedaemon.net>2014-11-21 21:13:24 -0500
commit316fbbc400875c647c3a220c7525ffa8d2c80306 (patch)
tree0a97dc5acad7d340a16e098f2a638b636877a2ed
parente12f12ac1a3245d0f5d751de63d20d8dded03fc3 (diff)
ARM: mvebu: Clean-up the Armada XP support
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>
-rw-r--r--arch/arm/mach-mvebu/armada-370-xp.h6
-rw-r--r--arch/arm/mach-mvebu/board-v7.c5
-rw-r--r--arch/arm/mach-mvebu/coherency.c1
-rw-r--r--arch/arm/mach-mvebu/cpu-reset.c1
-rw-r--r--arch/arm/mach-mvebu/platsmp.c2
-rw-r--r--arch/arm/mach-mvebu/pmsu.c1
-rw-r--r--arch/arm/mach-mvebu/pmsu.h1
7 files changed, 8 insertions, 9 deletions
diff --git a/arch/arm/mach-mvebu/armada-370-xp.h b/arch/arm/mach-mvebu/armada-370-xp.h
index 84cd90d9b860..c55bbf81de0e 100644
--- a/arch/arm/mach-mvebu/armada-370-xp.h
+++ b/arch/arm/mach-mvebu/armada-370-xp.h
@@ -16,14 +16,8 @@
16#define __MACH_ARMADA_370_XP_H 16#define __MACH_ARMADA_370_XP_H
17 17
18#ifdef CONFIG_SMP 18#ifdef CONFIG_SMP
19#include <linux/cpumask.h>
20
21#define ARMADA_XP_MAX_CPUS 4
22
23void armada_xp_secondary_startup(void); 19void armada_xp_secondary_startup(void);
24extern struct smp_operations armada_xp_smp_ops; 20extern struct smp_operations armada_xp_smp_ops;
25#endif 21#endif
26 22
27int armada_370_xp_pmsu_idle_enter(unsigned long deepidle);
28
29#endif /* __MACH_ARMADA_370_XP_H */ 23#endif /* __MACH_ARMADA_370_XP_H */
diff --git a/arch/arm/mach-mvebu/board-v7.c b/arch/arm/mach-mvebu/board-v7.c
index d965d0c0ef2d..e15ead876a48 100644
--- a/arch/arm/mach-mvebu/board-v7.c
+++ b/arch/arm/mach-mvebu/board-v7.c
@@ -142,6 +142,11 @@ static const char * const armada_370_xp_dt_compat[] = {
142DT_MACHINE_START(ARMADA_370_XP_DT, "Marvell Armada 370/XP (Device Tree)") 142DT_MACHINE_START(ARMADA_370_XP_DT, "Marvell Armada 370/XP (Device Tree)")
143 .l2c_aux_val = 0, 143 .l2c_aux_val = 0,
144 .l2c_aux_mask = ~0, 144 .l2c_aux_mask = ~0,
145/*
146 * The following field (.smp) is still needed to ensure backward
147 * compatibility with old Device Trees that were not specifying the
148 * cpus enable-method property.
149 */
145 .smp = smp_ops(armada_xp_smp_ops), 150 .smp = smp_ops(armada_xp_smp_ops),
146 .init_machine = mvebu_dt_init, 151 .init_machine = mvebu_dt_init,
147 .init_irq = mvebu_init_irq, 152 .init_irq = mvebu_init_irq,
diff --git a/arch/arm/mach-mvebu/coherency.c b/arch/arm/mach-mvebu/coherency.c
index c18da36c75b1..3585cb394e9b 100644
--- a/arch/arm/mach-mvebu/coherency.c
+++ b/arch/arm/mach-mvebu/coherency.c
@@ -33,7 +33,6 @@
33#include <asm/smp_plat.h> 33#include <asm/smp_plat.h>
34#include <asm/cacheflush.h> 34#include <asm/cacheflush.h>
35#include <asm/mach/map.h> 35#include <asm/mach/map.h>
36#include "armada-370-xp.h"
37#include "coherency.h" 36#include "coherency.h"
38#include "mvebu-soc-id.h" 37#include "mvebu-soc-id.h"
39 38
diff --git a/arch/arm/mach-mvebu/cpu-reset.c b/arch/arm/mach-mvebu/cpu-reset.c
index 60fb53787004..4a2cadd6b48e 100644
--- a/arch/arm/mach-mvebu/cpu-reset.c
+++ b/arch/arm/mach-mvebu/cpu-reset.c
@@ -15,7 +15,6 @@
15#include <linux/of_address.h> 15#include <linux/of_address.h>
16#include <linux/io.h> 16#include <linux/io.h>
17#include <linux/resource.h> 17#include <linux/resource.h>
18#include "armada-370-xp.h"
19 18
20static void __iomem *cpu_reset_base; 19static void __iomem *cpu_reset_base;
21static size_t cpu_reset_size; 20static size_t cpu_reset_size;
diff --git a/arch/arm/mach-mvebu/platsmp.c b/arch/arm/mach-mvebu/platsmp.c
index 895dc373c8a1..622315c185b2 100644
--- a/arch/arm/mach-mvebu/platsmp.c
+++ b/arch/arm/mach-mvebu/platsmp.c
@@ -30,6 +30,8 @@
30#include "pmsu.h" 30#include "pmsu.h"
31#include "coherency.h" 31#include "coherency.h"
32 32
33#define ARMADA_XP_MAX_CPUS 4
34
33#define AXP_BOOTROM_BASE 0xfff00000 35#define AXP_BOOTROM_BASE 0xfff00000
34#define AXP_BOOTROM_SIZE 0x100000 36#define AXP_BOOTROM_SIZE 0x100000
35 37
diff --git a/arch/arm/mach-mvebu/pmsu.c b/arch/arm/mach-mvebu/pmsu.c
index bbd8664d1bac..5af58927a56d 100644
--- a/arch/arm/mach-mvebu/pmsu.c
+++ b/arch/arm/mach-mvebu/pmsu.c
@@ -39,7 +39,6 @@
39#include <asm/suspend.h> 39#include <asm/suspend.h>
40#include <asm/tlbflush.h> 40#include <asm/tlbflush.h>
41#include "common.h" 41#include "common.h"
42#include "armada-370-xp.h"
43 42
44 43
45#define PMSU_BASE_OFFSET 0x100 44#define PMSU_BASE_OFFSET 0x100
diff --git a/arch/arm/mach-mvebu/pmsu.h b/arch/arm/mach-mvebu/pmsu.h
index 6b58c1fe2b0d..e1eb4959a2d4 100644
--- a/arch/arm/mach-mvebu/pmsu.h
+++ b/arch/arm/mach-mvebu/pmsu.h
@@ -18,4 +18,5 @@ int mvebu_setup_boot_addr_wa(unsigned int crypto_eng_target,
18 18
19void mvebu_v7_pmsu_idle_exit(void); 19void mvebu_v7_pmsu_idle_exit(void);
20 20
21int armada_370_xp_pmsu_idle_enter(unsigned long deepidle);
21#endif /* __MACH_370_XP_PMSU_H */ 22#endif /* __MACH_370_XP_PMSU_H */