]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: dm: Fixed/Added DM driver listing subcommands
authorNiel Fourie <lusus@denx.de>
Tue, 24 Mar 2020 15:17:05 +0000 (16:17 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 7 Jul 2020 19:37:13 +0000 (15:37 -0400)
commit2e48836895d1246b40f7e166695651882e7bb68c
tree1289750f7a2c95b83cc00066487a62ecb9f91a53
parent2280fa56a00a63bbabc2076330367ec2863a474b
cmd: dm: Fixed/Added DM driver listing subcommands

Renamed dm "drivers" subcommand to "compat" (as it listed
compatibility strings) and prevent it from segfaulting when
drivers have no of_match populated.

Added a new "drivers" subcommand to dump a list of all known DM
drivers and for each, their uclass id, uclass driver and names of
attached devices.

Added a new "static" subcommand to dump a list of DM drivers with
statically defined platform data.

Signed-off-by: Niel Fourie <lusus@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/dm.c
drivers/core/dump.c
include/dm/util.h
test/py/tests/test_dm.py