mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-10 23:03:29 +09:00
![Simon Glass](/assets/img/avatar_default.png)
At present only root nodes in the device tree are scanned for devices. But some devices can have children. For example a SPI bus may have several children for each of its chip selects. Add a function which scans subnodes and binds devices for each one. This can be used for the root node scan also, so change it. A device can call this function in its bind() or probe() methods to bind its children. Signed-off-by: Simon Glass <sjg@chromium.org>
22 lines
567 B
Makefile
22 lines
567 B
Makefile
#
|
|
# Copyright (c) 2013 Google, Inc
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
|
|
obj-$(CONFIG_CMD_DM) += cmd_dm.o
|
|
obj-$(CONFIG_DM_TEST) += bus.o
|
|
obj-$(CONFIG_DM_TEST) += test-driver.o
|
|
obj-$(CONFIG_DM_TEST) += test-fdt.o
|
|
obj-$(CONFIG_DM_TEST) += test-main.o
|
|
obj-$(CONFIG_DM_TEST) += test-uclass.o
|
|
obj-$(CONFIG_DM_TEST) += ut.o
|
|
|
|
# Tests for particular subsystems - when enabling driver model for a new
|
|
# subsystem you must add sandbox tests here.
|
|
obj-$(CONFIG_DM_TEST) += core.o
|
|
obj-$(CONFIG_DM_TEST) += ut.o
|
|
ifneq ($(CONFIG_SANDBOX),)
|
|
obj-$(CONFIG_DM_GPIO) += gpio.o
|
|
endif
|