[PATCH 5/5] arm: exynos: enable helper functions for dt based platforms

Rahul Sharma rahul.sharma at samsung.com
Mon Nov 5 18:31:25 EST 2012


This patch enables the support for helper function platform_set_sysmmu
for DT based platform which is defined under CONFIG_IOMMU_API. Earlier
CONFIG_EXYNOS_DEV_SYSMMU was restricting its usage for DT platforms like
exynos5250_DT.

Signed-off-by: Rahul Sharma <rahul.sharma at samsung.com>
---
 arch/arm/mach-exynos/include/mach/sysmmu.h |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/arch/arm/mach-exynos/include/mach/sysmmu.h b/arch/arm/mach-exynos/include/mach/sysmmu.h
index 88a4543..ad0f211 100644
--- a/arch/arm/mach-exynos/include/mach/sysmmu.h
+++ b/arch/arm/mach-exynos/include/mach/sysmmu.h
@@ -12,6 +12,8 @@
 #ifndef _ARM_MACH_EXYNOS_SYSMMU_H_
 #define _ARM_MACH_EXYNOS_SYSMMU_H_
 
+#include <linux/device.h>
+
 struct sysmmu_platform_data {
 	char *dbgname;
 	/* comma(,) separated list of clock names for clock gating */
@@ -24,7 +26,6 @@ struct sysmmu_platform_data {
 #define SYSMMU_CLOCK_NAME2 "sysmmu_mc"
 
 #ifdef CONFIG_EXYNOS_DEV_SYSMMU
-#include <linux/device.h>
 struct platform_device;
 
 #define SYSMMU_PLATDEV(ipname) exynos_device_sysmmu_##ipname
@@ -49,15 +50,15 @@ extern struct platform_device SYSMMU_PLATDEV(camif0);
 extern struct platform_device SYSMMU_PLATDEV(camif1);
 extern struct platform_device SYSMMU_PLATDEV(2d);
 
+#endif
+
 #ifdef CONFIG_IOMMU_API
 static inline void platform_set_sysmmu(
 				struct device *sysmmu, struct device *dev)
 {
 	dev->archdata.iommu = sysmmu;
 }
-#endif
-
-#else /* !CONFIG_EXYNOS_DEV_SYSMMU */
+#else /* !CONFIG_IOMMU_API */
 #define platform_set_sysmmu(sysmmu, dev) do { } while (0)
 #endif
 
-- 
1.7.0.4



More information about the devicetree-discuss mailing list