From patchwork Wed May 18 07:54:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 623432 X-Patchwork-Delegate: sbabic@denx.de 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 3r8mjQ1vJlz9vKW for ; Wed, 18 May 2016 17:56:10 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=nB+1nTPW; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DFD7DA762A; Wed, 18 May 2016 09:55:33 +0200 (CEST) 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 UxJWn9-DEqlK; Wed, 18 May 2016 09:55:33 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 745AFA7690; Wed, 18 May 2016 09:55:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0E4B1A767F for ; Wed, 18 May 2016 09:55:09 +0200 (CEST) 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 gkjwVjZwluqr for ; Wed, 18 May 2016 09:55:08 +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-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by theia.denx.de (Postfix) with ESMTPS id 1AB31A74EE for ; Wed, 18 May 2016 09:54:58 +0200 (CEST) Received: by mail-pf0-f195.google.com with SMTP id g132so4300050pfb.3 for ; Wed, 18 May 2016 00:54:58 -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:in-reply-to:references; bh=JU/2e58h7qF7+6iDL1pU+RognH+/QBygg1MTvj2nI4o=; b=nB+1nTPW3heKP9hUqg0FXsEjid3MKmRtqBuhBSElqVZ9ni1Tv5tr6429KKgMr4za/B QiLzYjx6thXR2ozGeMXTmc03k2x/0ulZehE63XBrlvJrcwbd3DqY9iyh3RENRfEuibZw 6y2LT8QmYPQ6XE2zKhJPTJm4l6kdXA1rJvxQU2DcCuoKiAemth8AnCToRpcbBmPJ8uTI lC8vnwAogyTECK9H9lAY22cSbyDFlf6nMiJp/NTCAAxTU0cgpcvA02iBwZFa/ic9fWPI l8HZ5Nqoeh9x48raic+VNHesVP4o0PrFkg0u/kkijw0lAl1+rNt7n6J1racX27Lob4WW MMqQ== 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=JU/2e58h7qF7+6iDL1pU+RognH+/QBygg1MTvj2nI4o=; b=LOIMYpgNkCQJ6BbjADBmEXvT8mLzR1p50j1Cnn3OEg2Ey751cr1+Bn8RVpx5vag6bd lT4FUJAbL9zKF/LqhB/xB+bqJZZ/G48vRGDRH/usFASN6BaePmemKqAa0JS06Xu3VfZ4 XR40m6hS1lvav8SsmkDXvIBE2XBx5C3y0+S78qfln9k0f7+DcIbBdsYHQObEw4kq21qF n9DAc0Y4Mw7wnp+hCp6ZRCeir3VJe7UQbw3bHYtGfLZV1YHQyp7aYWhOgnDcZhFed2Hv ghmwwN8gDwArMsImKW/YvPX+rxYFxFCy4Z33T9PhS6VdQg2H+K5ZRZmEb9H2WcyFeNpP m7Dg== X-Gm-Message-State: AOPr4FWs/2Fq8wNUQ0Ea+5UY9Ohw9FvLHZsGelduI3PFwIJ+SSc/REEYLbSA4ICkNvhtzQ== X-Received: by 10.98.89.28 with SMTP id n28mr8794611pfb.41.1463558097709; Wed, 18 May 2016 00:54:57 -0700 (PDT) Received: from linux-7smt.suse (gate-zmy3.freescale.com. [192.88.167.1]) by smtp.gmail.com with ESMTPSA id 7sm9878312pfe.88.2016.05.18.00.54.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 May 2016 00:54:57 -0700 (PDT) From: Peng Fan To: u-boot@lists.denx.de, sbabic@denx.de Date: Wed, 18 May 2016 15:54:06 +0800 Message-Id: <1463558049-26158-10-git-send-email-van.freenix@gmail.com> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1463558049-26158-1-git-send-email-van.freenix@gmail.com> References: <1463558049-26158-1-git-send-email-van.freenix@gmail.com> Cc: fabio.estevam@nxp.com Subject: [U-Boot] [PATCH 10/13] ocotp: mxc: use simpler runtime cpu dection macros X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Use simpler runtime cpu dection macros. Signed-off-by: Peng Fan Cc: Stefano Babic --- drivers/misc/mxc_ocotp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/mxc_ocotp.c b/drivers/misc/mxc_ocotp.c index 65ff815..38344e8 100644 --- a/drivers/misc/mxc_ocotp.c +++ b/drivers/misc/mxc_ocotp.c @@ -95,9 +95,9 @@ u32 fuse_bank_physical(int index) { u32 phy_index; - if (is_cpu_type(MXC_CPU_MX6SL)) { + if (is_mx6sl()) { phy_index = index; - } else if (is_cpu_type(MXC_CPU_MX6UL)) { + } else if (is_mx6ul()) { if (index >= 6) phy_index = fuse_bank_physical(5) + (index - 6) + 3; else