2003-06-25 22:26:29 +00:00
|
|
|
#ifndef __ASM_ARM_MEMORY_H
|
|
|
|
#define __ASM_ARM_MEMORY_H
|
|
|
|
|
2011-09-23 09:00:51 +00:00
|
|
|
#include <memory.h>
|
2011-07-29 09:43:45 +00:00
|
|
|
|
2014-03-16 13:48:12 +00:00
|
|
|
#include <linux/const.h>
|
|
|
|
/*
|
|
|
|
* Allow for constants defined here to be used from assembly code
|
|
|
|
* by prepending the UL suffix only with actual C code compilation.
|
|
|
|
*/
|
|
|
|
#define UL(x) _AC(x, UL)
|
|
|
|
|
2011-09-23 09:00:51 +00:00
|
|
|
static inline void arm_add_mem_device(const char* name, resource_size_t start,
|
|
|
|
resource_size_t size)
|
|
|
|
{
|
|
|
|
barebox_add_memory_bank(name, start, size);
|
|
|
|
}
|
2003-06-25 22:26:29 +00:00
|
|
|
|
|
|
|
#endif /* __ASM_ARM_MEMORY_H */
|