From patchwork Wed Mar 19 12:25:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 26565 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BA2C820534 for ; Wed, 19 Mar 2014 12:32:32 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wn1sf31772846obc.5 for ; Wed, 19 Mar 2014 05:32:32 -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:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=rdQwhhf4ew7qCJla714xJQwPUtl6i6pgL7zBl+MtaFI=; b=ebAdU0XXCBQc8Wj4z7AUklYHgOcuI2IcjC/NCC7Vsx6MZBLw9IqUCQyhPpzbLQEqu1 9QiF8P7wDeEHxkbfFJ+D6nab+N1wVJnAhdN3nNB93GM1j93/pGuWXTg5MPmMqpNmrJxR 5Z8EAqfTw/yjxW6BroDaohOcqrPspGwzQtvHLJJUcF0ZC/9jzY3x0QOWZqCGzN2+HgFx r9YPNNY6MVFWd01lKJJwJdElkNellwfRM8hgshrRk7YxCxm85lgnCUTdz/3grg1Xw7ql aXibaoAcdKR7GSfhKTfIbFcoYuhN7qjLQIBPrNq3at9BYS9taNZOp0xCzAMVOQQlIgr2 TXxw== X-Gm-Message-State: ALoCoQmdceCKRbsUzjB+Vt80JIicC+/ybzvtnpHeA7jkaa9jxBDusEFq+s1D+bsEUovHF/++z9uN X-Received: by 10.50.225.6 with SMTP id rg6mr10746005igc.6.1395232352224; Wed, 19 Mar 2014 05:32:32 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.104.117 with SMTP id z108ls2510953qge.51.gmail; Wed, 19 Mar 2014 05:32:32 -0700 (PDT) X-Received: by 10.58.122.164 with SMTP id lt4mr29916713veb.2.1395232352105; Wed, 19 Mar 2014 05:32:32 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id pd4si4397291veb.213.2014.03.19.05.32.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Mar 2014 05:32:32 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.172 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.172; Received: by mail-vc0-f172.google.com with SMTP id la4so8914153vcb.17 for ; Wed, 19 Mar 2014 05:32:32 -0700 (PDT) X-Received: by 10.220.10.2 with SMTP id n2mr1198742vcn.26.1395232352032; Wed, 19 Mar 2014 05:32:32 -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 i9csp295090vck; Wed, 19 Mar 2014 05:32:31 -0700 (PDT) X-Received: by 10.68.0.35 with SMTP id 3mr38966102pbb.52.1395232350930; Wed, 19 Mar 2014 05:32:30 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qy5si14894488pab.62.2014.03.19.05.32.27; Wed, 19 Mar 2014 05:32:27 -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 S964933AbaCSMc0 (ORCPT + 8 others); Wed, 19 Mar 2014 08:32:26 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:50553 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964931AbaCSMcZ (ORCPT ); Wed, 19 Mar 2014 08:32:25 -0400 Received: by mail-pa0-f54.google.com with SMTP id lf10so8951455pab.27 for ; Wed, 19 Mar 2014 05:32:25 -0700 (PDT) X-Received: by 10.69.31.75 with SMTP id kk11mr38632069pbd.101.1395232345280; Wed, 19 Mar 2014 05:32:25 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id vg1sm61945544pbc.44.2014.03.19.05.32.22 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Mar 2014 05:32:24 -0700 (PDT) From: Sachin Kamat To: linux-samsung-soc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, t.figa@samsung.com, arnd@arndb.de, kgene.kim@samsung.com, sachin.kamat@linaro.org Subject: [PATCH 1/4] ARM: SAMSUNG: Introduce generic Exynos4 and 5 helpers Date: Wed, 19 Mar 2014 17:55:54 +0530 Message-Id: <1395231957-22032-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1395231957-22032-1-git-send-email-sachin.kamat@linaro.org> References: <1395231957-22032-1-git-send-email-sachin.kamat@linaro.org> 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.172 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: , Add helpers to check for Exynos4 and 5 family of SoCs. This will eliminate comparing long list of SoCs and make code simpler. Signed-off-by: Sachin Kamat --- arch/arm/plat-samsung/include/plat/cpu.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/plat-samsung/include/plat/cpu.h b/arch/arm/plat-samsung/include/plat/cpu.h index d762533b856f..b9ae39ca1b7f 100644 --- a/arch/arm/plat-samsung/include/plat/cpu.h +++ b/arch/arm/plat-samsung/include/plat/cpu.h @@ -166,6 +166,10 @@ IS_SAMSUNG_CPU(exynos5440, EXYNOS5440_SOC_ID, EXYNOS5_SOC_MASK) # define soc_is_exynos5440() 0 #endif +#define soc_is_exynos4() (soc_is_exynos4210() || soc_is_exynos4212() || \ + soc_is_exynos4412()) +#define soc_is_exynos5() (soc_is_exynos5250() || soc_is_exynos5420()) + #define IODESC_ENT(x) { (unsigned long)S3C24XX_VA_##x, __phys_to_pfn(S3C24XX_PA_##x), S3C24XX_SZ_##x, MT_DEVICE } #ifndef KHZ