From patchwork Thu Feb 2 14:56:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 723084 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 3vDjkk1Ylcz9s7G for ; Fri, 3 Feb 2017 01:56:46 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 086BF4B636; Thu, 2 Feb 2017 15:56:42 +0100 (CET) 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 YmLu6vFyuqLy; Thu, 2 Feb 2017 15:56:41 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C50ED4B6D2; Thu, 2 Feb 2017 15:56:30 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 847A94B5B1 for ; Thu, 2 Feb 2017 15:56:25 +0100 (CET) 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 Su3ILxsdlmJj for ; Thu, 2 Feb 2017 15:56:25 +0100 (CET) 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-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by theia.denx.de (Postfix) with ESMTPS id 4ECB24B58A for ; Thu, 2 Feb 2017 15:56:23 +0100 (CET) Received: by mail-wm0-f68.google.com with SMTP id u63so4716711wmu.2 for ; Thu, 02 Feb 2017 06:56:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OwKjtdCip2nEIPYOm3RZ1ZnM7uOy5TztiigwM0NE/j4=; b=rNtgaRn45VCfiz4uoCEilq5PKbD+F5AaTfv0v02t9azbZZANzdQWalc+uIrYmMUeN+ gBSabuJOpDDJBQPmGxMlnUcIesqzQfd91sVx0nRLUkPlloUmhPuRuSM489zlJYD4VP3M ybBwJxrrwcrJ0a4X4SzWvS6El1nnHiVCni5IJNSJ9l4vWCluI0RSAEvVAKYvJh0aURdU 5iPYyFzedIP1JgYRY5oQKfj/Z2N4cu1wVERdqMTjvBbZOyQkHQhxoC89UturhuXHEL43 Y26AjRH2aOv1R6kefKzo8UYi1XSopGYD808LOso2Hs0ES0Zo0tD+w2Z16bTVnYrS51KW qPug== X-Gm-Message-State: AIkVDXJZXbo3x2lti9AeFXkcfGb0JE3nynbLLcYeQyW6bA1/lnGsAAj3F6cS2lOQrVtyeg== X-Received: by 10.28.197.77 with SMTP id v74mr8660630wmf.30.1486047382371; Thu, 02 Feb 2017 06:56:22 -0800 (PST) Received: from jagan-XPS-13-9350.homenet.telecomitalia.it (host211-95-static.0-79-b.business.telecomitalia.it. [79.0.95.211]) by smtp.gmail.com with ESMTPSA id s26sm39984869wra.26.2017.02.02.06.56.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Feb 2017 06:56:21 -0800 (PST) From: Jagan Teki To: Stefano Babic Date: Thu, 2 Feb 2017 15:56:00 +0100 Message-Id: <1486047373-31676-3-git-send-email-jagan@openedev.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1486047373-31676-1-git-send-email-jagan@openedev.com> References: <1486047373-31676-1-git-send-email-jagan@openedev.com> Cc: u-boot@lists.denx.de, Jagan Teki , Matteo Lisi Subject: [U-Boot] [PATCH v3 02/15] imx: spl: Update NAND bootmode detection bit 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" BOOT_CFG1[7:4] the NAND boot mode selection is done only when BOOT_CFG1[7] is 1 hence update the NAND boot mode detection bit case. This information available on Table 8-11. NAND Boot eFUSE Descriptions, from IMX6DQRM. Cc: Stefano Babic Cc: Tim Harvey Signed-off-by: Jagan Teki --- arch/arm/imx-common/spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/imx-common/spl.c b/arch/arm/imx-common/spl.c index a7f9705..fc3704b 100644 --- a/arch/arm/imx-common/spl.c +++ b/arch/arm/imx-common/spl.c @@ -61,8 +61,8 @@ u32 spl_boot_device(void) case 0x6: case 0x7: return BOOT_DEVICE_MMC1; - /* NAND Flash: 8.5.2 */ - case 0x8 ... 0xf: + /* NAND Flash: 8.5.2, Table 8-10 */ + case 0x8: return BOOT_DEVICE_NAND; } return BOOT_DEVICE_NONE;