mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-25 16:21:32 +00:00
27 lines
916 B
Diff
27 lines
916 B
Diff
From ab2ccc6f757c7c49f84a719584b4dde5da431394 Mon Sep 17 00:00:00 2001
|
|
From: Andreas Baierl <ichgeh@imkreisrum.de>
|
|
Date: Tue, 8 Mar 2016 11:07:58 -0500
|
|
Subject: [PATCH] Fix ump build
|
|
|
|
---
|
|
arch/arm/mach-sunxi/include/mach/sun8i/memory-sun8iw7p1.h | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/arch/arm/mach-sunxi/include/mach/sun8i/memory-sun8iw7p1.h b/arch/arm/mach-sunxi/include/mach/sun8i/memory-sun8iw7p1.h
|
|
index afa1202..02c7429 100755
|
|
--- a/arch/arm/mach-sunxi/include/mach/sun8i/memory-sun8iw7p1.h
|
|
+++ b/arch/arm/mach-sunxi/include/mach/sun8i/memory-sun8iw7p1.h
|
|
@@ -18,6 +18,10 @@
|
|
#define __MEMORY_SUN8I_W5P1_H
|
|
|
|
#define PLAT_PHYS_OFFSET UL(0x40000000)
|
|
+#define __phys_to_bus(x) ((u32)(x) < PLAT_PHYS_OFFSET ? (x) : \
|
|
+ (x) - PLAT_PHYS_OFFSET)
|
|
+#define __bus_to_phys(x) ((x) + PLAT_PHYS_OFFSET)
|
|
+
|
|
#ifdef CONFIG_EVB_PLATFORM
|
|
#define PLAT_MEM_SIZE SZ_2G
|
|
#else
|
|
--
|
|
2.7.0
|
|
|