ARM: Prepare Actions Semi S500
authorAndreas Färber <afaerber@suse.de>
Wed, 15 Feb 2017 10:03:22 +0000 (11:03 +0100)
committerAndreas Färber <afaerber@suse.de>
Wed, 21 Jun 2017 16:08:41 +0000 (18:08 +0200)
Add ARCH_ACTIONS and mach-actions/owl.c for "actions,s500".

Signed-off-by: Andreas Färber <afaerber@suse.de>
arch/arm/Kconfig
arch/arm/Makefile
arch/arm/mach-actions/Kconfig [new file with mode: 0644]
arch/arm/mach-actions/Makefile [new file with mode: 0644]
arch/arm/mach-actions/owl.c [new file with mode: 0644]

index 4c1a35f1583872d2ce39db5c1cacce28be48ccb1..869c3f98f7a2a843f1491957bf83d070c7ee941f 100644 (file)
@@ -711,6 +711,8 @@ config ARCH_VIRT
 #
 source "arch/arm/mach-mvebu/Kconfig"
 
+source "arch/arm/mach-actions/Kconfig"
+
 source "arch/arm/mach-alpine/Kconfig"
 
 source "arch/arm/mach-artpec/Kconfig"
index 65f4e2a4eb94df1351f0e8e746440b1867c4ae2c..47d3a1ab08d2491aff178040b309180226d131e8 100644 (file)
@@ -151,6 +151,7 @@ textofs-$(CONFIG_ARCH_AXXIA) := 0x00308000
 
 # Machine directory name.  This list is sorted alphanumerically
 # by CONFIG_* macro name.
+machine-$(CONFIG_ARCH_ACTIONS)         += actions
 machine-$(CONFIG_ARCH_ALPINE)          += alpine
 machine-$(CONFIG_ARCH_ARTPEC)          += artpec
 machine-$(CONFIG_ARCH_AT91)            += at91
diff --git a/arch/arm/mach-actions/Kconfig b/arch/arm/mach-actions/Kconfig
new file mode 100644 (file)
index 0000000..717adc1
--- /dev/null
@@ -0,0 +1,15 @@
+menuconfig ARCH_ACTIONS
+       bool "Actions Semi SoCs"
+       depends on ARCH_MULTI_V7
+       select ARM_AMBA
+       select ARM_GIC
+       select ARM_GLOBAL_TIMER
+       select CACHE_L2X0
+       select CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
+       select COMMON_CLK
+       select GENERIC_IRQ_CHIP
+       select HAVE_ARM_SCU if SMP
+       select HAVE_ARM_TWD if SMP
+       select OWL_TIMER
+       help
+         This enables support for the Actions Semiconductor S500 SoC family.
diff --git a/arch/arm/mach-actions/Makefile b/arch/arm/mach-actions/Makefile
new file mode 100644 (file)
index 0000000..561b0f3
--- /dev/null
@@ -0,0 +1 @@
+obj-y += owl.o
diff --git a/arch/arm/mach-actions/owl.c b/arch/arm/mach-actions/owl.c
new file mode 100644 (file)
index 0000000..4ac4a86
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2017 Andreas Färber
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+ * more details.
+ *
+ */
+
+#include <linux/of_platform.h>
+#include <asm/mach/arch.h>
+
+static const char * const owl_dt_compat[] = {
+       "actions,s500",
+       NULL
+};
+
+DT_MACHINE_START(OWL, "Actions Semi Owl platform")
+       .dt_compat      = owl_dt_compat,
+       .l2c_aux_val    = 0,
+       .l2c_aux_mask   = ~0,
+MACHINE_END