mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-28 22:21:49 +01: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
@ -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…
x
Reference in New Issue
Block a user