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 5F9E8C433F5 for ; Mon, 18 Oct 2021 11:31:22 +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 CEA0A60F22 for ; Mon, 18 Oct 2021 11:31:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CEA0A60F22 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 E712A834D1; Mon, 18 Oct 2021 13:31:13 +0200 (CEST) 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="fg9p+6Vt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C639A831A0; Mon, 18 Oct 2021 08:24:51 +0200 (CEST) Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) (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 689E0829FC for ; Mon, 18 Oct 2021 08:24:48 +0200 (CEST) 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-pj1-x102d.google.com with SMTP id e5-20020a17090a804500b001a116ad95caso6217906pjw.2 for ; Sun, 17 Oct 2021 23:24:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=9RRVonDCLOp3BjdjE9dAs8/XYKzADpQH4ik2JwsjEdo=; b=fg9p+6VtHDEHacQ8lWGGmfC7dwIbZ5qtq2I52lbCR4k/5WM3jAzyOxwqlnfzmYJQbH EhMZeGwjxGppIYE4iinjS2daQIpJrf3orRELpAgk3+byrmmDgdQRiPMurrgpkgia3h/y v2CUDlxzGiQyzKdSGZeWGptZESoYunuO7rCewCZQy7eyuEo2a4NTpXwp11iyaW7+P3lz EIYmzFujARYJcBIkuI/XL49zBolcnXAtoj1jvdFvjS3gYKE9itgKJ2+sEBmDtsG63/NH kYq3tlqG8WZ//kKlEY1PitpH20KV/9B8PCR2sqjRfVseRcubZS8Vd3nPXO5PV5PYIvAV Dvkw== 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=9RRVonDCLOp3BjdjE9dAs8/XYKzADpQH4ik2JwsjEdo=; b=EW8nhmxxPI34yTWSHq3m5Y0SBrvSOMhH8y++IdqDUngNgg493puVq0uA3Ek+RCas6r qKDTJrx3JWUAa4ql3ZMYVAlXxrrkgAJzxwlsPEMiYLC1EO/83/AGd5CPSZaOeqYsPRG+ NfsajhfzgKj5M3PuSQukU4hYLJZtLP65xkgAfWdoR1W+BPlJOW1D7XM+4yia3oioWuwa 6GL0kEqs54SbhBu4mHyyObUOC0vecQmfoXcefjgWP4sk7S5KyzV0QnDM3JEbOYD+Yfhb 42qwa3j+h131qrSSIvux7QIlO+OMYSb8aq3oLBJo/P1EFljldpiZT5Htj3610bk4oZy/ Y22w== X-Gm-Message-State: AOAM532DgqzYlKxKt92StmNZI1aB/9+a7JL6wh83CMbJDwZEmbhOf/Qp OezEmLC7qOLfwzc7hjjekeT2THRl7Qs= X-Google-Smtp-Source: ABdhPJzJzw61i9sLXC1aIUWWVBEE1UA6l4HYTPfzsY4SpptelqLnuGTjGJFnppAnTJ55UjFyue5FBQ== X-Received: by 2002:a17:90a:c595:: with SMTP id l21mr21574311pjt.188.1634538286376; Sun, 17 Oct 2021 23:24:46 -0700 (PDT) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id q9sm7124939pfj.88.2021.10.17.23.24.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Oct 2021 23:24:46 -0700 (PDT) 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 v4 0/4] Add octal DTR support for Macronix flash Date: Mon, 18 Oct 2021 14:24:24 +0800 Message-Id: <20211018062428.4201-1-jaimeliao.tw@gmail.com> X-Mailer: git-send-email 2.17.1 X-Mailman-Approved-At: Mon, 18 Oct 2021 13:30:59 +0200 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 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. 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 (4): 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: set 4byte opcode when possible mtd: spi-nor-core: Add support for Macronix Octal flash drivers/mtd/spi/Kconfig | 14 +++++ drivers/mtd/spi/spi-nor-core.c | 94 +++++++++++++++++++++++++++++++++- drivers/mtd/spi/spi-nor-ids.c | 22 +++++++- include/linux/mtd/spi-nor.h | 13 ++++- 4 files changed, 139 insertions(+), 4 deletions(-) -- 2.17.1