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 7BF2AC433EF for ; Thu, 18 Nov 2021 10:13:20 +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 CE89761B7D for ; Thu, 18 Nov 2021 10:13:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CE89761B7D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.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 B2E4C82F73; Thu, 18 Nov 2021 11:13:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UVgUIEF+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C620E80F54; Thu, 18 Nov 2021 11:13:15 +0100 (CET) Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) (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 509BD82E88 for ; Thu, 18 Nov 2021 11:13:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jaimeliao.tw@gmail.com Received: by mail-pl1-x62b.google.com with SMTP id b13so4836672plg.2 for ; Thu, 18 Nov 2021 02:13:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=YPJwtxQ1fpmprVu0E6pvGklsBbfCWvGKVYpXhhZadDU=; b=UVgUIEF+XaQn33pjt7gwNrZzuqYbvrUfnvl1ESV4fqMHE7NjYzllJYnINcsNpMfUSe 9KRyou15OGpjz3L2Z9XctBjEKDIMGma/VpnPwq4FThOmgSZnKnYpKT2buJ9GHn2BV6QZ LYwQSW/BktXE9pDZd/GlWSS1qNfwhILwVxT9WhF3a6ONmqFB7yhD82a6sX8ucWP8Dixm /ERmKlCwr+MKJwEBP6y4aOyrRw1PjREYV8kjLXWy5zTDuuv6wCXgxU+Etdxy7p/sGNxL RhGVANpGMOGlwrYWDz0CpKBkGl2OCm0jnXVH6i+A+HScf7C8GgOF91jBShzyCVyBpoiv 6g4A== 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; bh=YPJwtxQ1fpmprVu0E6pvGklsBbfCWvGKVYpXhhZadDU=; b=ZBJcn9JEHLxnlmM9V9W2ar+I0+SGv7/oBxkTQCgVaV5LkrxVgp8hmL85FlCcW2R6EF F2PkoG3UTpSPk7AKYi9EuKAhhrNX2g8KK3cpsfxYsyf4pHH4I37YKJFpcJrREyEOoNN5 8n8RVQJX5Br44goem/HMaLDwqoCLCHnYxjVnn8wlr5uYvihihdoCYo+Q9r4u9/JBOAPp k/9IasxelVqDdRpdyTLOVJdOiFIuOu5Hj73nT/vhmoJ9Yjwv+hBzsI7ez+G1tg164jzw gG8xvj+HkDlAiWlMltx+GKYulD2IiMZ+C0LhjyggWzUgFVbG4YF+rIPc2vkMnzPZJDwI rS1g== X-Gm-Message-State: AOAM5338Sde1EyzmBZl+NSh1ts6HNUWCvIblyejif11WGdAKs1ksBCoe MVYgHNHuzsVYYT5JQ98sb8bJNr9L6vc= X-Google-Smtp-Source: ABdhPJxjxORP5aJr+tuo6ERWBHKwz7qCFGTL4eoBvTAxW3P0Tyg4DhR5ksWGoXR1/cpW/MfFh6dXlw== X-Received: by 2002:a17:902:ab47:b0:141:95b2:7eaf with SMTP id ij7-20020a170902ab4700b0014195b27eafmr64880589plb.40.1637230389333; Thu, 18 Nov 2021 02:13:09 -0800 (PST) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id y18sm3137000pfa.142.2021.11.18.02.13.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Nov 2021 02:13:09 -0800 (PST) From: JaimeLiao To: u-boot@lists.denx.de, jagan@amarulasolutions.com, vigneshr@ti.com, p.yadav@ti.com Cc: zhengxunli@mxic.com.tw, jaimeliao@mxic.com.tw, JaimeLiao Subject: [PATCH v5 0/3] Add octal DTR support for Macronix flash Date: Thu, 18 Nov 2021 18:13:00 +0800 Message-Id: <20211118101303.26061-1-jaimeliao.tw@gmail.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.35 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 This series add support for Macronix octal DTR flash, add flag for Softreset with "INVERT" command extension type on boot and follow linux kernel to enable 4byte opcode when possible. v5: Replace SPI_FLASH_MACRONIX_OCTAL with SPI_FLASH_MACRONIX. Remove patch of set_4byte opcode. v4: Add flag SPI_NOR_BOOT_SOFT_RESET_EXT_INVERT to seperate command extension types. Replace ifdef with CONFIG_IS_ENABLED and modify uncorrect descriptions. v3: Add flag SPI_NOR_CMD_EXT_INVERT to seperate command extension types. replace CONFIG_SPI_FLASH_MACRONIX with SPI_FLASH_MACRONIX_OCTAL for spi_nor_macronix_octal_dtr_enable function. v2: add ret checking for write enable in spi_nor_macronix_octal_dtr_enable function. JaimeLiao (3): mtd: spi-nor: macronix: add support for Macronix Octal mtd: spi-nor-core: Adding different type of command extension in Soft Reset mtd: spi-nor-core: Add support for Macronix Octal flash drivers/mtd/spi/Kconfig | 7 +++ drivers/mtd/spi/spi-nor-core.c | 90 +++++++++++++++++++++++++++++++++- drivers/mtd/spi/spi-nor-ids.c | 22 ++++++++- include/linux/mtd/spi-nor.h | 12 ++++- 4 files changed, 127 insertions(+), 4 deletions(-) -- 2.17.1