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: 3842181 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1F4AD9F391 for ; Mon, 17 Mar 2014 09:01:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 550E0201F5 for ; Mon, 17 Mar 2014 09:01:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7D4D9201FB for ; Mon, 17 Mar 2014 09:01:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756302AbaCQJBJ (ORCPT ); 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-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=g3APOSUbOjj9Jl5dL2HrpDSdUhngi3d6UOWOAci3qq4bM4J7xTiLTJwwm9GihuFGk/ B9UcRLBREcy2SZ/q/en9Oq4VNjC4xJ/vdjELaUW9ruMOrTHZGFKn4p3uNEcqWlqUM1AX +dAndJPWUhZw670oYRxx0Nk681PgfH3ce7IDVD8PQpzvYDQXY+IGiPRBgpuAvSkcAxu9 ZTW7K9GVRandjyuaHpJVUjPoCOwagzfEcCxWsQ6ahA2GkQURH5AkYwlFBPnmn27TdQrL OKKpS0zB2Kc61SLzsNkeM1E6vhBkbkeGSi3bMA0fLqsojrjJy6/1dyzr4hY6v401Jc3k i1wg== X-Gm-Message-State: ALoCoQm8LsQ41V8s998Pt/mD/kLAgHVKX+krmHRL68E2GPzc0WZRWmK6rHJCQdvE46XqXioJxxvv 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: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 }