From mboxrd@z Thu Jan 1 00:00:00 1970 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 7AD76C43334 for ; Tue, 19 Jul 2022 20:22:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3FBDD83E92; Tue, 19 Jul 2022 22:22:24 +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="dHOmxSow"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CAAA08403C; Tue, 19 Jul 2022 22:22:21 +0200 (CEST) Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) (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 6A42583FEE for ; Tue, 19 Jul 2022 22:22:19 +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-ej1-x62c.google.com with SMTP id j22so29373925ejs.2 for ; Tue, 19 Jul 2022 13:22:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lg/QkbIVVGu3oepK5U5/qa/ZybDAGGoCWYeuXTfJ4uw=; b=dHOmxSow5/pikrfGCYtv693WGX1tUumBhcywXvDA/4G0AcITBD/85GJMuUPUig5BUa 7+gTtUYdfJv4OFR03SBJb70N4olbIaBGkpiN6zMoq5NyziVoA9JLNRMbDeKurDPKef5B U41ks8JBItAkACvhoqzciHOWc1bichzzqmd90= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lg/QkbIVVGu3oepK5U5/qa/ZybDAGGoCWYeuXTfJ4uw=; b=Y0mNHTuGYhNeEPIONk/gKjzkd+Ne9mq1dHi+2mlLXJp+LWZ5wUlA2qxLjfYnURnWst ++wq0Hht09tVVuNP55l4AGVl0W37VY7ZRlyOrr6b8VuP9UL6ZpWpquADKFwBXdCthE8k zXaCe0WwiUvR382i8nGS2waPhbDs4a3FEuCKTisSCueDG9J74p+GuojN/Q6Ol5Enan1n oJPD/qEM/FHATi4R+tlb8EMmEV8K9Q2oFvKpulrBKoOzf1qzrlMx53yhrSslVb6a4wca iniDrbfWr02nnOVZXOCVNCqLdMjkfvzNz5THagUhcV4iKIyY6urXHCcKJTnluFQM3cYD m53A== X-Gm-Message-State: AJIora/k4MhwHMUzoX5I1KjEsbcBN6WMivK955opbejizepPAibtBuct dFGNJmbv55npR6LYQHoNUiFqwvAm6H6dW0+0 X-Google-Smtp-Source: AGRyM1s22iBbAnFVGEzj417HWfSgnlHollACir9joSkhG2MmHzYn9KfDFoTQnculgeSDF9QtcTMwOA== X-Received: by 2002:a17:907:a426:b0:72e:faf6:2873 with SMTP id sg38-20020a170907a42600b0072efaf62873mr22331406ejc.74.1658262138478; Tue, 19 Jul 2022 13:22:18 -0700 (PDT) Received: from panicking.amarulasolutions.com (mob-37-180-67-237.net.vodafone.it. [37.180.67.237]) by smtp.gmail.com with ESMTPSA id sa8-20020a170906eda800b00726dbb16b8dsm7003243ejb.65.2022.07.19.13.22.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 13:22:17 -0700 (PDT) From: Michael Trimarchi To: u-boot@lists.denx.de Cc: Dario Binacchi , Tommaso Merciai , Kory Maincent , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Miquel Raynal , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Patrice Chotard , Priyanka Jain , Simon Glass , Wolfgang Denk , Zhengxun Li Subject: [PATCH V2 00/13] Port manufacturer specific initialization Date: Tue, 19 Jul 2022 22:21:50 +0200 Message-Id: <20220719202213.1753259-1-michael@amarulasolutions.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 Michael Trimarchi (13): 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: 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/nand_amd.c | 51 ++++ drivers/mtd/nand/raw/nand_base.c | 359 ++++++++++----------------- drivers/mtd/nand/raw/nand_hynix.c | 84 +++++++ drivers/mtd/nand/raw/nand_ids.c | 24 +- drivers/mtd/nand/raw/nand_macronix.c | 30 +++ drivers/mtd/nand/raw/nand_micron.c | 86 +++++++ drivers/mtd/nand/raw/nand_samsung.c | 89 +++++++ drivers/mtd/nand/raw/nand_toshiba.c | 78 ++++++ include/linux/mtd/rawnand.h | 78 ++++-- 10 files changed, 615 insertions(+), 274 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 -- 2.34.1