summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-02-03 06:01:09 -0700
committerSimon Glass <sjg@chromium.org>2021-03-22 19:23:27 +1300
commit074197aadfef2cfe437ecc1fe057ef21f4eef0da (patch)
treee3350a8c476333bca7e5a3dfd32fb8ec9f6e04c0 /drivers
parent1712f8b2b748ec96442e36d733d421a7ebaa1168 (diff)
downloadu-boot-074197aadfef2cfe437ecc1fe057ef21f4eef0da.tar.gz
u-boot-074197aadfef2cfe437ecc1fe057ef21f4eef0da.tar.bz2
u-boot-074197aadfef2cfe437ecc1fe057ef21f4eef0da.zip
dtoc: Assign a sequence number to each node
Now that we have the alias information we can assign a sequence number to each device in the uclass. Store this in the node associated with each device. This requires renaming the sandbox test drivers to have the right name. Note that test coverage is broken with this patch, but fixed in the next one. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/test_drv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/misc/test_drv.c b/drivers/misc/test_drv.c
index 827a50e954..a2a77d36bb 100644
--- a/drivers/misc/test_drv.c
+++ b/drivers/misc/test_drv.c
@@ -86,7 +86,7 @@ static const struct udevice_id testbus_ids[] = {
{ }
};
-U_BOOT_DRIVER(testbus_drv) = {
+U_BOOT_DRIVER(denx_u_boot_test_bus) = {
.name = "testbus_drv",
.of_match = testbus_ids,
.id = UCLASS_TEST_BUS,
@@ -160,7 +160,9 @@ static const struct udevice_id testfdt_ids[] = {
{ }
};
-U_BOOT_DRIVER(testfdt_drv) = {
+DM_DRIVER_ALIAS(denx_u_boot_fdt_test, google_another_fdt_test)
+
+U_BOOT_DRIVER(denx_u_boot_fdt_test) = {
.name = "testfdt_drv",
.of_match = testfdt_ids,
.id = UCLASS_TEST_FDT,