cmd: memtester: add test mask for test stuck address
Change-Id: Icbcf7e460befcc098c45e4e3efb7fb3c1bcb73a0 Signed-off-by: Tang Yun ping <typ@rock-chips.com>
This commit is contained in:
parent
660ca12ed9
commit
c337a3c2b1
|
|
@ -98,11 +98,13 @@ int doing_memtester(ul *arg, ul testenable, ul loops, ul err_exit)
|
||||||
if (loops)
|
if (loops)
|
||||||
printf("/%lu", loops);
|
printf("/%lu", loops);
|
||||||
printf(":\n");
|
printf(":\n");
|
||||||
printf(" %-20s: ", "Stuck Address");
|
if (testenable && ((1 << 17) & testenable)) {
|
||||||
if (!test_stuck_address(bufa[j], count[j] * 2))
|
printf(" %-20s: ", "Stuck Address");
|
||||||
printf("ok\n");
|
if (!test_stuck_address(bufa[j], count[j] * 2))
|
||||||
else
|
printf("ok\n");
|
||||||
exit_code |= EXIT_FAIL_ADDRESSLINES;
|
else
|
||||||
|
exit_code |= EXIT_FAIL_ADDRESSLINES;
|
||||||
|
}
|
||||||
for (i = 0;; i++) {
|
for (i = 0;; i++) {
|
||||||
if (!tests[i].name)
|
if (!tests[i].name)
|
||||||
break;
|
break;
|
||||||
|
|
@ -215,6 +217,7 @@ U_BOOT_CMD(memtester, 6, 1, do_memtester,
|
||||||
" bit14: Walking Zeroes\n"
|
" bit14: Walking Zeroes\n"
|
||||||
" bit15: 8-bit Writes\n"
|
" bit15: 8-bit Writes\n"
|
||||||
" bit16: 16-bit Writes\n"
|
" bit16: 16-bit Writes\n"
|
||||||
|
" bit17: test stuck address\n"
|
||||||
" example: testenable=0x1000,enable Bit Flip only\n"
|
" example: testenable=0x1000,enable Bit Flip only\n"
|
||||||
"err_exit: if 1 stop testing immediately when finding error\n"
|
"err_exit: if 1 stop testing immediately when finding error\n"
|
||||||
"loop[option]: testing loop, if 0 or null endless loop\n"
|
"loop[option]: testing loop, if 0 or null endless loop\n"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue