Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7753CC433EF for ; Sun, 24 Jul 2022 06:19:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8785183FA1; Sun, 24 Jul 2022 08:19:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="FfRSpAiW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CFFFF83FA2; Sun, 24 Jul 2022 08:19:09 +0200 (CEST) Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0B97283F97 for ; Sun, 24 Jul 2022 08:19:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michael@amarulasolutions.com Received: by mail-ed1-x534.google.com with SMTP id e15so10324373edj.2 for ; Sat, 23 Jul 2022 23:19:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=AG7XZt0darG0/b/jM4MNO/TF8yMSSdPwLRYyYSySgjo=; b=FfRSpAiWwl1ullOdxucdOHe+fjTUasF56hlwtE5UPafs8qr4Nps2v6jyMBkLnzd0z1 lv/D6uQz7Ix/vDHy2x9xuJdoATRZJjkriuVa+sMma8Hwnzmcq7uaia3GJW0c3iGkCKpW 9Y1HLRWrlXr4a+FSYYj11UKI/FWgn0LFd8FC4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=AG7XZt0darG0/b/jM4MNO/TF8yMSSdPwLRYyYSySgjo=; b=8EIQuf7Ra01SH5aO3IPSch27U2PNZF64o/vixKG1BXWPIWvwoU+8gIlrjN0bZqYtp4 OTEDDj3QlvPacnT+JXzvwK5eZzUjaPXW2Mu3xjzL3cbzzY9kAheyTPXQpUHsL+aZqrxP 0sgaPlFsNtMR5rZ05OnlucM+S4BxvaZI2K5wtJd6YF9zHXr001URCLdL6nWzKGetKamt VmQkz/OG+mBRwBk/wRfDLA1Iobe1zBBspeZUgy0qFBnE0L5xnk6RoRUTNWE4vOcSTAVA 3lqbK2FQqjhzA5maD3C6uA+3cqg6P/61jGZYyvNBw1/ploSlK35eHYak+rObZUXA+aSL Li6A== X-Gm-Message-State: AJIora9R418ak3G/64Hf1YysaQcdi94eUowRistslk/iE7/Z7wODcVmH RbXIV/btCtf9te5O2vxn+wvgpw== X-Google-Smtp-Source: AGRyM1tmnxeO+wS72gbF+ybR7YW+/W7QofYAxPWaC2Wz0xbmiB7fmE/Evho9yaqp2WsMoiLX8WtCWA== X-Received: by 2002:a05:6402:4492:b0:43b:dd6f:885c with SMTP id er18-20020a056402449200b0043bdd6f885cmr6519467edb.313.1658643546418; Sat, 23 Jul 2022 23:19:06 -0700 (PDT) Received: from panicking ([5.171.214.64]) by smtp.gmail.com with ESMTPSA id j9-20020a17090623e900b0072b565507c5sm3831459ejg.203.2022.07.23.23.19.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Jul 2022 23:19:05 -0700 (PDT) Date: Sun, 24 Jul 2022 08:19:02 +0200 From: Michael Trimarchi To: Tom Rini Cc: U-Boot Mailing List , Dario Binacchi Subject: Pull request for nand-next Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Hi Tom, please pull this first batch of Nand related patches: ---------------------------------------------------------------- In preparation of re-sync of mtd stack, we opt to move the current stack slowly in order to have a more easy sync and test. We would like to prepare uboot to support no-jedec and no-onfi compliant nand so we need to clean up a bit the code we have now and upstream some of the support. In this series we expect no functional change Tested on: - imx6ull Micron MT29F2G08ABAGAH4 - imx8mn Macronix MX30LF4G18AC ---------------------------------------------------------------- Here is the gitlab CI running, without any issue: https://source.denx.de/u-boot/custodians/u-boot-nand-flash/-/pipelines/12841 Thanks The following changes since commit 2996b6405e9522082b53ded0392438830ad6c43a: Merge https://source.denx.de/u-boot/custodians/u-boot-marvell (2022-07-21 09:16:59 -0400) are available in the Git repository at: git@source.denx.de:u-boot/custodians/u-boot-nand-flash.git 90ba25b7cb78bd85c6af0b6429226c6616dedefa for you to fetch changes up to 90ba25b7cb78bd85c6af0b6429226c6616dedefa: mtd: decommission the NAND museum (2022-07-22 13:29:06 +0200) ---------------------------------------------------------------- Michael Trimarchi (14): mtd: nand: Get rid of busw parameter mtd: nand: Store nand ID in struct nand_chip mtd: nand: Add manufacturer specific initialization/detection steps mtd: nand: Get rid of mtd variable in function calls mtd: nand: Fix MediaTek MT7621 SoC build mtd: nand: Export symbol nand_decode_ext_id mtd: nand: Move Samsung specific init/detection logic in nand_samsung.c mtd: nand: Move Hynix specific init/detection logic in nand_hynix.c mtd: nand: Move Toshiba specific init/detection logic in nand_toshiba.c mtd: nand: Move Micron specific init logic in nand_micron.c mtd: nand: Move AMD/Spansion specific init/detection logic in nand_amd.c mtd: nand: Move Macronix specific initialization in nand_macronix.c mtd: nand: toshiba: Retrieve ECC requirements from extended ID mtd: decommission the NAND museum drivers/mtd/nand/raw/Makefile | 10 +- drivers/mtd/nand/raw/mt7621_nand.c | 2 +- drivers/mtd/nand/raw/nand_amd.c | 52 +++++ drivers/mtd/nand/raw/nand_base.c | 370 ++++++++++++----------------------- drivers/mtd/nand/raw/nand_hynix.c | 85 ++++++++ drivers/mtd/nand/raw/nand_ids.c | 24 +-- drivers/mtd/nand/raw/nand_macronix.c | 31 +++ drivers/mtd/nand/raw/nand_micron.c | 87 ++++++++ drivers/mtd/nand/raw/nand_samsung.c | 90 +++++++++ drivers/mtd/nand/raw/nand_toshiba.c | 79 ++++++++ include/linux/mtd/rawnand.h | 78 +++++--- 11 files changed, 626 insertions(+), 282 deletions(-) create mode 100644 drivers/mtd/nand/raw/nand_amd.c create mode 100644 drivers/mtd/nand/raw/nand_hynix.c create mode 100644 drivers/mtd/nand/raw/nand_macronix.c create mode 100644 drivers/mtd/nand/raw/nand_micron.c create mode 100644 drivers/mtd/nand/raw/nand_samsung.c create mode 100644 drivers/mtd/nand/raw/nand_toshiba.c