From patchwork Mon Oct 15 11:58:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 191548 X-Patchwork-Delegate: promsoft@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id B5D562C00AC for ; Mon, 15 Oct 2012 22:58:59 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F02F74A044; Mon, 15 Oct 2012 13:58:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1ClbkSv8jMUp; Mon, 15 Oct 2012 13:58:48 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B30A04A049; Mon, 15 Oct 2012 13:58:46 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9BA784A049 for ; Mon, 15 Oct 2012 13:58:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jc16-Rczu18U for ; Mon, 15 Oct 2012 13:58:44 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by theia.denx.de (Postfix) with ESMTPS id EAC5C4A044 for ; Mon, 15 Oct 2012 13:58:40 +0200 (CEST) Received: by mail-pa0-f44.google.com with SMTP id fb11so4778343pad.3 for ; Mon, 15 Oct 2012 04:58:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=AE5yqk79tdbfLa77AKXxnejwXWWS9T85JfnI4GEty78=; b=Iy15vFv/mX+yMTFRxbOHTbqnBa4n7GW2iKJOYDnfBSG2HJkkuPLv/Izd75CB6NvF1T p6PU36toeBHqIZ/DPw29qEzhATHbYNSqLxre028v3wHktaWwFHWhHwbd6VU0/NMtaBl3 Je7D3GsEq+UTwAPjfGYNHjRLoH4XKZmToZzSePuVidbC0sMIr81DM3TyZLTLHSitEvVp O4GMJ3I37Pyp9MKlZyJLUp5T/jRhgEqSoDqtP6u8Rx+TZKMml/4JnSQ/n/ur0jKdY/sh 500Da0ddDYG8FK50UCdMuoUVbFm9iyfMpFqY+UcBaeiEpyxorib0RrAKMbUizLxddFy9 R+Ig== Received: by 10.68.116.228 with SMTP id jz4mr35433573pbb.166.1350302316955; Mon, 15 Oct 2012 04:58:36 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ve6sm4300910pbc.58.2012.10.15.04.58.33 (version=SSLv3 cipher=OTHER); Mon, 15 Oct 2012 04:58:36 -0700 (PDT) From: Chander Kashyap To: u-boot@lists.denx.de Date: Mon, 15 Oct 2012 17:28:23 +0530 Message-Id: <1350302303-5026-1-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQmj2O/T/PJntsMtZLmDk7W+oN1RFCvqQPzJKQPxYYJGCUctBx2CZOapLI27eL5wFgF+UCSi Cc: linaro-dev@lists.linaro.org, patches@linaro.org Subject: [U-Boot] [PATCH v2] ARCH: EXYNOS: add support to match product id X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Minkyu Kang Based upon single SoC there can be multiple varients. This patch add support to match the complete product ID. Signed-off-by: Chander Kashyap --- Changes from v1: - Author name changed arch/arm/include/asm/arch-exynos/cpu.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/include/asm/arch-exynos/cpu.h b/arch/arm/include/asm/arch-exynos/cpu.h index 2cd4ae1..2bde10c 100644 --- a/arch/arm/include/asm/arch-exynos/cpu.h +++ b/arch/arm/include/asm/arch-exynos/cpu.h @@ -139,6 +139,15 @@ static inline int cpu_is_##type(void) \ IS_SAMSUNG_TYPE(exynos4, 0x4) IS_SAMSUNG_TYPE(exynos5, 0x5) +#define IS_EXYNOS_TYPE(type, id) \ +static inline int proid_is_##type(void) \ +{ \ + return s5p_cpu_id == id; \ +} + +IS_EXYNOS_TYPE(exynos4210, 0x4210) +IS_EXYNOS_TYPE(exynos5250, 0x5250) + #define SAMSUNG_BASE(device, base) \ static inline unsigned int samsung_get_base_##device(void) \ { \