]> git.baikalelectronics.ru Git - uboot.git/commit
nvme: Introduce driver ops
authorMark Kettenis <kettenis@openbsd.org>
Sat, 22 Jan 2022 19:38:15 +0000 (20:38 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 10 Feb 2022 21:44:23 +0000 (16:44 -0500)
commitcfbd9c1610656661eb8d0dbc0b60369321f6d079
tree36a193070d05633990c2d791914efb07b804c570
parent9448415ab4150ee179b91acc21b0b2bf68eed59d
nvme: Introduce driver ops

The NVMe storage controller integrated on Apple SoCs deviates
from the NVMe standard in two aspects.  It uses a "linear"
submission queue and it integrates an NVMMU that needs to be
programmed for each NVMe command.  Introduce driver ops such
that we can set up the linear submission queue and program the
NVMMU in the driver for this strange beast.

Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested on: Macbook Air M1
Tested-by: Simon Glass <sjg@chromium.org>
drivers/nvme/nvme.c
drivers/nvme/nvme.h