]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: Update test.dts for dynamic PCI device driver matching
authorBin Meng <bmeng.cn@gmail.com>
Fri, 3 Aug 2018 08:14:47 +0000 (01:14 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 8 Aug 2018 11:49:31 +0000 (12:49 +0100)
At present we have two PCI buses in the test configuration. Both
buses have static device-tree config devices. Now we switch the
2nd bus to use dynamic PCI devices for testing.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/dts/test.dts

index 0bce6d01af7564aa51c7910ead74d79b6f8512e5..44d24f978b120a082cb2d82fa8b4df52bbb8a93c 100644 (file)
                #size-cells = <2>;
                ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000
                                0x01000000 0 0x40000000 0x40000000 0 0x2000>;
-               pci@8,0 {
-                       compatible = "pci-generic";
-                       reg = <0x4000 0 0 0 0>;
-                       emul@8,0 {
-                               compatible = "sandbox,swap-case";
-                       };
-               };
-               pci@c,0 {
-                       compatible = "pci-generic";
-                       reg = <0x6000 0 0 0 0>;
-                       emul@c,0 {
-                               compatible = "sandbox,swap-case";
-                       };
-               };
+               sandbox,dev-info = <0x08 0x00 0x1234 0x5678
+                                   0x0c 0x00 0x1234 0x5678>;
        };
 
        probing {