]> git.sur5r.net Git - u-boot/commitdiff
dm: Display the sequence number for each device
authorSimon Glass <sjg@chromium.org>
Wed, 23 Jul 2014 12:55:13 +0000 (06:55 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 23 Jul 2014 13:07:25 +0000 (14:07 +0100)
Add this information to 'dm tree' and 'dm uclass' commands.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/dm/cmd_dm.c

index 93e525579d770d7c92ee257db3ef097091b70510..26980d209f4e8dede78d0d861f95a10ce0dd8232 100644 (file)
@@ -29,6 +29,8 @@ static void dm_display_line(struct udevice *dev, char *buf)
        printf("%s- %c %s @ %08lx", buf,
               dev->flags & DM_FLAG_ACTIVATED ? '*' : ' ',
               dev->name, (ulong)map_to_sysmem(dev));
+       if (dev->req_seq != -1)
+               printf(", %d", dev->req_seq);
        puts("\n");
 }