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 03A89C433F5 for ; Thu, 3 Mar 2022 06:28:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A30CC83CF4; Thu, 3 Mar 2022 07:28:52 +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="a/4rI0KP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AD42683C93; Thu, 3 Mar 2022 07:28:50 +0100 (CET) Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) (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 6B89783B9F for ; Thu, 3 Mar 2022 07:28:47 +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-x62c.google.com with SMTP id z2so3644623plg.8 for ; Wed, 02 Mar 2022 22:28:47 -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=yBeoQ9gkMlyFcFQeNSyK1Ukuw78+jDWzH1/YKlg9rvA=; b=a/4rI0KPoq27mMW5JR5D3VjEPnVYtdlfvgvv1QXO31u+xDGMLlHZ7Praz1vaiIalsS vOFWr/vYKmxG6Qb12DMQMlyODF3W8hnrPD5ZKCQ3LGXNsmOFSOdIPiReDNfjYvNSUhvg k1tDnExCmSg0W2Kioy+Ya7ulByvLTEWThdvj5e6QeB1R/A/71ANYs2Nu67XpgEBrK5tR O0IsxM+u6KvZHcKB6PmRj7a/VghUnw5+inFY+MGKay7ZXBrPbA7MESWc89+34pIho20l tqyMGuW4hgaJMl0sMdyKdvIrlocxNOXo5kV48v76kIzHPfMqI1tjpmDIen8MJ3wA2zHI 9JFg== 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=yBeoQ9gkMlyFcFQeNSyK1Ukuw78+jDWzH1/YKlg9rvA=; b=7PHY6SmIsfuSNmszmsgPYtByUNlxkeCrs677myoCQUU9maGufq73Rfm35n/hIKo6EE 3el26am+WX9eWjcvCC9XP8P2F2AdY5L27IjpYX0zIjzvqmO4znnIzZZRvLBKNFs16277 TVBgLdLxJVLUy2rIR7IXCKsoIiaBWDJKuyQ4FKLydStY4+eBLJSLdAJD1Qh4DdacO8rx rmnz2FpspB1KDwQfqEiR9xqne26bgXjm93uZtJOGsY+mTMGJf+OksrhTy0+eGGtD8XrD 9gZ5eix522hltWDCyXemWXpQB/q6upGKyaw7TYwtTtJF/A7u7CcqKXVhfxsEY38z/OFe wC2Q== X-Gm-Message-State: AOAM532kSb04pWzH6Sn7j9lz74szyg1oniECvYc6z5UUuBciu/Q1Q3if J9Qv86PMKkLnKV1XYLOr3AZTi/ytaD0= X-Google-Smtp-Source: ABdhPJz/kmKJ8jnWDoSdim0rOEZhZcxC2nOZxjLs86I8Aqt4tQVHwTt00CnPToOQNhqvdzUzCEAmVQ== X-Received: by 2002:a17:90a:2e07:b0:1b9:e28d:4f6d with SMTP id q7-20020a17090a2e0700b001b9e28d4f6dmr3622469pjd.81.1646288925445; Wed, 02 Mar 2022 22:28:45 -0800 (PST) Received: from localhost.localdomain ([123.51.145.88]) by smtp.gmail.com with ESMTPSA id b21-20020a056a000cd500b004e1e0d3ed18sm1167904pfv.2.2022.03.02.22.28.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 22:28:45 -0800 (PST) From: JaimeLiao To: u-boot@lists.denx.de, jagan@amarulasolutions.com, vigneshr@ti.com, miquel.raynal@bootlin.com Cc: zhengxunli@mxic.com.tw, p.yadav@ti.com, tudor.ambarus@microchip.com, jaimeliao@mxic.com.tw, JaimeLiao Subject: [PATCH v7 0/4] Add octal DTR support for Macronix flash Date: Thu, 3 Mar 2022 14:28:23 +0800 Message-Id: <20220303062827.26664-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.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.5 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. v7: Correct title and description of patchworks. Correct description for spi_nor_macronix_octal_dtr_enable. Add SFDP informations for flashes in commit log. 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: add support for Macronix Octal flash mtd: spi-nor-core: Adding different type of command extension in Soft Reset mtd: spi-nor: Parse SFDP SCCR Map mtd: spi-nor-core: Add support for Macronix Octal flash drivers/mtd/spi/Kconfig | 7 ++ drivers/mtd/spi/spi-nor-core.c | 141 ++++++++++++++++++++++++++++++++- drivers/mtd/spi/spi-nor-ids.c | 19 ++++- include/linux/mtd/spi-nor.h | 13 ++- 4 files changed, 176 insertions(+), 4 deletions(-) -- 2.17.1