devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rahul Sharma <rahul.sharma@samsung.com>
To: linux-samsung-soc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org
Cc: tomasz.figa@gmail.com, kgene.kim@samsung.com,
	t.stanislaws@samsung.com, sw0312.kim@samsung.com,
	inki.dae@samsung.com, jy0922.shim@samsung.com,
	kyungmin.park@samsung.com, thomas.ab@samsung.com,
	prashanth.g@samsung.com, joshi@samsung.com,
	s.shirish@samsung.com, r.sh.open@gmail.com,
	rahul.sharma@samsung.com
Subject: [PATCH 5/5] arm: exynos: enable helper functions for dt based platforms
Date: Mon, 05 Nov 2012 13:01:25 +0530	[thread overview]
Message-ID: <1352100685-7695-6-git-send-email-rahul.sharma@samsung.com> (raw)
In-Reply-To: <1352100685-7695-1-git-send-email-rahul.sharma@samsung.com>

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@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

      parent reply	other threads:[~2012-11-05  7:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-05  7:31 [PATCH 0/5] add dt based support for iommu for hdmi Rahul Sharma
2012-11-05  7:31 ` [PATCH 1/5] arm: exynos5: add tv iommu device to aux data lookup table Rahul Sharma
2012-11-05  7:31 ` [PATCH 2/5] arm: exynos5: add clock information for tv iommu device Rahul Sharma
2012-11-05  7:31 ` [PATCH 3/5] dts: exynos5: add dt node " Rahul Sharma
2012-11-05  7:31 ` [PATCH 4/5] arm: exynos5: add iommu support for exynos5250_DT platform Rahul Sharma
2012-11-05  7:31 ` Rahul Sharma [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1352100685-7695-6-git-send-email-rahul.sharma@samsung.com \
    --to=rahul.sharma@samsung.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=inki.dae@samsung.com \
    --cc=joshi@samsung.com \
    --cc=jy0922.shim@samsung.com \
    --cc=kgene.kim@samsung.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=prashanth.g@samsung.com \
    --cc=r.sh.open@gmail.com \
    --cc=s.shirish@samsung.com \
    --cc=sw0312.kim@samsung.com \
    --cc=t.stanislaws@samsung.com \
    --cc=thomas.ab@samsung.com \
    --cc=tomasz.figa@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).