Skip to content

Commit

Permalink
WIP: nvme-apple: add initial Apple SoC NVMe driver
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Peter <sven@svenpeter.dev>
  • Loading branch information
svenpeter42 authored and marcan committed Jan 18, 2022
1 parent a66c5af commit 4af7494
Show file tree
Hide file tree
Showing 4 changed files with 1,470 additions and 0 deletions.
1 change: 1 addition & 0 deletions MAINTAINERS
Expand Up @@ -1779,6 +1779,7 @@ F: drivers/i2c/busses/i2c-pasemi-core.c
F: drivers/i2c/busses/i2c-pasemi-platform.c
F: drivers/irqchip/irq-apple-aic.c
F: drivers/mailbox/apple-mailbox.c
F: drivers/nvme/host/apple.c
F: drivers/pinctrl/pinctrl-apple-gpio.c
F: drivers/soc/apple/*
F: drivers/watchdog/apple_wdt.c
Expand Down
12 changes: 12 additions & 0 deletions drivers/nvme/host/Kconfig
Expand Up @@ -83,3 +83,15 @@ config NVME_TCP
from https://github.com/linux-nvme/nvme-cli.

If unsure, say N.

config NVME_APPLE
tristate "Apple ANS2 NVM Express host driver"
depends on OF && BLOCK
depends on (APPLE_RTKIT && APPLE_SART && ARCH_APPLE) || COMPILE_TEST
select NVME_CORE
help
This provides support for the NVMe controller embedded in Apple SoCs
such as the M1.

To compile this driver as a module, choose M here: the
module will be called nvme-apple.
3 changes: 3 additions & 0 deletions drivers/nvme/host/Makefile
Expand Up @@ -8,6 +8,7 @@ obj-$(CONFIG_NVME_FABRICS) += nvme-fabrics.o
obj-$(CONFIG_NVME_RDMA) += nvme-rdma.o
obj-$(CONFIG_NVME_FC) += nvme-fc.o
obj-$(CONFIG_NVME_TCP) += nvme-tcp.o
obj-$(CONFIG_NVME_APPLE) += nvme-apple.o

nvme-core-y := core.o ioctl.o
nvme-core-$(CONFIG_TRACING) += trace.o
Expand All @@ -25,3 +26,5 @@ nvme-rdma-y += rdma.o
nvme-fc-y += fc.o

nvme-tcp-y += tcp.o

nvme-apple-y += apple.o

0 comments on commit 4af7494

Please sign in to comment.