Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Simon Glass's avatar
    b979d3d4
    dm: Add a test for of-platdata · b979d3d4
    Simon Glass authored
    
    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: default avatarSimon Glass <sjg@chromium.org>
    b979d3d4
    History
    dm: Add a test for of-platdata
    Simon Glass authored
    
    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: default avatarSimon Glass <sjg@chromium.org>