barebox/include/memtest.h
Alexander Aring 3275c7ea43 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>
2013-06-05 22:54:35 +02:00

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 */