common: add memtest.c with mem_test routine
Add mem_test routine. Useful to detect timing problems if someone
porting a new device to barebox. This test includes a data bus test,
address bus test and integrity check of memory.

This mem_test routine has as parameter start and end address of testing
space. The last parameter can skip the integrity check.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 47f9da4 commit 3275c7ea43f366bcfac5a9f8ffc0d001592d9529
@Alexander Aring Alexander Aring authored on 3 Jun 2013
Sascha Hauer committed on 5 Jun 2013
Showing 3 changed files
View
common/Makefile
View
common/memtest.c 0 → 100644
View
include/memtest.h 0 → 100644