static int lpc_uclass_post_bind(struct udevice *bus) { /* * Scan the device tree for devices * * Before relocation, only bind devices marked for pre-relocation * use. */ return dm_scan_fdt_node(bus, gd->fdt_blob, bus->of_offset, gd->flags & GD_FLG_RELOC ? false : true); }
static int simple_bus_post_bind(struct udevice *dev) { u32 cell[3]; int ret; ret = fdtdec_get_int_array(gd->fdt_blob, dev->of_offset, "ranges", cell, ARRAY_SIZE(cell)); if (!ret) { struct simple_bus_plat *plat = dev_get_uclass_platdata(dev); plat->base = cell[0]; plat->target = cell[1]; plat->size = cell[2]; } return dm_scan_fdt_node(dev, gd->fdt_blob, dev->of_offset, false); }
static int at91_sckc_clk_bind(struct udevice *dev) { return dm_scan_fdt_node(dev, gd->fdt_blob, dev->of_offset, false); }
static int usb_hub_post_bind(struct udevice *dev) { /* Scan the bus for devices */ return dm_scan_fdt_node(dev, gd->fdt_blob, dev->of_offset, false); }
static int testbus_drv_probe(struct udevice *dev) { return dm_scan_fdt_node(dev, gd->fdt_blob, dev->of_offset, false); }
int dm_scan_fdt(const void *blob, bool pre_reloc_only) { return dm_scan_fdt_node(gd->dm_root, blob, 0, pre_reloc_only); }
int cros_ec_post_bind(struct udevice *dev) { /* Scan for available EC devices (e.g. I2C tunnel) */ return dm_scan_fdt_node(dev, gd->fdt_blob, dev->of_offset, false); }
static int pic32_pinctrl_bind(struct udevice *dev) { /* scan child GPIO banks */ return dm_scan_fdt_node(dev, gd->fdt_blob, dev->of_offset, false); }