diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-01-23 12:40:32 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-01-24 16:21:25 +0100 |
commit | bb88ec947fc7f4db6ada9ccccb0c4d09c75742b0 (patch) | |
tree | 192ce26a517d60b19740bc30a2c2aaa821589cc7 /package/boot/uboot-oxnas/src/arch/arm/include/asm/arch-nas782x/cpu.h | |
parent | 12bfa1c425e5012e063b0afd9a09d2dfefc20eee (diff) | |
download | upstream-bb88ec947fc7f4db6ada9ccccb0c4d09c75742b0.tar.gz upstream-bb88ec947fc7f4db6ada9ccccb0c4d09c75742b0.tar.bz2 upstream-bb88ec947fc7f4db6ada9ccccb0c4d09c75742b0.zip |
uboot-oxnas: switch to u-boot.mk
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/boot/uboot-oxnas/src/arch/arm/include/asm/arch-nas782x/cpu.h')
-rw-r--r-- | package/boot/uboot-oxnas/src/arch/arm/include/asm/arch-nas782x/cpu.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/boot/uboot-oxnas/src/arch/arm/include/asm/arch-nas782x/cpu.h b/package/boot/uboot-oxnas/src/arch/arm/include/asm/arch-nas782x/cpu.h new file mode 100644 index 0000000000..11e803c5c0 --- /dev/null +++ b/package/boot/uboot-oxnas/src/arch/arm/include/asm/arch-nas782x/cpu.h @@ -0,0 +1,26 @@ +#ifndef _NAS782X_CPU_H +#define _NAS782X_CPU_H + +#if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__)) +#include <asm/types.h> +#include <asm/io.h> +#endif /* !(__KERNEL_STRICT_NAMES || __ASSEMBLY__) */ + +#include <asm/arch/hardware.h> +#include <asm/arch/timer.h> + +#ifndef __KERNEL_STRICT_NAMES +#ifndef __ASSEMBLY__ + +#define BIT(x) (1 << (x)) + +/* fix "implicit declaration of function" warnning */ +void *memalign(size_t alignment, size_t bytes); +void free(void* mem); +void *malloc(size_t bytes); +void *calloc(size_t n, size_t elem_size); + +#endif /* __ASSEMBLY__ */ +#endif /* __KERNEL_STRICT_NAMES */ + +#endif /* _NAS782X_CPU_H */ |