Skip to content

Commit

Permalink
soc: apple: Add support for the AOP co-processor.
Browse files Browse the repository at this point in the history
This is the base device for a multi-function co-processor present
on certain Apple SoCs. On M-series Macs it is in charge of internal
microphones, and various environmental sensors.

Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com>
  • Loading branch information
WhatAmISupposedToPutHere authored and jannau committed Dec 21, 2024
1 parent 6fba218 commit df220a4
Show file tree
Hide file tree
Showing 5 changed files with 968 additions and 0 deletions.
12 changes: 12 additions & 0 deletions drivers/soc/apple/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@ config RUST_APPLE_RTKIT
depends on RUST
depends on APPLE_RTKIT

config APPLE_AOP
tristate "Apple \"Always-on\" Processor"
depends on ARCH_APPLE || COMPILE_TEST
depends on RUST
select RUST_APPLE_RTKIT
default m if ARCH_APPLE
help
A co-processor persent on certain Apple SoCs controlling accelerometers,
gyros, ambient light sensors and microphones. Is not actually always on.

Say 'y' here if you have an Apple laptop.

endmenu

endif
2 changes: 2 additions & 0 deletions drivers/soc/apple/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ apple-rtkit-y = rtkit.o rtkit-crashlog.o

obj-$(CONFIG_APPLE_SART) += apple-sart.o
apple-sart-y = sart.o

obj-$(CONFIG_APPLE_AOP) += aop.o
Loading

0 comments on commit df220a4

Please sign in to comment.