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>
15 lines
246 B
C
15 lines
246 B
C
#ifndef __MEMTEST_H
|
|
#define __MEMTEST_H
|
|
|
|
#include <linux/ioport.h>
|
|
|
|
struct mem_test_resource {
|
|
struct resource *r;
|
|
struct list_head list;
|
|
};
|
|
|
|
int mem_test(resource_size_t _start,
|
|
resource_size_t _end, int bus_only);
|
|
|
|
#endif /* __MEMTEST_H */
|