Skip to content

Commit 001f90c

Browse files
WhatAmISupposedToPutHerejannau
authored andcommitted
soc: apple: Add support for the PMP co-processor
This is the core part of a power management co-processor present on certain Apple SoCs. This driver starts the firmware, and uploads the configuration and calibration data by pretending to be IOKit. Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com>
1 parent 64d90e0 commit 001f90c

3 files changed

Lines changed: 450 additions & 0 deletions

File tree

drivers/soc/apple/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,18 @@ config APPLE_SEP
7575

7676
Say 'y' here if you have an Apple SoC.
7777

78+
config APPLE_PMP
79+
tristate "Apple Power Management Processor"
80+
depends on ARCH_APPLE || COMPILE_TEST
81+
depends on RUST
82+
select RUST_APPLE_RTKIT
83+
default y if ARCH_APPLE
84+
help
85+
A co-processor present on Apple SoCs, controlling power states of
86+
fabric and other uncore components.
87+
88+
Say 'y' here if you have an Apple SoC.
89+
7890
endmenu
7991

8092
endif

drivers/soc/apple/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ apple-sart-y = sart.o
1212
obj-$(CONFIG_APPLE_AOP) += aop.o
1313

1414
obj-$(CONFIG_APPLE_SEP) += sep.o
15+
16+
obj-$(CONFIG_APPLE_PMP) += pmp.o

0 commit comments

Comments
 (0)