Home
last modified time | relevance | path

Searched hist:b979d3d4c55def30cd0eb1e2c82beefb30fc8e87 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/test/py/tests/
H A Dtest_ofplatdata.pyb979d3d4c55def30cd0eb1e2c82beefb30fc8e87 Mon Jul 04 17:58:41 UTC 2016 Simon Glass <sjg@chromium.org> dm: Add a test for of-platdata

Add a simple test which checks that the of-platdata system is working
correctly. The sequence is as follows:

- SPL starts up and probes all the UCLASS_MISC drivers
- There are 3 of these in sandbox.dts
- Therefore there should be 3 U_BOOT_DEVICE() declarations in dt-platdata.c
- These should produce 3 sandbox_spl_test devices
- Each device prints out its platform data when probed
- This test checks for this output and compares it against expectations

Signed-off-by: Simon Glass <sjg@chromium.org>