devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arun Kumar K <arun.kk@samsung.com>
To: linux-samsung-soc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org
Cc: kgene.kim@samsung.com, k.debski@samsung.com,
	s.nawrocki@samsung.com, sachin.kamat@linaro.org,
	arunkk.samsung@gmail.com
Subject: [PATCH v2 5/5] ARM: EXYNOS: Add mfc-v7 to memory reserve
Date: Thu, 20 Jun 2013 12:23:42 +0530	[thread overview]
Message-ID: <1371711222-9232-6-git-send-email-arun.kk@samsung.com> (raw)
In-Reply-To: <1371711222-9232-1-git-send-email-arun.kk@samsung.com>

The patch updates the exynos5 memory reservation to reserve
memory for mfc-v7 also in addition to v6.

Signed-off-by: Arun Kumar K <arun.kk@samsung.com>
---
 arch/arm/mach-exynos/mach-exynos5-dt.c |   14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c
index f874b77..fdb6181 100644
--- a/arch/arm/mach-exynos/mach-exynos5-dt.c
+++ b/arch/arm/mach-exynos/mach-exynos5-dt.c
@@ -60,13 +60,17 @@ static char const *exynos5_dt_compat[] __initdata = {
 static void __init exynos5_reserve(void)
 {
 #ifdef CONFIG_S5P_DEV_MFC
-	struct s5p_mfc_dt_meminfo mfc_mem;
+	int i;
+	struct s5p_mfc_dt_meminfo mfc_mem[] = {
+		{.compatible = "samsung,mfc-v6"},
+		{.compatible = "samsung,mfc-v7"},
+	};
 
 	/* Reserve memory for MFC only if it's available */
-	mfc_mem.compatible = "samsung,mfc-v6";
-	if (of_scan_flat_dt(s5p_fdt_find_mfc_mem, &mfc_mem))
-		s5p_mfc_reserve_mem(mfc_mem.roff, mfc_mem.rsize, mfc_mem.loff,
-				mfc_mem.lsize);
+	for (i = 0; i < ARRAY_SIZE(mfc_mem); i++)
+		if (of_scan_flat_dt(s5p_fdt_find_mfc_mem, &mfc_mem[i]))
+			s5p_mfc_reserve_mem(mfc_mem[i].roff, mfc_mem[i].rsize,
+					mfc_mem[i].loff, mfc_mem[i].lsize);
 #endif
 }
 
-- 
1.7.9.5

  parent reply	other threads:[~2013-06-20  6:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-20  6:53 [PATCH v2 0/5] DT/ARCH updates for MFC Arun Kumar K
2013-06-20  6:53 ` [PATCH v2 1/5] ARM: dts: Update clocks entry in MFC binding documentation Arun Kumar K
2013-06-20  6:53 ` [PATCH v2 2/5] ARM: dts: Remove unsused MFC clock from exynos4 Arun Kumar K
2013-06-20  6:53 ` [PATCH v2 3/5] ARM: dts: Update 5250 MFC node Arun Kumar K
2013-06-20  6:53 ` [PATCH v2 4/5] ARM: dts: Add MFC node for exynos 5420 Arun Kumar K
2013-06-20  6:53 ` Arun Kumar K [this message]
2013-08-14 10:30 ` [PATCH v2 0/5] DT/ARCH updates for MFC Kukjin Kim

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=1371711222-9232-6-git-send-email-arun.kk@samsung.com \
    --to=arun.kk@samsung.com \
    --cc=arunkk.samsung@gmail.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=k.debski@samsung.com \
    --cc=kgene.kim@samsung.com \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=s.nawrocki@samsung.com \
    --cc=sachin.kamat@linaro.org \
    /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).