Skip to contentSkip to conversation

mailbox: add for Phytium SoCs

PATCH New Wang Honghui 1 participant 1 message Dec 9, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mailbox: add for Phytium SoCs

Add mailbox for Phytium SoC family.

---
 arch/arm64/Kconfig.platforms      |  10 +-
 drivers/mailbox/Kconfig           |   6 +
 drivers/mailbox/Makefile          |   2 +
 drivers/mailbox/phytium_mailbox.c | 193 ++++++++++++++++++++++++++++++
 4 files changed, 206 insertions(+), 5 deletions(-)
 create mode 100644 drivers/mailbox/phytium_mailbox.c
arch/arm64/Kconfig.platforms +5 -5
index 7e8b17855eb7..efdb66ed131c 100644
@@ -236,11 +236,6 @@ config ARCH_NPCM
 	  General support for NPCM8xx BMC (Arbel).
 	  Nuvoton NPCM8xx BMC based on the Cortex A35.
 
-config ARCH_PHYTIUM
-        bool "Phytium SoC Family"
-        help
-          This enables support for Phytium ARMv8 SoC family.
-
 config ARCH_QCOM
 	bool "Qualcomm Platforms"
 	select GPIOLIB
@@ -248,6 +243,11 @@ config ARCH_QCOM
 	help
 	  This enables support for the ARMv8 based Qualcomm chipsets.
 
+config ARCH_PHYTIUM
+        bool "Phytium SoC Family"
+        help
+          This enables support for Phytium ARMv8 SoC family.
+
 config ARCH_REALTEK
 	bool "Realtek Platforms"
 	select RESET_CONTROLLER
drivers/mailbox/Kconfig +6 -0
index 05d6fae800e3..ae5ec83d9cbd 100644
@@ -41,6 +41,12 @@ config IMX_MBOX
 	help
 	  Mailbox implementation for i.MX Messaging Unit (MU).
 
+config PHYTIUM_MBOX
+        tristate "Phytium SoC Mailbox Support"
+        depends on ARCH_PHYTIUM || COMPILE_TEST
+        help
+          This driver provides the support for the Phytium mailbox controller.
+
 config PLATFORM_MHU
 	tristate "Platform MHU Mailbox"
 	depends on OF
drivers/mailbox/Makefile +2 -0
index fc9376117111..e46cb9b29369 100644
@@ -11,6 +11,8 @@ obj-$(CONFIG_ARM_MHU_V2)	+= arm_mhuv2.o
 
 obj-$(CONFIG_IMX_MBOX)	+= imx-mailbox.o
 
+obj-$(CONFIG_PHYTIUM_MBOX)      += phytium_mailbox.o
+
 obj-$(CONFIG_ARMADA_37XX_RWTM_MBOX)	+= armada-37xx-rwtm-mailbox.o
 
 obj-$(CONFIG_PLATFORM_MHU)	+= platform_mhu.o
drivers/mailbox/phytium_mailbox.c new file +193 -0

193 lines not on this page · raw message

Signature · 1 line
2.34.1