diff options
| author | Tom Rini <[email protected]> | 2016-07-27 22:30:20 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2016-07-27 22:30:20 -0400 |
| commit | fe34b6a4845476208ca7d19a35179e56bebf3877 (patch) | |
| tree | 05643ac1448012bbb7514dd04526168737c86b58 /include/dm | |
| parent | c6f086ddcbfb47918b82f6a135c61f432540da42 (diff) | |
| parent | 02ebd42cf19e523593d8e4e8f3d02083299fcdbb (diff) | |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'include/dm')
| -rw-r--r-- | include/dm/device.h | 16 | ||||
| -rw-r--r-- | include/dm/uclass-id.h | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/include/dm/device.h b/include/dm/device.h index 705849b228c..babf8ac8f07 100644 --- a/include/dm/device.h +++ b/include/dm/device.h @@ -612,6 +612,22 @@ static inline bool device_is_on_pci_bus(struct udevice *dev) #define device_foreach_child_safe(pos, next, parent) \ list_for_each_entry_safe(pos, next, &parent->child_head, sibling_node) +/** + * dm_scan_fdt_dev() - Bind child device in a the device tree + * + * This handles device which have sub-nodes in the device tree. It scans all + * sub-nodes and binds drivers for each node where a driver can be found. + * + * If this is called prior to relocation, only pre-relocation devices will be + * bound (those marked with u-boot,dm-pre-reloc in the device tree, or where + * the driver has the DM_FLAG_PRE_RELOC flag set). Otherwise, all devices will + * be bound. + * + * @dev: Device to scan + * @return 0 if OK, -ve on error + */ +int dm_scan_fdt_dev(struct udevice *dev); + /* device resource management */ typedef void (*dr_release_t)(struct udevice *dev, void *res); typedef int (*dr_match_t)(struct udevice *dev, void *res, void *match_data); diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h index c5cdfc79d10..eb78c4dac48 100644 --- a/include/dm/uclass-id.h +++ b/include/dm/uclass-id.h @@ -59,6 +59,7 @@ enum uclass_id { UCLASS_PINCTRL, /* Pinctrl (pin muxing/configuration) device */ UCLASS_PMIC, /* PMIC I/O device */ UCLASS_PWM, /* Pulse-width modulator */ + UCLASS_POWER_DOMAIN, /* (SoC) Power domains */ UCLASS_PWRSEQ, /* Power sequence device */ UCLASS_RAM, /* RAM controller */ UCLASS_REGULATOR, /* Regulator device */ |
