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: 3850611 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 2D1F0BF540 for ; Wed, 19 Mar 2014 12:33:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 601E1203B8 for ; Wed, 19 Mar 2014 12:33:36 +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 1BD7A203B7 for ; Wed, 19 Mar 2014 12:33:35 +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 1WQFgJ-0004Fh-8F; Wed, 19 Mar 2014 12:33:15 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WQFgA-0000gP-Nu; Wed, 19 Mar 2014 12:33:06 +0000 Received: from mail-pd0-f173.google.com ([209.85.192.173]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WQFfq-0000dW-M3 for linux-arm-kernel@lists.infradead.org; Wed, 19 Mar 2014 12:32:50 +0000 Received: by mail-pd0-f173.google.com with SMTP id z10so8598743pdj.4 for ; Wed, 19 Mar 2014 05:32:25 -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:in-reply-to :references; bh=h9INOVEKr6bAHs95EVFmlt+Xw6es19LI+CR1hzWeY2k=; b=g9cGiLWnPiwYV9rU81CKIs6MwOeColuPLTyGDigkDYozGc2C2AFGi//qiTwuhu5jPm BmAazWRT5Hr0S27F/bCQhBwTKnnRl31o8ECH3N7EJrl2cPzmg7QmCvbJjO2pU0y0FOhr /KX++k3xxdd5a7D7YTljsGH69HCZ21snMhgSHgKcL51L0tRw7RM8roG8OZXrXVq9hegr C37N6Pzz2/rj74eqkGfznsbHhU4GNpW+gzxVLSsQdvR8NRwqc+sJjDrXzfzna6YMHhby mJMF+4tO029QEollPP3YG4Q7OY9ULL4+md5JHa0cq3IwOn+iCPcv6c1y9siqMYgKegKd PfYA== X-Gm-Message-State: ALoCoQm43j4bQmaM7RByJwQKJKvm+PY/ylHU/nAu/Z2AQoGzmvhnx0tZjr3uXjUfuoHE0uzB3R7w 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140319_083246_901289_9F94B954 X-CRM114-Status: UNSURE ( 9.14 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) Cc: sachin.kamat@linaro.org, t.figa@samsung.com, kgene.kim@samsung.com, arnd@arndb.de, 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 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