| /rk3399_rockchip-uboot/post/lib_powerpc/ |
| H A D | store.c | 153 struct cpu_post_store_s *test = cpu_post_store_table + i; in cpu_post_test_store() local 159 if (test->index) in cpu_post_test_store() 163 ASM_12(test->cmd, 5, 3, 4), in cpu_post_test_store() 167 cpu_post_exec_12w (code, &base, test->offset, test->value); in cpu_post_test_store() 173 ASM_11I(test->cmd, 4, 3, test->offset), in cpu_post_test_store() 177 cpu_post_exec_11w (code, &base, test->value); in cpu_post_test_store() 182 if (test->update) in cpu_post_test_store() 183 ret = base == base0 + test->offset ? 0 : -1; in cpu_post_test_store() 190 switch (test->width) in cpu_post_test_store() 193 ret = *(uchar *)(base0 + test->offset) == test->value ? in cpu_post_test_store() [all …]
|
| H A D | cr.c | 259 struct cpu_post_cr_s2 *test = cpu_post_cr_table2 + i; in cpu_post_test_cr() local 266 ASM_MCRXR(test->cr), in cpu_post_test_cr() 272 cpu_post_exec_21x (code, &res, &xer, test->xer); in cpu_post_test_cr() 274 ret = xer == 0 && ((res << (4 * test->cr)) & 0xe0000000) == test->xer ? in cpu_post_test_cr() 285 struct cpu_post_cr_s3 *test = cpu_post_cr_table3 + i; in cpu_post_test_cr() local 291 ASM_MCRF(test->cd, test->cs), in cpu_post_test_cr() 296 cpu_post_exec_11 (code, &res, test->cr); in cpu_post_test_cr() 298 ret = res == test->res ? 0 : -1; in cpu_post_test_cr() 308 struct cpu_post_cr_s4 *test = cpu_post_cr_table4 + i; in cpu_post_test_cr() local 314 ASM_12F(test->cmd, test->op3, test->op1, test->op2), in cpu_post_test_cr() [all …]
|
| H A D | load.c | 168 struct cpu_post_load_s *test = cpu_post_load_table + i; in cpu_post_test_load() local 175 if (test->index) in cpu_post_test_load() 179 ASM_12(test->cmd, 5, 3, 4), in cpu_post_test_load() 183 cpu_post_exec_22w (code, &base, test->offset, &value); in cpu_post_test_load() 189 ASM_11I(test->cmd, 4, 3, test->offset), in cpu_post_test_load() 198 if (test->update) in cpu_post_test_load() 199 ret = base == base0 + test->offset ? 0 : -1; in cpu_post_test_load() 206 switch (test->width) in cpu_post_test_load() 209 ret = *(uchar *)(base0 + test->offset) == value ? in cpu_post_test_load() 213 ret = *(ushort *)(base0 + test->offset) == value ? in cpu_post_test_load() [all …]
|
| H A D | rlwimi.c | 59 struct cpu_post_rlwimi_s *test = cpu_post_rlwimi_table + i; in cpu_post_test_rlwimi() local 76 ASM_113(test->cmd, reg1, reg0, test->op2, test->mb, test->me), in cpu_post_test_rlwimi() 95 ASM_113(test->cmd, reg1, reg0, test->op2, test->mb, test->me) | in cpu_post_test_rlwimi() 111 cpu_post_exec_22 (code, & cr, & res, test->op0, test->op1); in cpu_post_test_rlwimi() 113 ret = res == test->res && cr == 0 ? 0 : -1; in cpu_post_test_rlwimi() 123 cpu_post_exec_22 (codecr, & cr, & res, test->op0, test->op1); in cpu_post_test_rlwimi() 125 ret = res == test->res && in cpu_post_test_rlwimi()
|
| H A D | rlwinm.c | 56 struct cpu_post_rlwinm_s *test = cpu_post_rlwinm_table + i; in cpu_post_test_rlwinm() local 71 ASM_113(test->cmd, reg1, reg0, test->op2, test->mb, test->me), in cpu_post_test_rlwinm() 88 ASM_113(test->cmd, reg1, reg0, test->op2, test->mb, in cpu_post_test_rlwinm() 89 test->me) | BIT_C, in cpu_post_test_rlwinm() 104 cpu_post_exec_21 (code, & cr, & res, test->op1); in cpu_post_test_rlwinm() 106 ret = res == test->res && cr == 0 ? 0 : -1; in cpu_post_test_rlwinm() 116 cpu_post_exec_21 (codecr, & cr, & res, test->op1); in cpu_post_test_rlwinm() 118 ret = res == test->res && in cpu_post_test_rlwinm()
|
| H A D | rlwnm.c | 57 struct cpu_post_rlwnm_s *test = cpu_post_rlwnm_table + i; in cpu_post_test_rlwnm() local 76 ASM_122(test->cmd, reg2, reg1, reg0, test->mb, test->me), in cpu_post_test_rlwnm() 97 ASM_122(test->cmd, reg2, reg1, reg0, test->mb, test->me) | in cpu_post_test_rlwnm() 114 cpu_post_exec_22 (code, & cr, & res, test->op1, test->op2); in cpu_post_test_rlwnm() 116 ret = res == test->res && cr == 0 ? 0 : -1; in cpu_post_test_rlwnm() 126 cpu_post_exec_22 (codecr, & cr, & res, test->op1, test->op2); in cpu_post_test_rlwnm() 128 ret = res == test->res && in cpu_post_test_rlwnm()
|
| H A D | cmpi.c | 92 struct cpu_post_cmpi_s *test = cpu_post_cmpi_table + i; in cpu_post_test_cmpi() local 95 ASM_1IC(test->cmd, test->cr, 3, test->op2), in cpu_post_test_cmpi() 101 cpu_post_exec_11 (code, & res, test->op1); in cpu_post_test_cmpi() 103 ret = ((res >> (28 - 4 * test->cr)) & 0xe) == test->res ? 0 : -1; in cpu_post_test_cmpi()
|
| H A D | cmp.c | 92 struct cpu_post_cmp_s *test = cpu_post_cmp_table + i; in cpu_post_test_cmp() local 95 ASM_2C(test->cmd, test->cr, 3, 4), in cpu_post_test_cmp() 101 cpu_post_exec_12 (code, & res, test->op1, test->op2); in cpu_post_test_cmp() 103 ret = ((res >> (28 - 4 * test->cr)) & 0xe) == test->res ? 0 : -1; in cpu_post_test_cmp()
|
| H A D | srawi.c | 58 struct cpu_post_srawi_s *test = cpu_post_srawi_table + i; in cpu_post_test_srawi() local 73 ASM_11S(test->cmd, reg1, reg0, test->op2), in cpu_post_test_srawi() 90 ASM_11S(test->cmd, reg1, reg0, test->op2) | BIT_C, in cpu_post_test_srawi() 105 cpu_post_exec_21 (code, & cr, & res, test->op1); in cpu_post_test_srawi() 107 ret = res == test->res && cr == 0 ? 0 : -1; in cpu_post_test_srawi() 117 cpu_post_exec_21 (codecr, & cr, & res, test->op1); in cpu_post_test_srawi() 119 ret = res == test->res && in cpu_post_test_srawi()
|
| H A D | threex.c | 122 struct cpu_post_threex_s *test = cpu_post_threex_table + i; in cpu_post_test_threex() local 141 ASM_12X(test->cmd, reg2, reg1, reg0), in cpu_post_test_threex() 162 ASM_12X(test->cmd, reg2, reg1, reg0) | BIT_C, in cpu_post_test_threex() 178 cpu_post_exec_22 (code, & cr, & res, test->op1, test->op2); in cpu_post_test_threex() 180 ret = res == test->res && cr == 0 ? 0 : -1; in cpu_post_test_threex() 190 cpu_post_exec_22 (codecr, & cr, & res, test->op1, test->op2); in cpu_post_test_threex() 192 ret = res == test->res && in cpu_post_test_threex()
|
| H A D | three.c | 152 struct cpu_post_three_s *test = cpu_post_three_table + i; in cpu_post_test_three() local 171 ASM_12(test->cmd, reg2, reg1, reg0), in cpu_post_test_three() 192 ASM_12(test->cmd, reg2, reg1, reg0) | BIT_C, in cpu_post_test_three() 208 cpu_post_exec_22 (code, & cr, & res, test->op1, test->op2); in cpu_post_test_three() 210 ret = res == test->res && cr == 0 ? 0 : -1; in cpu_post_test_three() 220 cpu_post_exec_22 (codecr, & cr, & res, test->op1, test->op2); in cpu_post_test_three() 222 ret = res == test->res && in cpu_post_test_three()
|
| H A D | two.c | 78 struct cpu_post_two_s *test = cpu_post_two_table + i; in cpu_post_test_two() local 93 ASM_11(test->cmd, reg1, reg0), in cpu_post_test_two() 110 ASM_11(test->cmd, reg1, reg0) | BIT_C, in cpu_post_test_two() 125 cpu_post_exec_21 (code, & cr, & res, test->op); in cpu_post_test_two() 127 ret = res == test->res && cr == 0 ? 0 : -1; in cpu_post_test_two() 137 cpu_post_exec_21 (codecr, & cr, & res, test->op); in cpu_post_test_two() 139 ret = res == test->res && in cpu_post_test_two()
|
| H A D | twox.c | 78 struct cpu_post_twox_s *test = cpu_post_twox_table + i; in cpu_post_test_twox() local 93 ASM_11X(test->cmd, reg1, reg0), in cpu_post_test_twox() 110 ASM_11X(test->cmd, reg1, reg0) | BIT_C, in cpu_post_test_twox() 125 cpu_post_exec_21 (code, & cr, & res, test->op); in cpu_post_test_twox() 127 ret = res == test->res && cr == 0 ? 0 : -1; in cpu_post_test_twox() 137 cpu_post_exec_21 (codecr, & cr, & res, test->op); in cpu_post_test_twox() 139 ret = res == test->res && in cpu_post_test_twox()
|
| /rk3399_rockchip-uboot/post/ |
| H A D | post.c | 30 struct post_test *test = post_list + i; in post_init_f() local 32 if (test->init_f && test->init_f()) in post_init_f() 236 static int post_run_single(struct post_test *test, in post_run_single() argument 252 post_log_mark_start(test->testid); in post_run_single() 254 post_log("POST %s ", test->cmd); in post_run_single() 260 if ((*test->test)(flags) == 0) { in post_run_single() 261 post_log_mark_succ(test->testid); in post_run_single() 271 if ((*test->test)(flags) != 0) { in post_run_single() 356 static int post_info_single(struct post_test *test, int full) in post_info_single() argument 358 if (test->flags & POST_MANUAL) { in post_info_single() [all …]
|
| /rk3399_rockchip-uboot/test/dm/ |
| H A D | test-main.c | 77 static int dm_do_test(struct unit_test_state *uts, struct unit_test *test, in dm_do_test() argument 81 const char *fname = strrchr(test->file, '/') + 1; in dm_do_test() 83 printf("Test: %s: %s%s\n", test->name, fname, in dm_do_test() 88 if (test->flags & DM_TESTF_SCAN_PDATA) in dm_do_test() 90 if (test->flags & DM_TESTF_PROBE_TEST) in dm_do_test() 92 if (test->flags & DM_TESTF_SCAN_FDT) in dm_do_test() 102 test->func(uts); in dm_do_test() 119 static bool dm_test_run_on_flattree(struct unit_test *test) in dm_test_run_on_flattree() argument 121 const char *fname = strrchr(test->file, '/') + 1; in dm_test_run_on_flattree() 123 return !strstr(fname, "video") || strstr(test->name, "video_base"); in dm_test_run_on_flattree() [all …]
|
| /rk3399_rockchip-uboot/test/overlay/ |
| H A D | test-fdt-overlay.dts | 14 target = <&test>; 17 test-int-property = <43>; 23 target = <&test>; 26 test-str-property = "foobar"; 32 target = <&test>; 35 test-str-property-2 = "foobar2"; 41 target = <&test>; 75 test-phandle = <&test>, <&local>; 83 test-several-phandle = <&local>, <&local>; 88 target = <&test>; [all …]
|
| H A D | test-fdt-base.dts | 11 test: test-node { label 12 test-int-property = <42>; 13 test-str-property = "foo"; 15 subtest: sub-test-node { 16 sub-test-property;
|
| /rk3399_rockchip-uboot/arch/sandbox/dts/ |
| H A D | test.dts | 23 testfdt6 = "/e-test"; 25 testfdt0 = "/some-bus/c-test@0"; 26 testfdt1 = "/some-bus/c-test@1"; 27 testfdt3 = "/b-test"; 28 testfdt5 = "/some-bus/c-test@5"; 29 testfdt8 = "/a-test"; 35 a-test { 37 compatible = "denx,u-boot-fdt-test"; 41 test-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 5 0 3 2 1>, 57 b-test { [all …]
|
| /rk3399_rockchip-uboot/test/env/ |
| H A D | cmd_ut_env.c | 19 struct unit_test *test; in do_ut_env() local 24 for (test = tests; test < tests + n_ents; test++) { in do_ut_env() 25 if (argc > 1 && strcmp(argv[1], test->name)) in do_ut_env() 27 printf("Test: %s\n", test->name); in do_ut_env() 31 test->func(&uts); in do_ut_env()
|
| /rk3399_rockchip-uboot/test/ |
| H A D | README | 13 test/run 22 allows test to be executed without needing target hardware. The 'sandbox' 29 Many tests are available using the pytest suite, in test/py. This can run 31 inject test commands and check the result. It is slower to run than C code, 36 ./test/py/test.py --bd sandbox --build 38 This will produce HTML output in build-sandbox/test-log.html 40 See test/py/README.md for more information about the pytest suite. 48 number of boards automatically. It can be used to create a continuous test 57 test/fs - File system test (shell script) 58 test/image - FIT and legacy image tests (shell script and Python) [all …]
|
| H A D | Kconfig | 14 work correctly. The test is fairly simple and will not catch all 19 bool "test Rockchip board modules" 22 This enables the test function for rockchip board modules. 25 bool "Display test info need by LAVA system" 30 source "test/dm/Kconfig" 31 source "test/env/Kconfig" 32 source "test/overlay/Kconfig"
|
| /rk3399_rockchip-uboot/doc/ |
| H A D | README.POST | 34 o) CPU test 35 o) Cache test 36 o) Memory test 37 o) Ethernet test 38 o) Serial channels test 39 o) Watchdog timer test 40 o) RTC test 41 o) I2C test 42 o) SPI test 43 o) USB test [all …]
|
| /rk3399_rockchip-uboot/test/py/ |
| H A D | README.md | 5 This tool aims to test U-Boot by executing U-Boot shell commands using the 12 - There is no need to write or embed test-related code into U-Boot itself. 13 It is asserted that writing test-related code in Python is simpler and more 19 The test suite is implemented using pytest. Interaction with the U-Boot console 21 need to implement various "hook" scripts that are called by the test suite at 32 The test script supports either: 43 packages, or may provide versions that are too old to run the test suite. One 62 ./test/py/test.py --bd sandbox --build 65 The `--bd` option tells the test suite which board type is being tested. This 66 lets the test suite know which features the board has, and hence exactly what [all …]
|
| /rk3399_rockchip-uboot/tools/dtoc/ |
| H A D | dtoc_test_simple.dts | 14 spl-test { 16 compatible = "sandbox,spl-test"; 29 compatible = "sandbox,spl-test"; 41 compatible = "sandbox,spl-test"; 47 compatible = "sandbox,spl-test.2"; 51 compatible = "sandbox,i2c-test"; 56 compatible = "sandbox,pmic-test";
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | sf.c | 406 static void show_time(struct test_info *test, int stage) in show_time() argument 411 speed = (long long)test->bytes * 1000; in show_time() 412 if (test->time_ms[stage]) in show_time() 413 do_div(speed, test->time_ms[stage] * 1024); in show_time() 417 stage_name[stage], test->time_ms[stage], in show_time() 421 static void spi_test_next_stage(struct test_info *test) in spi_test_next_stage() argument 423 test->time_ms[test->stage] = get_timer(test->base_ms); in spi_test_next_stage() 424 show_time(test, test->stage); in spi_test_next_stage() 425 test->base_ms = get_timer(0); in spi_test_next_stage() 426 test->stage++; in spi_test_next_stage() [all …]
|