mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 21:21:37 +00:00
nios2: fix phys_addr_t and phys_size_t support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
parent
5fa62000db
commit
81d3f1fddd
2 changed files with 4 additions and 0 deletions
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
#include <nios2.h>
|
#include <nios2.h>
|
||||||
#include <nios2-io.h>
|
#include <nios2-io.h>
|
||||||
|
#include <asm/types.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/ptrace.h>
|
#include <asm/ptrace.h>
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
|
|
|
@ -52,6 +52,9 @@ typedef unsigned long long u64;
|
||||||
/* Dma addresses are 32-bits wide. */
|
/* Dma addresses are 32-bits wide. */
|
||||||
|
|
||||||
typedef u32 dma_addr_t;
|
typedef u32 dma_addr_t;
|
||||||
|
|
||||||
|
typedef unsigned long phys_addr_t;
|
||||||
|
typedef unsigned long phys_size_t;
|
||||||
#endif /* __KERNEL__ */
|
#endif /* __KERNEL__ */
|
||||||
|
|
||||||
#endif /* __ASM_NIOS2_TYPES_H */
|
#endif /* __ASM_NIOS2_TYPES_H */
|
||||||
|
|
Loading…
Add table
Reference in a new issue