コード例 #1
0
ファイル: lpc-uclass.c プロジェクト: CZ-NIC/u-boot-turris
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);
}
コード例 #2
0
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);
}
コード例 #3
0
ファイル: sckc.c プロジェクト: eesuda/u-boot
static int at91_sckc_clk_bind(struct udevice *dev)
{
	return dm_scan_fdt_node(dev, gd->fdt_blob, dev->of_offset, false);
}
コード例 #4
0
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);
}
コード例 #5
0
ファイル: bus.c プロジェクト: DeviceSolutions/u-boot-opal6
static int testbus_drv_probe(struct udevice *dev)
{
	return dm_scan_fdt_node(dev, gd->fdt_blob, dev->of_offset, false);
}
コード例 #6
0
int dm_scan_fdt(const void *blob, bool pre_reloc_only)
{
	return dm_scan_fdt_node(gd->dm_root, blob, 0, pre_reloc_only);
}
コード例 #7
0
ファイル: cros_ec.c プロジェクト: CheezeCake/edison-u-boot
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);
}
コード例 #8
0
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);
}