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: 3858741 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 BFA2A9F334 for ; Wed, 19 Mar 2014 18:12:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0C63C20117 for ; Wed, 19 Mar 2014 18:12:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 373FD20173 for ; Wed, 19 Mar 2014 18:12:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964933AbaCSMc0 (ORCPT ); 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-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=aL5yIllILZhmolPBRLShVeg2NEQtN1KSLddTnbEdCBwMwT0IdNjAdGVk0QCz0xfYHU RDM0OuCixV+LUGj987HQS6ptTQObu+OYRGEztTFHdsrOgv78Rt+Vef7NDV4OzqOp4oA0 LokKPXfuBqeMccB736oEUidqZ2MK49kuGm3wIg1p14tCaX6eg6fRwTUox1Mg2b5cvXMo KehiMgEKzkhRb1geUS1Wd/5q6UXakt6UX4qMvHlQovMHDOBVC945Zc4zvJWZQc8L2LAa VPkM3QjSBCkttcgpulZWS8Q5xAvYaND7rPe352Z3V4J/ejfxDvhfg38EIwVTOh42mLOz wYgQ== X-Gm-Message-State: ALoCoQk2NVRUw1kL1eVJONs1PFRoXKwOCltjJ7g31vkedoYfZ1LIgQaWmxUbQSIg/XJsRFYZTasl 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: 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 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