summaryrefslogtreecommitdiff
path: root/include/soc/sprd/memory.h
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2017-08-30 08:25:59 +0000
committerYuval Adam <_@yuv.al>2017-08-30 08:25:59 +0000
commit8e4bff4cab0ddac6060645b0715210484d02ff40 (patch)
tree3a5c3024371a04692a3a6d9974d001cdff8ebf84 /include/soc/sprd/memory.h
Initial file dump from open source releaseHEADmaster
Diffstat (limited to 'include/soc/sprd/memory.h')
-rw-r--r--include/soc/sprd/memory.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/soc/sprd/memory.h b/include/soc/sprd/memory.h
new file mode 100644
index 00000000..794a7efd
--- /dev/null
+++ b/include/soc/sprd/memory.h
@@ -0,0 +1,27 @@
+/* arch/arm/mach-sc8810/include/mach/io.h
+ *
+ * Copyright (C) 2012 Spreadtrum
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#ifndef __ASM_ARCH_MEMORY_H
+#define __ASM_ARCH_MEMORY_H __FILE__
+
+#define __pfn_to_bus(x) __pfn_to_phys(x)
+#define __bus_to_pfn(x) __phys_to_pfn(x)
+
+/* Maximum of 256MiB in one bank */
+#define MAX_PHYSMEM_BITS 32
+#define SECTION_SIZE_BITS 28
+
+#endif
+