From patchwork Thu Jun 6 08:59:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shyam Saini X-Patchwork-Id: 449 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id DE49D3F086 for ; Thu, 6 Jun 2019 10:59:39 +0200 (CEST) Received: by mail-pl1-f200.google.com with SMTP id d19sf1142842pls.1 for ; Thu, 06 Jun 2019 01:59:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1559811577; cv=pass; d=google.com; s=arc-20160816; b=czwRXjSSz7QWPiDwJU3zaZ9BUwTmUEq8i52PRmyOWl1+oHwO4BjiWxpCxsbJNUrfKq zpvwymcHP8JKXyamjrzdvu4b7kuSv4NJEs4ojXiThfgE+xYTb72YC1YQEXwiXY/4Antg ZDs/rJF3r7Nek7PwpefeGlVTX1d8/PufUmJuU5zYAnOERMVF7lEDn1p3iZBxEBXhq+UN q8W5JKaZ6T9oykCdSQIIoCCrfF6pjVfE70AARU6rDkFee5/84hum9Z7EOgQO0m3vpE6w PRNZWPDRd+EN1ca6ftvgdbWktWJgXBtyIrRVWBfxxiZU4Z+gEA2umDriD1DytUmW5LYS kFgA== 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=fK58HoYlJCnvSbr32Cow5de7kBiBHZIqPuNiEZF7S6I=; b=kkmT2Ucy9epXpi6vQaFbOwPtAMLnyZ7eQqCDEaliK9timdMmYqe5zEgKx/MQ7UR1TW BPWyEnjSaObuSOTVC7c0ebV8efQ1E0jZhHGCaacHaGL8/iERClg3+cWb2CMpvY/Ojn23 uBAA70clwBMD+f6bJFOr7GP9hbXGuQtoxALj3b81q3ljiuKvstBLrRIo/qjSoB/bo0xN PxwkCz0HitL/2dEqf89GlCcZaDAVvV6IOGdlepSbQWGoRR7yVE1I7X4BYH4IlgaStP2t VEzT9l6+eMkkK7UR01h/yKomLSReVJKQNL9k/0i+5RmHS6oE3HF3ap1ZbBdYlrPJaxPK 2pdQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PLpi4wcN; 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=fK58HoYlJCnvSbr32Cow5de7kBiBHZIqPuNiEZF7S6I=; b=Eo50D7qHBlfbq2B1fa3tsTqSjpkTfzoCDam3mTuhat5bIHs+bs3IOJEPkhXIGGIA7a OTCUhkw6f/+In8h7kYscNK/sKCENUuPb+GcQJJDgBVANlvGMTfWge84zB5PJYCXBeSY3 Z8w1ZRWWFKexqcHNL3kBsyornMX6WS2I6OOj8= 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=fK58HoYlJCnvSbr32Cow5de7kBiBHZIqPuNiEZF7S6I=; b=uf9ZE1K9VUiz+X6R+ssKQRUVpapbRyTOqUb9Q1VUXtbdkNfrGDtcPnE4XlFV2gVgSu RklRK1Wlrb53zWXXFxYDY3hiElbcSx1qypJ3ch0GftEL8GTC7+Hro2Uxca8EThh4v1m0 Hwjl1werx/EqqIusZNHko2bYhe+aLkJcZMz3Vqi+gwMdfrlfciVZG0GdW2kJDft35Dvn kYpClpkIXSgYIYSJqmJgfn6mzGg6ISV2YsxxQSk0jkO5GNUB0FRH0m3dKkoLCM0ZkWQK Oy6Wv3KZYUzDuhQsxBK2lQmcMSEqG6cSxMCjupgmZ+vacG/x2cOpYJnxP5HyKvU8ZDOa rbnQ== X-Gm-Message-State: APjAAAUHtGMHsntchHQbge195yAmQUwzZyjIN2mRYUDOFaiO99cVR1C6 A0K7lCBv43Pr1/LBNzUb/RS9UraK X-Google-Smtp-Source: APXvYqxFtn8JTXortobcXG7I6/hbdQW/E6XHHGRzhbQXXigIZtocs9Ir/kUss/MAp2TXwIsWi3NF5A== X-Received: by 2002:a62:1ec3:: with SMTP id e186mr52528917pfe.197.1559811577645; Thu, 06 Jun 2019 01:59:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:b605:: with SMTP id b5ls1208880pls.12.gmail; Thu, 06 Jun 2019 01:59:37 -0700 (PDT) X-Received: by 2002:a17:902:aa08:: with SMTP id be8mr48307244plb.177.1559811577274; Thu, 06 Jun 2019 01:59:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559811577; cv=none; d=google.com; s=arc-20160816; b=QIsAxI5cjQuTxv843yxvXt1kLKQhiDfvoHZgGLZxK1iYUtng9vsCVRXeVpwCQQQ7nS DQ3lhcQ2i+KqYpXI59GKeGDl5iCGRm+hiKibYJmQv3kGe/M9L7r7lH6Ws55ZudKhPwSU V4qhhDHTZrW7c4ggeXJQkgsITpctrBFKNcL9xt+rzdzs2NzdgwkF/KUzLkprvRahksLw Xiokz7dVPbZnrP+55GRRQ2eRJJHoO1ysFuwJwUADPMvad64ODOqTmxGWPAf8W1LXxB3d bm3yWnOrv7bFIGpJObCCaJMi4BAGEqVjuWTZBmufDJSaC2MUfYSXSeR4CIYvArTVsoXJ ToQg== 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=AWcNitRhdUFouyR5o381AJ3ppoHIHMSdIQOgH28lqqA=; b=BVK22Y4ybDeaZfrNEi0dl2kaN+auV9Y3cinzHwSiqX8nNyLlWyuXHCmtg+OEgBu1YL wG7R641uScKeWlQf/HunzF50zzqAHTKcF9OICo4c9ZmU2hOWYHcRvQBvI9kXdymhdwbm s824s5xo0Z8edU2IoZfv9liV/JUR40DSSIJQXlT4wyysB+IU13PRUEeNyY2OpCQ715UW 1yE1b/k7QJO15dLEPdfKIhywH6CbSJ+kKDTwHSLKSh2LzyVurz7vVPmkgb1A5kq3usAj xQPxYIQIatvDkNuDr7l61e+6s7W+VS3+WrvEyt4VJcJLiAPDS2rY7CoUefMptx2LDQxh RPXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PLpi4wcN; 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 o2sor1068133pga.9.2019.06.06.01.59.36 for (Google Transport Security); Thu, 06 Jun 2019 01:59:36 -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:a63:205b:: with SMTP id r27mr2430079pgm.330.1559811575883; Thu, 06 Jun 2019 01:59:35 -0700 (PDT) Received: from localhost.localdomain ([183.82.228.203]) by smtp.googlemail.com with ESMTPSA id 188sm2999482pfe.30.2019.06.06.01.59.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jun 2019 01:59:35 -0700 (PDT) From: Shyam Saini To: u-boot@lists.denx.de Cc: stefan.agner@toradex.com, festevam@gmail.com, ksi@koi8.net, jagan@amarulasolutions.com, michael@amarulasolutions.com, sbabic@denx.de, linux-amarula@amarulasolutions.com, uboot-imx@nxp.com, Shyam Saini Subject: [PATCH 1/2] arm: i.MX: Add CMD_NANDBCB Kconfig entry Date: Thu, 6 Jun 2019 14:29:19 +0530 Message-Id: <20190606085920.17754-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=PLpi4wcN; 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. Signed-off-by: Jagan Teki Signed-off-by: Shyam Saini Reviewed-by: Stefano Babic --- 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 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