Skip to contentSkip to conversation

ARM: shmobile: r8a7794 SMP support

PATCH In review Gaku Inami 1 participant 1 message Mar 3, 2015

Subsystems (4)
lore
Share & tools
lore

Gaku Inami

author
#0 lore raw

PATCH 5/5 ARM: shmobile: r8a7794 SMP support

---
 arch/arm/mach-shmobile/Makefile        |    1 +
 arch/arm/mach-shmobile/r8a7794.h       |    2 ++
 arch/arm/mach-shmobile/setup-r8a7794.c |    2 ++
 arch/arm/mach-shmobile/smp-r8a7794.c   |   49 ++++++++++++++++++++++++++++++++
 4 files changed, 54 insertions(+)
 create mode 100644 arch/arm/mach-shmobile/smp-r8a7794.c
arch/arm/mach-shmobile/Makefile +1 -0
index cde95f8..50ed8c4 100644
@@ -39,6 +39,7 @@ smp-$(CONFIG_ARCH_SH73A0)	+= smp-sh73a0.o headsmp-scu.o platsmp-scu.o
 smp-$(CONFIG_ARCH_R8A7779)	+= smp-r8a7779.o headsmp-scu.o platsmp-scu.o
 smp-$(CONFIG_ARCH_R8A7790)	+= smp-r8a7790.o
 smp-$(CONFIG_ARCH_R8A7791)	+= smp-r8a7791.o
+smp-$(CONFIG_ARCH_R8A7794)	+= smp-r8a7794.o
 smp-$(CONFIG_ARCH_EMEV2)	+= smp-emev2.o headsmp-scu.o platsmp-scu.o
 
 # PM objects
arch/arm/mach-shmobile/r8a7794.h +2 -0
index b83d387..a1d71e6 100644
@@ -3,4 +3,6 @@
 
 void r8a7794_pm_init(void);
 
+extern struct smp_operations r8a7794_smp_ops;
+
 #endif /* __ASM_R8A7794_H__ */
arch/arm/mach-shmobile/setup-r8a7794.c +2 -0
index d2b0930..c6d5a23 100644
@@ -17,6 +17,7 @@
 #include <linux/of_platform.h>
 #include "common.h"
 #include "rcar-gen2.h"
+#include "r8a7794.h"
 #include <asm/mach/arch.h>
 
 static const char * const r8a7794_boards_compat_dt[] __initconst = {
@@ -25,6 +26,7 @@ static const char * const r8a7794_boards_compat_dt[] __initconst = {
 };
 
 DT_MACHINE_START(R8A7794_DT, "Generic R8A7794 (Flattened Device Tree)")
+	.smp		= smp_ops(r8a7794_smp_ops),
 	.init_early	= shmobile_init_delay,
 	.init_late	= shmobile_init_late,
 	.init_time	= rcar_gen2_timer_init,
arch/arm/mach-shmobile/smp-r8a7794.c new file +49 -0

49 lines not on this page · raw message

Signature · 1 line
1.7.9.5