summaryrefslogtreecommitdiff
path: root/include/dm/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/dm/device.h')
-rw-r--r--include/dm/device.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/dm/device.h b/include/dm/device.h
index f3f953c9afc..e9460386ca9 100644
--- a/include/dm/device.h
+++ b/include/dm/device.h
@@ -165,6 +165,7 @@ enum {
* automatically when the device is removed / unbound
* @dma_offset: Offset between the physical address space (CPU's) and the
* device's bus address space
+ * @iommu: IOMMU device associated with this device
*/
struct udevice {
const struct driver *driver;
@@ -194,6 +195,9 @@ struct udevice {
#if CONFIG_IS_ENABLED(DM_DMA)
ulong dma_offset;
#endif
+#if CONFIG_IS_ENABLED(IOMMU)
+ struct udevice *iommu;
+#endif
};
static inline int dm_udevice_size(void)