summaryrefslogtreecommitdiff
path: root/include/dm
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-12-21 01:12:04 +0300
committerTom Rini <trini@konsulko.com>2021-12-21 01:12:04 +0300
commit4afab30caea3211032710c4298a8839d3254e7f7 (patch)
tree8318afb8810966aca9fe356dde316c155b7a33ce /include/dm
parente9d7888da845638f135046d53c25492a8c54e664 (diff)
parent734ad933766f0dbbeafe1b27211686940a5e6d16 (diff)
downloadu-boot-4afab30caea3211032710c4298a8839d3254e7f7.tar.xz
Merge tag 'v2022.01-rc4' into next
Prepare v2022.01-rc4
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/device.h8
-rw-r--r--include/dm/uclass-id.h3
2 files changed, 6 insertions, 5 deletions
diff --git a/include/dm/device.h b/include/dm/device.h
index daf28a0a45..544734ecb3 100644
--- a/include/dm/device.h
+++ b/include/dm/device.h
@@ -971,8 +971,8 @@ static inline bool device_is_on_pci_bus(const struct udevice *dev)
* @parent: parent device to scan
*/
#define device_foreach_child_of_to_plat(pos, parent) \
- for (int _ret = device_first_child_ofdata_err(parent, &dev); !_ret; \
- _ret = device_next_child_ofdata_err(&dev))
+ for (int _ret = device_first_child_ofdata_err(parent, &pos); !_ret; \
+ _ret = device_next_child_ofdata_err(&pos))
/**
* device_foreach_child_probe() - iterate through children, probing them
@@ -988,8 +988,8 @@ static inline bool device_is_on_pci_bus(const struct udevice *dev)
* @parent: parent device to scan
*/
#define device_foreach_child_probe(pos, parent) \
- for (int _ret = device_first_child_err(parent, &dev); !_ret; \
- _ret = device_next_child_err(&dev))
+ for (int _ret = device_first_child_err(parent, &pos); !_ret; \
+ _ret = device_next_child_err(&pos))
/**
* dm_scan_fdt_dev() - Bind child device in the device tree
diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h
index fd139b9b2a..0e26e1d138 100644
--- a/include/dm/uclass-id.h
+++ b/include/dm/uclass-id.h
@@ -48,7 +48,8 @@ enum uclass_id {
UCLASS_DMA, /* Direct Memory Access */
UCLASS_DSA, /* Distributed (Ethernet) Switch Architecture */
UCLASS_ECDSA, /* Elliptic curve cryptographic device */
- UCLASS_EFI, /* EFI managed devices */
+ UCLASS_EFI_LOADER, /* Devices created by UEFI applications */
+ UCLASS_EFI_MEDIA, /* Devices provided by UEFI firmware */
UCLASS_ETH, /* Ethernet device */
UCLASS_ETH_PHY, /* Ethernet PHY device */
UCLASS_FIRMWARE, /* Firmware */