From patchwork Mon Mar 17 08:54:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 3842191 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A85E6BF540 for ; Mon, 17 Mar 2014 09:01:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D9858201FB for ; Mon, 17 Mar 2014 09:01:46 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C022F201F5 for ; Mon, 17 Mar 2014 09:01:45 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WPTQS-0005HE-SS; Mon, 17 Mar 2014 09:01:41 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WPTQQ-0003RT-GV; Mon, 17 Mar 2014 09:01:38 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WPTQN-0003R9-Kq for linux-arm-kernel@lists.infradead.org; Mon, 17 Mar 2014 09:01:36 +0000 Received: by mail-pb0-f49.google.com with SMTP id jt11so5393876pbb.36 for ; Mon, 17 Mar 2014 02:01:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=NGWHcbSdE2nH+c89zvc0meXuMs+6xB+D66XZkabhIi0=; b=k2r5yFFT+eXikayyMGXN8Qwh7EAuOzVCx0p2jAkiSFvnt6sNlVEiYpXDVSk1QpoHLq T3BGQGPwaDtoR7M1Jy+fUGyVuWjdUW2Piwj9fBlTxUtOxFqqOzBRaJl9FTamygCGM35V nW+xyKEjobdoR76Oh28tLce39gYe9GDQqGu9tNhZ1CPl06MCtzY1W0MHZMcED77aK7Kq +TE/H+HMzYZ7tdhRUK3e0wbh/IimOQ3eWwgWyrO6ZKiRK5jmQZ/xc3PEB33aPoH6t8f8 RMwDaFo0cl4o77hZ4fTM0ERNnfWMSDqCyJxhahr/QgkHJ2BaJxxyxvKwJ+iuQ+cW0uLQ zQYQ== X-Gm-Message-State: ALoCoQlwd8dZ3HffUdEUM6FVVqClEGMWtcOXvDsCyEBeZ0O56M2wcjrIYB8q8SMG026czcASc6Rr X-Received: by 10.66.139.70 with SMTP id qw6mr24151765pab.111.1395046867944; Mon, 17 Mar 2014 02:01:07 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id z3sm68822457pas.15.2014.03.17.02.01.05 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Mar 2014 02:01:07 -0700 (PDT) From: Sachin Kamat To: linux-samsung-soc@vger.kernel.org Subject: [PATCH 1/1] ARM: EXYNOS: Add support to reserve memory for MFC-v7 Date: Mon, 17 Mar 2014 14:24:47 +0530 Message-Id: <1395046487-21249-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140317_050135_754336_7BEA137B X-CRM114-Status: UNSURE ( 9.48 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: sachin.kamat@linaro.org, kgene.kim@samsung.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Reserve memory for MFC-v7 IP. Signed-off-by: Sachin Kamat --- Based on top of Tushar's patch: [PATCH V2] ARM: SAMSUNG: Reorganize calls to reserve memory for MFC http://www.spinics.net/lists/linux-samsung-soc/msg25501.html --- arch/arm/mach-exynos/mach-exynos5-dt.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c index 9586439b2d0e..9a8a798d2ad0 100644 --- a/arch/arm/mach-exynos/mach-exynos5-dt.c +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c @@ -59,7 +59,15 @@ static char const *exynos5_dt_compat[] __initdata = { static void __init exynos5_reserve(void) { #ifdef CONFIG_S5P_DEV_MFC - of_scan_flat_dt(s5p_fdt_alloc_mfc_mem, "samsung,mfc-v6"); + int i; + char *mfc_mem[] = { + "samsung,mfc-v6", + "samsung,mfc-v7", + }; + + for (i = 0; i < ARRAY_SIZE(mfc_mem); i++) + if (of_scan_flat_dt(s5p_fdt_alloc_mfc_mem, mfc_mem[i])) + break; #endif }