]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
platform: Add ARM64 platform directory
authorNikita Travkin <nikita@trvn.ru>
Fri, 15 Mar 2024 13:51:16 +0000 (18:51 +0500)
committerHans de Goede <hdegoede@redhat.com>
Mon, 25 Mar 2024 14:48:04 +0000 (15:48 +0100)
Some ARM64 based laptops and computers require vendor/board specific
drivers for their embedded controllers. Even though usually the most
important functionality of those devices is implemented inside ACPI,
unfortunately Linux doesn't currently have great support for ACPI on
platforms like Qualcomm Snapdragon that are used in most ARM64 laptops
today. Instead Linux relies on Device Tree for Qualcomm based devices
and it's significantly easier to reimplement the EC functionality in
a dedicated driver than to make use of ACPI code.

This commit introduces a new platform/arm64 subdirectory to give a
place to such drivers for EC-like devices.

A new MAINTAINERS entry is added for this directory. Patches to files in
this directory will be taken up by the platform-drivers-x86 team (i.e.
Hans de Goede and Ilpo Järvinen) with additional review from Bryan
O'Donoghue to represent ARM64 maintainers.

Signed-off-by: Nikita Travkin <nikita@trvn.ru>
Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240315-aspire1-ec-v5-2-f93381deff39@trvn.ru
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
MAINTAINERS
drivers/platform/Kconfig
drivers/platform/Makefile
drivers/platform/arm64/Kconfig [new file with mode: 0644]
drivers/platform/arm64/Makefile [new file with mode: 0644]

index aa3b947fb0801dc9de9365c1d61ca4a0733431d2..74a93c0b816b92502b50cec7afa1ed5194882f4c 100644 (file)
@@ -3051,6 +3051,16 @@ F:       drivers/mmc/host/sdhci-of-arasan.c
 N:     zynq
 N:     xilinx
 
+ARM64 PLATFORM DRIVERS
+M:     Hans de Goede <hdegoede@redhat.com>
+M:     Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
+R:     Bryan O'Donoghue <bryan.odonoghue@linaro.org>
+L:     platform-driver-x86@vger.kernel.org
+S:     Maintained
+Q:     https://patchwork.kernel.org/project/platform-driver-x86/list/
+T:     git git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git
+F:     drivers/platform/arm64/
+
 ARM64 PORT (AARCH64 ARCHITECTURE)
 M:     Catalin Marinas <catalin.marinas@arm.com>
 M:     Will Deacon <will@kernel.org>
index 868b20361769c37048ef58392d9aae43abcaf021..81a298517df2db2041c7dae30604322b0258f098 100644 (file)
@@ -14,3 +14,5 @@ source "drivers/platform/olpc/Kconfig"
 source "drivers/platform/surface/Kconfig"
 
 source "drivers/platform/x86/Kconfig"
+
+source "drivers/platform/arm64/Kconfig"
index 41640172975a795df917a824d0608e356588c925..fbbe4f77aa5d7df866b40862c1a7035373cfc094 100644 (file)
@@ -11,3 +11,4 @@ obj-$(CONFIG_OLPC_EC)         += olpc/
 obj-$(CONFIG_GOLDFISH)         += goldfish/
 obj-$(CONFIG_CHROME_PLATFORMS) += chrome/
 obj-$(CONFIG_SURFACE_PLATFORMS)        += surface/
+obj-$(CONFIG_ARM64)            += arm64/
diff --git a/drivers/platform/arm64/Kconfig b/drivers/platform/arm64/Kconfig
new file mode 100644 (file)
index 0000000..644b83e
--- /dev/null
@@ -0,0 +1,19 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# EC-like Drivers for aarch64 based devices.
+#
+
+menuconfig ARM64_PLATFORM_DEVICES
+       bool "ARM64 Platform-Specific Device Drivers"
+       depends on ARM64 || COMPILE_TEST
+       default y
+       help
+         Say Y here to get to see options for platform-specific device drivers
+         for arm64 based devices, primarily EC-like device drivers.
+         This option alone does not add any kernel code.
+
+         If you say N, all options in this submenu will be skipped and disabled.
+
+if ARM64_PLATFORM_DEVICES
+
+endif # ARM64_PLATFORM_DEVICES
diff --git a/drivers/platform/arm64/Makefile b/drivers/platform/arm64/Makefile
new file mode 100644 (file)
index 0000000..f91cdc7
--- /dev/null
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Makefile for linux/drivers/platform/arm64
+#
+# This dir should only include drivers for EC-like devices.
+#