@@ -1508,6 +1508,13 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git
F: arch/arm/mach-*/
F: arch/arm/plat-*/
+ARM/A64FX SOC SUPPORT
+M: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com>
+L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
+S: Maintained
+F: drivers/soc/fujitsu/
+F: include/uapi/linux/fujitsu_hpc_ioctl.h
+
ARM/ACTIONS SEMI ARCHITECTURE
M: Andreas Färber <afaerber@suse.de>
M: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
@@ -1,6 +1,11 @@
# SPDX-License-Identifier: GPL-2.0-only
menu "Platform selection"
+config ARCH_A64FX
+ bool "Fujitsu A64FX Platforms"
+ help
+ This enables support for Fujitsu A64FX SoC family.
+
config ARCH_ACTIONS
bool "Actions Semi Platforms"
select OWL_TIMER
@@ -7,6 +7,7 @@ source "drivers/soc/aspeed/Kconfig"
source "drivers/soc/atmel/Kconfig"
source "drivers/soc/bcm/Kconfig"
source "drivers/soc/fsl/Kconfig"
+source "drivers/soc/fujitsu/Kconfig"
source "drivers/soc/imx/Kconfig"
source "drivers/soc/ixp4xx/Kconfig"
source "drivers/soc/litex/Kconfig"
@@ -10,6 +10,7 @@ obj-y += bcm/
obj-$(CONFIG_ARCH_DOVE) += dove/
obj-$(CONFIG_MACH_DOVE) += dove/
obj-y += fsl/
+obj-y += fujitsu/
obj-$(CONFIG_ARCH_GEMINI) += gemini/
obj-y += imx/
obj-$(CONFIG_ARCH_IXP4XX) += ixp4xx/
new file mode 100644
@@ -0,0 +1,24 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# FUJITSU SoC drivers
+#
+menuconfig SOC_FUJITSU
+ bool "FUJITSU SoC drivers"
+ depends on ARCH_A64FX || COMPILE_TEST
+
+if SOC_FUJITSU
+
+config FUJITSU_HARDWARE_BARRIER
+ tristate "FUJITSU HPC Hardware Barrier Driver"
+ depends on ARM64_VHE || COMPILE_TEST
+ help
+ FUJITSU HPC Hardware Barrier Driver
+
+ This driver offers hardware barrier functions for A64FX system
+ which realizes synchronization by PEs in the same CMG (L3 cache
+ domain) by using implementation defined registers. As control
+ registers can only be accessed from EL2 on reset, this driver
+ needs support of VHE.
+ When built as a module, this will be called as "fujitsu_hwb".
+
+endif # SOC_FUJITSU
new file mode 100644
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0
+obj-$(CONFIG_FUJITSU_HARDWARE_BARRIER) += fujitsu_hwb.o
This adds kconfig/Makefile to build fujitsu hardware barrier driver (fujitsu_hwb.ko when built as module). Note that this is the first time to add A64FX specific driver, this also adds A64FX entry in Kconfig.platforms of arm64 Kconfig. Also add MAINTAINERS entry for ARM/A64FX accordingly. Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com> --- MAINTAINERS | 7 +++++++ arch/arm64/Kconfig.platforms | 5 +++++ drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/fujitsu/Kconfig | 24 ++++++++++++++++++++++++ drivers/soc/fujitsu/Makefile | 2 ++ 6 files changed, 40 insertions(+) create mode 100644 drivers/soc/fujitsu/Kconfig create mode 100644 drivers/soc/fujitsu/Makefile