summaryrefslogtreecommitdiff
path: root/include/dm
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@openbsd.org>2021-10-23 17:58:01 +0300
committerTom Rini <trini@konsulko.com>2021-10-31 15:46:44 +0300
commit40dbf03d7d2dd2b5516f797069e3ea830db6fecc (patch)
tree130f479f79def7c72f81cf6ffd834a0c9c2bf82e /include/dm
parentd73db3042734f8077a5866d9d60d2eeda685b2ec (diff)
downloadu-boot-40dbf03d7d2dd2b5516f797069e3ea830db6fecc.tar.xz
iommu: Add IOMMU uclass
This uclass is intended to manage IOMMUs on systems where the IOMMUs are not in bypass mode by default. In that case U-Boot cannot ignore the IOMMUs if it wants to use devices that need to do DMA and sit behind such an IOMMU. This initial IOMMU uclass implementation does not implement and device ops and is intended for IOMMUs that have a bypass mode that does not require address translation. Support for IOMMUs that do require address translation is planned and device ops will be defined when support for such IOMMUs will be added. Signed-off-by: Mark Kettenis <kettenis@openbsd.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/uclass-id.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h
index 3768432b68..fd139b9b2a 100644
--- a/include/dm/uclass-id.h
+++ b/include/dm/uclass-id.h
@@ -62,6 +62,7 @@ enum uclass_id {
UCLASS_I2C_MUX, /* I2C multiplexer */
UCLASS_I2S, /* I2S bus */
UCLASS_IDE, /* IDE device */
+ UCLASS_IOMMU, /* IOMMU */
UCLASS_IRQ, /* Interrupt controller */
UCLASS_KEYBOARD, /* Keyboard input device */
UCLASS_LED, /* Light-emitting diode (LED) */