Skip to content

Commit 363c8ae

Browse files
TravMuravjwrdegoede
authored andcommitted
platform: Add ARM64 platform directory
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>
1 parent 6c4d24d commit 363c8ae

File tree

5 files changed

+38
-0
lines changed

5 files changed

+38
-0
lines changed

MAINTAINERS

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3051,6 +3051,16 @@ F: drivers/mmc/host/sdhci-of-arasan.c
30513051
N: zynq
30523052
N: xilinx
30533053

3054+
ARM64 PLATFORM DRIVERS
3055+
M: Hans de Goede <hdegoede@redhat.com>
3056+
M: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
3057+
R: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
3058+
L: platform-driver-x86@vger.kernel.org
3059+
S: Maintained
3060+
Q: https://patchwork.kernel.org/project/platform-driver-x86/list/
3061+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git
3062+
F: drivers/platform/arm64/
3063+
30543064
ARM64 PORT (AARCH64 ARCHITECTURE)
30553065
M: Catalin Marinas <catalin.marinas@arm.com>
30563066
M: Will Deacon <will@kernel.org>

drivers/platform/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ source "drivers/platform/olpc/Kconfig"
1414
source "drivers/platform/surface/Kconfig"
1515

1616
source "drivers/platform/x86/Kconfig"
17+
18+
source "drivers/platform/arm64/Kconfig"

drivers/platform/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ obj-$(CONFIG_OLPC_EC) += olpc/
1111
obj-$(CONFIG_GOLDFISH) += goldfish/
1212
obj-$(CONFIG_CHROME_PLATFORMS) += chrome/
1313
obj-$(CONFIG_SURFACE_PLATFORMS) += surface/
14+
obj-$(CONFIG_ARM64) += arm64/

drivers/platform/arm64/Kconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
#
3+
# EC-like Drivers for aarch64 based devices.
4+
#
5+
6+
menuconfig ARM64_PLATFORM_DEVICES
7+
bool "ARM64 Platform-Specific Device Drivers"
8+
depends on ARM64 || COMPILE_TEST
9+
default y
10+
help
11+
Say Y here to get to see options for platform-specific device drivers
12+
for arm64 based devices, primarily EC-like device drivers.
13+
This option alone does not add any kernel code.
14+
15+
If you say N, all options in this submenu will be skipped and disabled.
16+
17+
if ARM64_PLATFORM_DEVICES
18+
19+
endif # ARM64_PLATFORM_DEVICES

drivers/platform/arm64/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
#
3+
# Makefile for linux/drivers/platform/arm64
4+
#
5+
# This dir should only include drivers for EC-like devices.
6+
#

0 commit comments

Comments
 (0)