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 687FEC43334 for ; Thu, 14 Jul 2022 14:38:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D33CB84152; Thu, 14 Jul 2022 16:37:27 +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="DDkNQTEg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5EF2084163; Thu, 14 Jul 2022 16:37:25 +0200 (CEST) Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (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 88F748418A for ; Thu, 14 Jul 2022 16:37:17 +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-wm1-x32a.google.com with SMTP id h14-20020a1ccc0e000000b0039eff745c53so1331578wmb.5 for ; Thu, 14 Jul 2022 07:37:17 -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=th1K+3oyv6YujqhdbN+MCbx+1L3vpXGXXKMVibC+p10=; b=DDkNQTEgtA9TWAnD0+02SbEsHL3n6fq9ErFsiIP+ODVciNE8FZm+d/Ny80qx9M64SX VEwXiwOS3DOrh/pMARny2KTqjkLdETDdDlfiA2vuGYYeu1ziF0S/W3obVp9cM+jFZ1fS Vu3a9UFTLdiu3ZzLuJnbdExalIyYQ6Wn/mKD4= 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=th1K+3oyv6YujqhdbN+MCbx+1L3vpXGXXKMVibC+p10=; b=Rz/uhJTP0mb5dKCnlSw1i8GEgEWuQ8bXFkPfBNThbsEv2BWwnxEwyMr8JrpOvV9UvK Pr9SaYQHUrvIIeq8kJW7T3GPnrxXQsx44pdnjHJOoJ2o5dXBYNhOj7ybs7RTkEoSm+qM wum1oCVa5TZ+YwCND/G/GNFWP0jS1M9KvRak4jbzh+akMx3hWiHdNdGmlboGLhdWbMb1 2+5V8B55wpWOVx4N+e+5c2W5srKory0Ub2AON6QLwymp3bqP29hzwckB7V2pzGkNd28Y Gi+dsqU+po2RWfzgtkmBVMYVg/JeMmjRH7oAVowW/KajBqhafNc1pHyU5ZoBCz2B6YaT N9zQ== X-Gm-Message-State: AJIora+eMzaaru94C3p2EfwMVYN5baEWM/26IK5+HMBDXcB3AgsfQK7w 8nDxitWbBusCc0w4da8gJ18AewFlRsD5cw== X-Google-Smtp-Source: AGRyM1vE6Ztp+MsCkcKcFnCq1jBzJl3ITnR2vcmmwx3YW/qZdIMuhOB2N+JQ6SGI/RJrJrPSjOswVA== X-Received: by 2002:a05:600c:5129:b0:3a1:92e6:563e with SMTP id o41-20020a05600c512900b003a192e6563emr9355870wms.81.1657809436939; Thu, 14 Jul 2022 07:37:16 -0700 (PDT) Received: from panicking.. ([2.198.242.86]) by smtp.gmail.com with ESMTPSA id k9-20020a05600c1c8900b003974cb37a94sm5795913wms.22.2022.07.14.07.37.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jul 2022 07:37:16 -0700 (PDT) From: Michael Trimarchi To: linux-amarula@amarulasolutions.com, Dario Binacchi , Tommaso Merciai Cc: u-boot@lists.denx.de Subject: [PATCH 00/11] Port manufacturer specific initialization Date: Thu, 14 Jul 2022 16:37:14 +0200 Message-Id: <20220714143714.449291-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, I opt to move the current stack slowly in order to have a more easy sync and test. I would like to prepare uboot to support no-jedec and no-onfi compliant nand so I 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 (11): 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 drivers/mtd/nand/raw/Makefile | 10 +- drivers/mtd/nand/raw/nand_amd.c | 53 ++++ drivers/mtd/nand/raw/nand_base.c | 359 ++++++++++----------------- drivers/mtd/nand/raw/nand_hynix.c | 86 +++++++ drivers/mtd/nand/raw/nand_ids.c | 14 +- drivers/mtd/nand/raw/nand_macronix.c | 32 +++ drivers/mtd/nand/raw/nand_micron.c | 88 +++++++ drivers/mtd/nand/raw/nand_samsung.c | 90 +++++++ drivers/mtd/nand/raw/nand_toshiba.c | 53 ++++ include/linux/mtd/rawnand.h | 78 ++++-- 10 files changed, 599 insertions(+), 264 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