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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0B3AC433EF for ; Wed, 3 Nov 2021 23:50:24 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id D4C8F611C6 for ; Wed, 3 Nov 2021 23:50:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D4C8F611C6 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A4ED883653; Thu, 4 Nov 2021 00:50:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=microchip.com header.i=@microchip.com header.b="0nTUcCrs"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BE76583224; Thu, 4 Nov 2021 00:50:09 +0100 (CET) Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 03D488320C for ; Thu, 4 Nov 2021 00:50:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Tudor.Ambarus@microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1635983403; x=1667519403; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=On7ZXEffSwKWIY+nn4ZK3elgNyO+MLG/zbV7Dv9GabE=; b=0nTUcCrsyJ0p1uXADY+5EKxAjk3puM10aVZYuy7MOatCFo8bcqPdVZM/ SaJDU6c9tLy54Gb+QCjgP72CfSydnvW0cOQa6U1kZVW22p41x1BAqM6Pe DDc2RXe6YMrZZ22a97kDIy02mY1BgTBFb19t0ga/YNUKV5Webg9Jo74fJ cd9AjlJ6yhXuxAnL7z/ylw8nD+fC2oCVH5Vvl++b++0uZVABVnOs2vtmt 2zFZrwqeDjZvZBt4M1f5azfCJf7Kk8fjSr32TMW1/TazdmEyU7Dk5szbv X0vMh7IVFmqPs7tDCn7ibyyyY9gnKz4elc7aEagajGXX58xBQBqER9ENb w==; IronPort-SDR: CLZzcMheX2bZcK+BwJrlNKnkJ8vUUz7OsgXsgN2loVcd8aazMXQh0jXsHgAiU0P80mnIMIALrT M+m2yFR1Djim+E7HzTLZNugrGtIx5E55o53e9Ee+uedNTyCA7QJPvh3wRxUGxb91uNZTPDPaPz Zm9MS1OlcVXKf2SgLzC2wpX1APid6AJy30VX1+tDB/q6i1fn17iEtBwnkN6fS5TDLy/zYWXIE3 lwKQiAn9IVXmXw6L67Tezx1HUpIF4j7VM4S8524PX4RoAm3NiyhCee6QM8WZCQyyo8bxdHEou2 9c0HBV2rhVbh+sVFyFMyCFJS X-IronPort-AV: E=Sophos;i="5.87,207,1631602800"; d="scan'208";a="142139688" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 03 Nov 2021 16:50:00 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Wed, 3 Nov 2021 16:50:00 -0700 Received: from ROB-ULT-M18064N.mchp-main.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Wed, 3 Nov 2021 16:49:58 -0700 From: Tudor Ambarus To: , , CC: , , Tudor Ambarus Subject: [PATCH v2 0/4] mtd: spi-nor: Fix software reset; add mx66lm1g45g Date: Thu, 4 Nov 2021 01:49:46 +0200 Message-ID: <20211103234950.202289-1-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Add support for mx66lm1g45g: - Introduce SPI_NOR_SOFT_RESET flash_info flag -> the flash does not define the SFDP tables and can't determine its reset sequence on its own. - Fix the opcode extension for the software reset sequence -> it was hardcoded. Changes in v2: revert soft reset on boot. Tudor Ambarus (4): mtd: spi-nor-core: Introduce SPI_NOR_SOFT_RESET flash_info flag mtd: spi-nor-core: macronix: Add support for mx66lm1g45g Revert "mtd: spi-nor-core: Perform a Soft Reset on boot" mtd: spi-nor-core: Fix the opcode extension for the software reset sequence drivers/mtd/spi/Kconfig | 17 +++-- drivers/mtd/spi/sf_internal.h | 5 ++ drivers/mtd/spi/spi-nor-core.c | 116 +++++++++++++++++++++++---------- drivers/mtd/spi/spi-nor-ids.c | 6 ++ include/linux/mtd/spi-nor.h | 8 +++ 5 files changed, 107 insertions(+), 45 deletions(-) -- 2.25.1