From patchwork Wed Jun 5 23:57:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 2676461 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id BA1EEDF264 for ; Wed, 5 Jun 2013 23:57:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754309Ab3FEX5r (ORCPT ); Wed, 5 Jun 2013 19:57:47 -0400 Received: from mail-bk0-f48.google.com ([209.85.214.48]:45850 "EHLO mail-bk0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752352Ab3FEX5q (ORCPT ); Wed, 5 Jun 2013 19:57:46 -0400 Received: by mail-bk0-f48.google.com with SMTP id jf17so1249301bkc.35 for ; Wed, 05 Jun 2013 16:57:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=EGda7axBM1Voi6Wwr/GzxrDsBgbnrutQ0gkKpjZ6XWM=; b=j75+CJNBMXaYUKtWMgr0JOwkdbLSF948qksCzm2sjiWAB84hfuaVwv3aeuhjUI6avP tspYqQZsWYeFYJnQu/J6CT6ho8QzsSjc9Znb161HP0qHp5UISfFz7wm/HSlOermfwTyO /CiJ/odReebO3e7d3N7zMew0MpsEeqTZVk6U1tgxnQq0UeCTNMLJkCkLJeXN3+2Gnmxs nGRnNjlBUEMIMu43TExE2e/Hzev6hOUl5JJvdccJgXQGEqF1tcnA3EzXml1BZ4So013x RUrXW4fTQb2ep4MQBYLoFXK6PfyE2BLT1ZKhZadDu/MKoPm8zp0OTtgVM4MfUlf4FcOy drmA== X-Received: by 10.205.37.74 with SMTP id td10mr10353310bkb.15.1370476665098; Wed, 05 Jun 2013 16:57:45 -0700 (PDT) Received: from flatron.tomeq (87-207-52-162.dynamic.chello.pl. [87.207.52.162]) by mx.google.com with ESMTPSA id so13sm26761378bkb.15.2013.06.05.16.57.43 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Jun 2013 16:57:44 -0700 (PDT) From: Tomasz Figa To: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org, Kukjin Kim , Mark Brown , Mike Turquette , Arnd Bergmann , Olof Johansson , stern@rowland.harvard.edu, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, Tomasz Figa Subject: [PATCH 3/7] ARM: SAMSUNG: Add soc_is_s3c6400/s3c6410 macros Date: Thu, 6 Jun 2013 01:57:27 +0200 Message-Id: <1370476651-6743-4-git-send-email-tomasz.figa@gmail.com> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1370476651-6743-1-git-send-email-tomasz.figa@gmail.com> References: <1370476651-6743-1-git-send-email-tomasz.figa@gmail.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org This patch adds soc_is_s3c6400() and soc_is_s3c6410() macros that allow to distinguish between specific SoCs from s3c64xx series that is needed to handle differences between them. Signed-off-by: Tomasz Figa --- 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 989fefe..8e55196 100644 --- a/arch/arm/plat-samsung/include/plat/cpu.h +++ b/arch/arm/plat-samsung/include/plat/cpu.h @@ -85,8 +85,12 @@ IS_SAMSUNG_CPU(exynos5440, EXYNOS5440_SOC_ID, EXYNOS5_SOC_MASK) #endif #if defined(CONFIG_CPU_S3C6400) || defined(CONFIG_CPU_S3C6410) +# define soc_is_s3c6400() is_samsung_s3c6400() +# define soc_is_s3c6410() is_samsung_s3c6410() # define soc_is_s3c64xx() (is_samsung_s3c6400() || is_samsung_s3c6410()) #else +# define soc_is_s3c6400() 0 +# define soc_is_s3c6410() 0 # define soc_is_s3c64xx() 0 #endif