aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/include/mach
diff options
context:
space:
mode:
authorLajos Molnar <lajos@ti.com>2012-03-30 00:11:27 -0500
committerZiyann <jaraidaniel@gmail.com>2014-10-01 12:57:02 +0200
commitcb55f60ae71c8ccca88a9dfd45d37b30e85a33c3 (patch)
tree6f8826bbd0c0a3af60ee78f10f8349b641bdecba /arch/arm/mach-omap2/include/mach
parenteb8eb4ed20c07c6942a0b93956e6ca7173875612 (diff)
downloadkernel_samsung_tuna-cb55f60ae71c8ccca88a9dfd45d37b30e85a33c3.zip
kernel_samsung_tuna-cb55f60ae71c8ccca88a9dfd45d37b30e85a33c3.tar.gz
kernel_samsung_tuna-cb55f60ae71c8ccca88a9dfd45d37b30e85a33c3.tar.bz2
OMAP4: ion: move omap4_ion.h under mach/include
This is because tiler and ion is really a platform device, but they are defined in mach, and other platform devices need to refer to them. Change-Id: Ifbc151b7d1dd45453dc2501419ec831f1ce585c3 Signed-off-by: Lajos Molnar <lajos@ti.com> Signed-off-by: Dima Svetlov <svetlov@ti.com> Conflicts: arch/arm/mach-omap2/board-4430sdp.c arch/arm/mach-omap2/board-44xx-tablet.c arch/arm/mach-omap2/board-omap4panda.c
Diffstat (limited to 'arch/arm/mach-omap2/include/mach')
-rw-r--r--arch/arm/mach-omap2/include/mach/omap4_ion.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/include/mach/omap4_ion.h b/arch/arm/mach-omap2/include/mach/omap4_ion.h
new file mode 100644
index 0000000..5126b7b
--- /dev/null
+++ b/arch/arm/mach-omap2/include/mach/omap4_ion.h
@@ -0,0 +1,38 @@
+/*
+ * arch/arm/mach-omap2/board-blaze.h
+ *
+ * Copyright (C) 2011 Texas Instruments
+ *
+ * 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 _OMAP4_ION_H
+#define _OMAP4_ION_H
+
+#define OMAP4_ION_HEAP_SECURE_INPUT_SIZE (SZ_1M * 90)
+#define OMAP4_ION_HEAP_TILER_SIZE (SZ_128M - SZ_32M)
+#define OMAP4_ION_HEAP_NONSECURE_TILER_SIZE SZ_32M
+
+#define PHYS_ADDR_SMC_SIZE (SZ_1M * 3)
+#define PHYS_ADDR_SMC_MEM (0x80000000 + SZ_1G - PHYS_ADDR_SMC_SIZE)
+#define PHYS_ADDR_DUCATI_SIZE (SZ_1M * 105)
+#define PHYS_ADDR_DUCATI_MEM (PHYS_ADDR_SMC_MEM - PHYS_ADDR_DUCATI_SIZE - \
+ OMAP4_ION_HEAP_SECURE_INPUT_SIZE)
+
+#ifdef CONFIG_ION_OMAP
+void omap_ion_init(void);
+void omap4_register_ion(void);
+#else
+static inline void omap_ion_init(void) { return; }
+static inline void omap4_register_ion(void) { return; }
+#endif
+
+#endif