diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-05-10 13:35:40 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-07-26 16:49:44 +0200 |
commit | f6f7395eb36a5d4ac7e3b088f65cda42629d1d79 (patch) | |
tree | a482d441e627cb22c848d0ffc1a456c133ed2528 /post/tests.c | |
parent | d2397817f12d246cfd88caefd6f12dfd3e2d2c17 (diff) | |
download | u-boot-f6f7395eb36a5d4ac7e3b088f65cda42629d1d79.tar.gz u-boot-f6f7395eb36a5d4ac7e3b088f65cda42629d1d79.tar.bz2 u-boot-f6f7395eb36a5d4ac7e3b088f65cda42629d1d79.zip |
post: new nor flash test
This adds a simple flash test to automatically verify erasing,
writing, and reading of sectors. The code is based on existing
Blackfin tests but generalized for everyone to use.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'post/tests.c')
-rw-r--r-- | post/tests.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/post/tests.c b/post/tests.c index 71437b628d..bfb9cb5db6 100644 --- a/post/tests.c +++ b/post/tests.c @@ -46,6 +46,7 @@ extern int sysmon_post_test (int flags); extern int dsp_post_test (int flags); extern int codec_post_test (int flags); extern int ecc_post_test (int flags); +extern int flash_post_test(int flags); extern int dspic_init_post_test (int flags); extern int dspic_post_test (int flags); @@ -301,7 +302,19 @@ struct post_test post_list[] = NULL, NULL, CONFIG_SYS_POST_COPROC - } + }, +#endif +#if CONFIG_POST & CONFIG_SYS_POST_FLASH + { + "Parallel NOR flash test", + "flash", + "This test verifies parallel flash operations.", + POST_RAM | POST_SLOWTEST | POST_MANUAL, + &flash_post_test, + NULL, + NULL, + CONFIG_SYS_POST_FLASH + }, #endif }; |