Commit 2028cc59f7b904f8e91a99439aa630b20932baa5

Authored by Simon Glass
1 parent 30107b08d7

sandbox: Stop printing platdata at the start of SPL

Currently we have code which prints out platform data at the start of SPL.
Now that we have tests for dtoc this is probably not necessary. Drop it.
Update test_ofplatdata to check for empty output since it is useful to
check that sandbox_spl works as expected.

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

Showing 2 changed files with 1 additions and 40 deletions Side-by-side Diff

arch/sandbox/cpu/spl.c
... ... @@ -44,17 +44,6 @@
44 44  
45 45 void spl_board_init(void)
46 46 {
47   - struct udevice *dev;
48   -
49 47 preloader_console_init();
50   -
51   - /*
52   - * Scan all the devices so that we can output their platform data. See
53   - * sandbox_spl_probe().
54   - */
55   - for (uclass_first_device(UCLASS_MISC, &dev);
56   - dev;
57   - uclass_next_device(&dev))
58   - ;
59 48 }
test/py/tests/test_ofplatdata.py
... ... @@ -4,35 +4,7 @@
4 4  
5 5 import pytest
6 6  
7   -OF_PLATDATA_OUTPUT = '''
8   -of-platdata probe:
9   -bool 1
10   -byte 05
11   -bytearray 06 00 00
12   -int 1
13   -intarray 2 3 4 0
14   -longbytearray 09 0a 0b 0c 0d 0e 0f 10 11
15   -string message
16   -stringarray "multi-word" "message" ""
17   -of-platdata probe:
18   -bool 0
19   -byte 08
20   -bytearray 01 23 34
21   -int 3
22   -intarray 5 0 0 0
23   -longbytearray 09 00 00 00 00 00 00 00 00
24   -string message2
25   -stringarray "another" "multi-word" "message"
26   -of-platdata probe:
27   -bool 0
28   -byte 00
29   -bytearray 00 00 00
30   -int 0
31   -intarray 0 0 0 0
32   -longbytearray 00 00 00 00 00 00 00 00 00
33   -string <NULL>
34   -stringarray "one" "" ""
35   -'''
  7 +OF_PLATDATA_OUTPUT = ''
36 8  
37 9 @pytest.mark.buildconfigspec('spl_of_platdata')
38 10 def test_ofplatdata(u_boot_console):