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: 26341 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f70.google.com (mail-qa0-f70.google.com [209.85.216.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 958F720143 for ; Mon, 17 Mar 2014 09:01:14 +0000 (UTC) Received: by mail-qa0-f70.google.com with SMTP id hw13sf11675671qab.9 for ; Mon, 17 Mar 2014 02:01:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=of1SHPdpJSDLX9IwQzwz+QLA7ff+43gHOFhUDPq+L3g=; b=PWw4qa2zZYGcpBxIN6u+dBGWS6jRT9qTqymyjCP8aqPen01Az3YGHxNUfm9uoZywnr VcrYkc13OgTQElc58HZzmRGiQA0awdqKzvX7SK5hTagbKgicndVLd9+17+xNYPTJlLZL M5zpSH4k6KZyJbeocg/D/YDSXX3vz6KutIhsocK+UzQ6ceJzJ3JCnD9L75K6HugkIGAU Uo4mvPsg9lHWRfRf0AsDH3t+wiufVKl4R6kqbmcVpFXZdNE4jdBsDXWQIMWQQ4p5cjy1 2flsm0OQVpk/4lJWhy9qNjpU8eTvLEjFNtc0YOZ1Jb38WGtJ+6Hq+5SHdFrqRxSbgpLH JpjA== X-Gm-Message-State: ALoCoQk7/D9H0+sLqsE8tkroRiaacUXpZElfevBFnq/Eeg+F71iU/CDc+DWqSF8rkGjvuQgQOMhJ X-Received: by 10.236.117.79 with SMTP id i55mr1779842yhh.16.1395046874244; Mon, 17 Mar 2014 02:01:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.95.230 with SMTP id i93ls1581369qge.28.gmail; Mon, 17 Mar 2014 02:01:14 -0700 (PDT) X-Received: by 10.52.26.161 with SMTP id m1mr4863273vdg.24.1395046874158; Mon, 17 Mar 2014 02:01:14 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id f5si2653083vej.197.2014.03.17.02.01.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Mar 2014 02:01:13 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id lg15so5338573vcb.2 for ; Mon, 17 Mar 2014 02:01:13 -0700 (PDT) X-Received: by 10.52.15.132 with SMTP id x4mr145212vdc.31.1395046872931; Mon, 17 Mar 2014 02:01:12 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp111832vck; Mon, 17 Mar 2014 02:01:12 -0700 (PDT) X-Received: by 10.68.76.68 with SMTP id i4mr24404502pbw.73.1395046872082; Mon, 17 Mar 2014 02:01:12 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3si9455473pay.430.2014.03.17.02.01.11; Mon, 17 Mar 2014 02:01:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756302AbaCQJBJ (ORCPT + 8 others); Mon, 17 Mar 2014 05:01:09 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:52728 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751421AbaCQJBI (ORCPT ); Mon, 17 Mar 2014 05:01:08 -0400 Received: by mail-pa0-f42.google.com with SMTP id fb1so5466960pad.15 for ; Mon, 17 Mar 2014 02:01:08 -0700 (PDT) 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 Cc: linux-arm-kernel@lists.infradead.org, kgene.kim@samsung.com, sachin.kamat@linaro.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 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 }