diff options
author | Tom Rini <trini@konsulko.com> | 2015-06-05 11:21:08 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-06-05 11:21:08 -0400 |
commit | d85cd291331b07df57fd4ada84d2c7b9b76ac1b8 (patch) | |
tree | fa3033d1e3e2f3ae80a17ee89045948383da984c /test | |
parent | 5d3c2c542dd8878fece0ea96edde125635b492ff (diff) | |
parent | d9a607f2bd4315c9e370aa358ea9168d615a48fc (diff) |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'test')
-rw-r--r-- | test/dm/pci.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/dm/pci.c b/test/dm/pci.c index 2f3ae7941b..3ab4ba811c 100644 --- a/test/dm/pci.c +++ b/test/dm/pci.c @@ -21,6 +21,17 @@ static int dm_test_pci_base(struct unit_test_state *uts) } DM_TEST(dm_test_pci_base, DM_TESTF_SCAN_PDATA | DM_TESTF_SCAN_FDT); +/* Test that sandbox PCI bus numbering works correctly */ +static int dm_test_pci_busnum(struct unit_test_state *uts) +{ + struct udevice *bus; + + ut_assertok(uclass_get_device_by_seq(UCLASS_PCI, 0, &bus)); + + return 0; +} +DM_TEST(dm_test_pci_busnum, DM_TESTF_SCAN_PDATA | DM_TESTF_SCAN_FDT); + /* Test that we can use the swapcase device correctly */ static int dm_test_pci_swapcase(struct unit_test_state *uts) { |