From patchwork Wed Jun 12 08:32:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shyam Saini X-Patchwork-Id: 544 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 89F8D3F35E for ; Wed, 12 Jun 2019 10:32:50 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id z10sf10909303pgf.15 for ; Wed, 12 Jun 2019 01:32:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1560328368; cv=pass; d=google.com; s=arc-20160816; b=ZdmYhJ3/tJtVGhbxzaozuPEuFo7RbYBjTprlaGIBjoUDNZ7Mnf+/Aq49aYPRW7nBJH Nt5J08x/e52W1774Cj4ajy+Muh2egPHHVlFd3CLpbZBr0CFYKuh84bW2QVjxdhe3hcfr zDhPiPnNE7Y1pWmHW1qsuI7EO+syZRATwu4uupiiGlx1H45AyU/5zKXrfRlj/k3Pv/eo +UpiUKlxwKbGDJDBAd8wskY/VqPblWVZOV7iaInqkbvmR4UjJAXYWbdLJj+URBdJ+sUq 0tiYFmZTnjr3kJ68ill0A5rj0DzkSxMGFvAHhKVC8fRPaPqMcrvPFsozigQZjopYwf6b 0GyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:message-id:date:subject:cc:to:from :mime-version:dkim-signature; bh=PclyRSSZPartdAetmvSfET6oFojsTX3qo9/kDnEhelM=; b=tAsCZDdS1zLqlpOUNQmm6UcsMKMRkaJLOh+B4LIyaUYTiUaRMpkJgD2cBqjlSyt5xu ZOJeplwsVG9ErjQkAOpnTKvG9Ozd449vxEgE5ccG8NXkt8FKtuv4bHlLlgMgfeYNM/fV aAf3uWRegdDbpEwq5pPLooKdY8eH+wrpaeOJDtT0YbXWB6ihy812s794jPGbCayvAnW8 pzU35VTykHcmh4tCRVLS3/3TAklpVj9WRU5YDsVj+/fyLrZ3Lv6IQahX2+uZE0TBV4Vv mfJL3vwwU+luZ8EmwM529NM3+sT/c5p0bl3sC/WRpCqq2UnnRNY2aZir9LQoDepF0bAR K9dg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=G7zOSGxE; spf=pass (google.com: domain of shyam.saini@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=shyam.saini@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:from:to:cc:subject:date:message-id:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=PclyRSSZPartdAetmvSfET6oFojsTX3qo9/kDnEhelM=; b=XEyY2b8SfYJPQ19cQV7dfz0/8DqSQzmbn7SnKwcpbZ8/IT5KdPN7PaS4qmLGpeU8F9 t94edgq12rRmv9Xm6r8YrsFDGlqkP+UoaxWGXJi/7dI8wYJla9A+Kfu8QQwaDAOJWcBW WfB5TiiCMoC3ovLC0KnZ2hs3qadINRzkCm0n0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=PclyRSSZPartdAetmvSfET6oFojsTX3qo9/kDnEhelM=; b=ppVlO/13BsnIJmGltTrUs6VeuuFSvu0GYrSYazZp81z4q7QQcw4dhYZ+3Hldzrrp9q 2Vyx7lLSdMM8oevhEOJkJExSZEDOoKwNRiM3nrKN9oxo41h/7hPdKj0JOVtWf+pG5rph dExKT4oaiZKByLCbiC6boHZxENSYyuCNTguALOYC+VIDclxOcik7EQWftQYL3FIy5MJJ XpT+tzawCTWUyP0pGN7FQfbFcbihgrH70NIRw79Ik9/knZ+utFsmQXBF7500dglXJbjc ZVxzNfxg2w5n/pxTvkc6C7hqk9HQboSbJYyNi9mfpXNCmIuaCof1oVs7aBIeyfaVk5Uu aQ3Q== X-Gm-Message-State: APjAAAV+m93hOTiVyQoScvN3gb898Mov0/vt4pTrTUMsSL3zVAFfZmSu hupNQpnHZn0NTDuNBSxEeDenUIst X-Google-Smtp-Source: APXvYqyfEzcN5/pAWmoik/UxVGG52QKX9KEPh0hlpL5KWgSE6Lrzw82ootT/1JZRhYgA5eHe0tuRLg== X-Received: by 2002:a62:fccd:: with SMTP id e196mr12508832pfh.53.1560328368314; Wed, 12 Jun 2019 01:32:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:a584:: with SMTP id b4ls448798pjq.0.canary-gmail; Wed, 12 Jun 2019 01:32:48 -0700 (PDT) X-Received: by 2002:a17:90a:cb12:: with SMTP id z18mr30104878pjt.82.1560328367896; Wed, 12 Jun 2019 01:32:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560328367; cv=none; d=google.com; s=arc-20160816; b=qgeVyoGpEyPq/vJKeulZkODaXge8grUP+U21/dQj8CLLope4434nLW9o3JKolDUfI/ WlrbPt9skHfFt7cSc5Fl0LeQCsU1Yd2ipiS3z1Av7ILMQBRb3NyMSaW1J4s0eaC8Wo18 3Oqpw5ayqNpE3gB3AwvsRxVy+r4WltePucXCLYSo2PH2XB1OHC/E8uhezd+Or0Rivvyj 8vMasnqnT2RECJfmRGrQ+EHmaYcNnsg6atmnG8jxVHdJcJkR5P/Ruqa38auTUz61CgME JP2P7W+meYRtdQr8ZQxw/qHKMY76xIFtcRsn0HCudVEKEo/r3GA1Yv954IADY2XKlLca viLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=gmW8WRNMrYYWWn/14AXcr1F201djvK4XPdLR0p57KHs=; b=Sv1ZGQBSDtlSZudDX01rYxRSwpRRQXQHXJk72A9okAYATJuD55ku1v+7oQmdU+4Qy4 LC1RZ7HAXxg+iaem3tvcNqwKglhH4H2sTjRVpmnyXJm5rWeiWlocOvieajjtnMFvq0So vIcFzSL63InAl3RFbQIHAIndRuEfaa7rLFqUCjIbcVy4C1KOkW44rHO1cDPpPwyO8+dD qUCx2XoJpS7kkv/7IAJNLZ0C7yr0Zfefu10TzIfcfUo3pWv1RINL8WnjUrnCCtipJEnf baHuMVOFKHClV4tuGER44+DA0Ue7Xxo1saLZ4tINJLyLyOokPP4jCAWOz/FXRZJPM38d 5Urw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=G7zOSGxE; spf=pass (google.com: domain of shyam.saini@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=shyam.saini@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id d5sor9984621plr.38.2019.06.12.01.32.47 for (Google Transport Security); Wed, 12 Jun 2019 01:32:47 -0700 (PDT) Received-SPF: pass (google.com: domain of shyam.saini@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:9a90:: with SMTP id w16mr78446965plp.113.1560328366802; Wed, 12 Jun 2019 01:32:46 -0700 (PDT) Received: from localhost.localdomain ([183.82.224.115]) by smtp.googlemail.com with ESMTPSA id c129sm32013265pfa.106.2019.06.12.01.32.42 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 12 Jun 2019 01:32:46 -0700 (PDT) From: Shyam Saini To: sbabic@denx.de Cc: u-boot@lists.denx.de, stefan.agner@toradex.com, festevam@gmail.com, ksi@koi8.net, jagan@amarulasolutions.com, michael@amarulasolutions.com, linux-amarula@amarulasolutions.com, uboot-imx@nxp.com, Shyam Saini Subject: [PATCH v5 1/2] arm: i.MX: Add CMD_NANDBCB Kconfig entry Date: Wed, 12 Jun 2019 14:02:30 +0530 Message-Id: <20190612083231.7816-1-shyam.saini@amarulasolutions.com> X-Mailer: git-send-email 2.11.0 X-Original-Sender: shyam.saini@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=G7zOSGxE; spf=pass (google.com: domain of shyam.saini@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=shyam.saini@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add Kconfig entry for CMD_NANDBCB, and default y on i.MX6 platform with NAND_MXS defined. Reviewed-by: Stefano Babic Signed-off-by: Jagan Teki Signed-off-by: Shyam Saini --- Hi, This patch series is based on feedback gathered from this [1] discussion and [2] patch submitted by Stefan. [1] https://patchwork.ozlabs.org/patch/870467/ [2] https://patchwork.ozlabs.org/patch/897222/ Changes for v5: - New patch Changes for v4: - No change Changes for v3: - Fixed Typo 'seprate' Changes for v2: - New patch arch/arm/mach-imx/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index ec09ef240f..5dd286f9a7 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig @@ -71,6 +71,17 @@ config CMD_HDMIDETECT This enables the 'hdmidet' command which detects if an HDMI monitor is connected. +config CMD_NANDBCB + bool "i.MX6 NAND Boot Control Block(BCB) command" + depends on NAND && CMD_MTDPARTS + default y if ARCH_MX6 && NAND_MXS + help + Unlike normal 'nand write/erase' commands, this command update + Boot Control Block(BCB) for i.MX6 platform NAND IP's. + + This is similar to kobs-ng, which is used in Linux as separate + rootfs package. + config NXP_BOARD_REVISION bool "Read NXP board revision from fuses" depends on ARCH_MX6 || ARCH_MX7