]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/include/asm/types.h
armv8: ls2040a: Add support of LS2040A SoC
[u-boot] / arch / arm / include / asm / types.h
index 71dc049da625e521674a6b0cd412283ecade7305..388058e04c5b88a3aa62a22dc54dc3634a4cc65f 100644 (file)
@@ -39,15 +39,24 @@ typedef unsigned int u32;
 typedef signed long long s64;
 typedef unsigned long long u64;
 
+#ifdef CONFIG_ARM64
+#define BITS_PER_LONG 64
+#else  /* CONFIG_ARM64 */
 #define BITS_PER_LONG 32
-
-/* Dma addresses are 32-bits wide.  */
-
+#endif /* CONFIG_ARM64 */
+
+#ifdef CONFIG_PHYS_64BIT
+typedef unsigned long long dma_addr_t;
+typedef unsigned long long phys_addr_t;
+typedef unsigned long long phys_size_t;
+#else
+/* DMA addresses are 32-bits wide */
 typedef u32 dma_addr_t;
-
 typedef unsigned long phys_addr_t;
 typedef unsigned long phys_size_t;
+#endif
 
 #endif /* __KERNEL__ */
 
+typedef unsigned long resource_size_t;
 #endif