]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
dm: Add a test for of-platdata
authorSimon Glass <sjg@chromium.org>
Mon, 4 Jul 2016 17:58:41 +0000 (11:58 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 15 Jul 2016 02:40:24 +0000 (20:40 -0600)
commitb979d3d4c55def30cd0eb1e2c82beefb30fc8e87
tree7160f24c79025a04787c0fbe06856312be76c5c1
parenta811779b174f8c5c687aaa5574dfdea9f3745f98
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>
test/py/tests/test_ofplatdata.py [new file with mode: 0644]