diff options
author | Tom Rini <trini@konsulko.com> | 2021-04-15 13:11:19 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-04-15 13:11:19 -0400 |
commit | 45b3cf88da24206a6cb847efe837fddc120af3e8 (patch) | |
tree | 0c2054e1af2af9dc752205ec8ee003e4399045b5 /test/dm/of_extra.c | |
parent | b86772eda6033ea795e42f5463d436057919b6be (diff) | |
parent | 20830d0c01b5d82c916010b5dfdbe099ca1f0444 (diff) | |
download | u-boot-45b3cf88da24206a6cb847efe837fddc120af3e8.tar.gz |
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-fsl-qoriq
update ls1028aqds networking protocol, config in ls1021atwr, env in ls1012a
Add seli3 board support, booke watchdog, update eTSEC support in ppc-qemu
Add DM_SERIAL and lpuart in sl28, add DM_ETH support for some of powerpc platforms
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'test/dm/of_extra.c')
-rw-r--r-- | test/dm/of_extra.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/dm/of_extra.c b/test/dm/of_extra.c index b19cd3787d..ac2d886892 100644 --- a/test/dm/of_extra.c +++ b/test/dm/of_extra.c @@ -36,3 +36,21 @@ static int dm_test_ofnode_read_fmap_entry(struct unit_test_state *uts) return 0; } DM_TEST(dm_test_ofnode_read_fmap_entry, 0); + +static int dm_test_ofnode_phy_is_fixed_link(struct unit_test_state *uts) +{ + ofnode eth_node, phy_node, node; + + eth_node = ofnode_path("/dsa-test/ports/port@0"); + ut_assert(ofnode_phy_is_fixed_link(eth_node, &phy_node)); + node = ofnode_path("/dsa-test/ports/port@0/fixed-link"); + ut_asserteq_mem(&phy_node, &node, sizeof(ofnode)); + + eth_node = ofnode_path("/dsa-test/ports/port@1"); + ut_assert(ofnode_phy_is_fixed_link(eth_node, &phy_node)); + node = eth_node; + ut_asserteq_mem(&phy_node, &node, sizeof(ofnode)); + + return 0; +} +DM_TEST(dm_test_ofnode_phy_is_fixed_link, 0); |