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 99D96C433F5 for ; Wed, 29 Dec 2021 05:56:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5F9F883031; Wed, 29 Dec 2021 06:56:33 +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="J5Xb83jg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5607782FB5; Wed, 29 Dec 2021 06:56:31 +0100 (CET) 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 5B01682FB5 for ; Wed, 29 Dec 2021 06:56:28 +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-pj1-x102d.google.com with SMTP id x1-20020a17090a2b0100b001b103e48cfaso14099364pjc.0 for ; Tue, 28 Dec 2021 21:56:28 -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=H6Bf3vrJyUqOWWFeZgWFdSqxeBv9sPMrgj1UmNhcvWI=; b=J5Xb83jg8UHIyuyZip88NhqDlBe9ARPft2eElKyWj//9PrRUlciggr0wa3wo2t6DzC 8zPd0ibKHAwkT+fVJx1l8ouZ5FPxIc35nnKWosONvcepeBAOXQUiWUIM8VZWF48nXPeN qD+BS6Z5Y2pK12LTFVZLMQL0U3njJt7Dh49QDbVe8u8aijZnawVeWDgTotfD4/jh7i4O 5SiCTr1hYXJmuFEzd2sC3s+73qtxX5C6pUvnNcwkmjXyGC7h6DVNQmol+rVonO9CZXjK QPPQF2kdqh2SuzGzX/2de0osT4BZH+QvwD4AceabjOIoeyCcieA04VO3aeARCTvk3+8y i36A== 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=H6Bf3vrJyUqOWWFeZgWFdSqxeBv9sPMrgj1UmNhcvWI=; b=gY+mRf86rDkYddVas10B+4cHc6gzxuYpfIfsm8H/LFoAk8p22hGdmPIAyw4nVkLPdZ uS2Bk5oeV9X/EchqLnmSi6A/wBJF1iNsOmnsld9m2nhtL6Fihd+SHAS2fRVRwRA3k/8x +RJ6qxqinb3dj84ELUUfnVVBBNIQh1G6vFmjkybteBh1pWwz5lIupZudIreK6NC1qpjE RZZOSbHGdkblwi/fPAcYiJ5Mu8yuLan5/4R/OUWek/x1W4nnBiwG/3PW+pZHGIzKsY1o tIALr2PIF0Mv7MEnyiaqxm7hMEJ0JCI29swCNzAg6aTkRk8vJAGd8NljB864tifYLDEC euSA== X-Gm-Message-State: AOAM531MqvSXFT3fP2IKYKGdftgENzuiSIXkJp4/VAvHjtPQpRgw9pyc nE7Eipb7XevBYIG0ARbayS886J+Ezho= X-Google-Smtp-Source: ABdhPJy1+WCqUyr6iM4FJmWG86pMwCjHXaLAqPN56YQMuOWVp5LAUwWaENZ5suOAgU3sKiEZ1P234g== X-Received: by 2002:a17:90a:b94c:: with SMTP id f12mr30698086pjw.211.1640757386449; Tue, 28 Dec 2021 21:56:26 -0800 (PST) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id oa9sm22156096pjb.31.2021.12.28.21.56.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Dec 2021 21:56:26 -0800 (PST) From: JaimeLiao To: u-boot@lists.denx.de, jagan@amarulasoutions.com, vigneshr@ti.com, miquel.raynal@bootlin.com Cc: zhengxunli@mxic.com.tw, jaimeliao@mxic.com.tw, JaimeLiao Subject: [PATCH v6 0/4] Add octal DTR support for Macronix flash Date: Wed, 29 Dec 2021 13:56:16 +0800 Message-Id: <20211229055620.1466-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.38 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. v6: Parcing SCCR 22nd dword for checking Octal DTR mode support 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 (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: Add support for Macronix Octal flash mtd: spi-nor: Parse SFDP SCCR Map drivers/mtd/spi/Kconfig | 7 ++ drivers/mtd/spi/spi-nor-core.c | 142 ++++++++++++++++++++++++++++++++- drivers/mtd/spi/spi-nor-ids.c | 22 ++++- include/linux/mtd/spi-nor.h | 13 ++- 4 files changed, 180 insertions(+), 4 deletions(-) -- 2.17.1