From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF2F6C4743E for ; Tue, 8 Jun 2021 17:57:29 +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 22AF26135D for ; Tue, 8 Jun 2021 17:57:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 22AF26135D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5DF2682EF5; Tue, 8 Jun 2021 19:56:52 +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="dd4Pg2dm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6049F82EBF; Tue, 8 Jun 2021 19:56:45 +0200 (CEST) Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) (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 A2ACB82EA7 for ; Tue, 8 Jun 2021 19:56:40 +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=macroalpha82@gmail.com Received: by mail-ot1-x32f.google.com with SMTP id c31-20020a056830349fb02903a5bfa6138bso21166589otu.7 for ; Tue, 08 Jun 2021 10:56:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=brXjuoFcUGkDJEs1cw9mAAMx98rezcJSb3WE53JpF/M=; b=dd4Pg2dmowodfDQtIESo+BmAtZ3LEdrM13DT0QyTZjDEj6xqFSBPuPeDDFs1OYcTaT 3QN8/NT15E494uRwrrRZXomOG1UdT35ncJYEbzt1wzJupJNoSrTrL9yQsfd0vRFfYcZ0 KIKKKz2zckjP2OySM/Gcwe77El5mV2LbfS8sRMRtEV9xJ8pCbta9G9ukWoVlguGItWBc p5JIL5uPepIt3lFa3IvA/S6Tf/F8aCVP721WwxE08+sL4QEa3jnTIHv0Xoebx+R4Czet +s6bAG0P0Ly+WHIFbdRtDLD1ZH9qvjklmq3jbBjZB4Pqu3phTI8+v1JpbIe2eU/64oMs i6UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=brXjuoFcUGkDJEs1cw9mAAMx98rezcJSb3WE53JpF/M=; b=eB0C/uqj+wb++GY49YGsJzYYF9PM90j1KNn77FdbDQ5VqiDFl1d4NICQN4Wcv8U7d5 V4mhDLKfmne6o3KQyx3iOV2LYjeQTXdK7sdzZU3HbuWlSABnSf6dCg8lfvKqqvdkNbPN xMJXIKYaxTrgTEf0CHl7qo2oXZcY+forsiH+ikvwTgQl8apTleRrD9wk0pLjdnRbG3wg XjCyD8FrCgKOXAU1dt1PdQuudCn6IQZHH9y1KBtedWXWd26nU/JeYgtdD6r8cOn0upwe FADoQZEO6v7f7X0q2MGXMCRrBTpwJbLbPtoW4pKGqdhaYFD5cPQbisbqJbYoiuJSit/z x1Jg== X-Gm-Message-State: AOAM533LvtSM8SbUfRlwNZdVtorPKMzS6gOsP8FxIq7XuNWBuaL8hcFn PN0o7rQSTVzA73t2qE0AMCjK9JKtzTQ= X-Google-Smtp-Source: ABdhPJwFvysXYU7kAZF95SQPiDw/WsNN5pBS/Q89U/wYsMFgvcVI4Z/Dev1EZsWh8hqeWnVozWEZJA== X-Received: by 2002:a05:6830:1d64:: with SMTP id l4mr18274005oti.95.1623174998892; Tue, 08 Jun 2021 10:56:38 -0700 (PDT) Received: from wintermute.localdomain (cpe-76-183-134-35.tx.res.rr.com. [76.183.134.35]) by smtp.gmail.com with ESMTPSA id a24sm3189228otr.3.2021.06.08.10.56.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 10:56:38 -0700 (PDT) From: Chris Morgan To: u-boot@lists.denx.de Cc: heiko.stuebner@theobroma-systems.com, vigneshr@ti.com, jagan@amarulasolutions.com, kever.yang@rock-chips.com, philipp.tomsich@vrull.eu, sjg@chromium.org, jon.lin@rock-chips.com, Chris Morgan Subject: [PATCH v4 4/5] mtd: spi-nor-ids: Add XTX XT25F128B Date: Tue, 8 Jun 2021 12:56:25 -0500 Message-Id: <20210608175626.5176-5-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210608175626.5176-1-macroalpha82@gmail.com> References: <20210608175626.5176-1-macroalpha82@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.102.4 at phobos.denx.de X-Virus-Status: Clean From: Chris Morgan Adds support for XT25F128B used on Odroid Go Advance. Unfortunately this chip uses a continuation code which I cannot seem to parse, so there are possibly going to be collisions with chips that use the same manufacturer/ID. Signed-off-by: Chris Morgan --- drivers/mtd/spi/Kconfig | 6 ++++++ drivers/mtd/spi/spi-nor-ids.c | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig index f8db8e5213..8c797d1e03 100644 --- a/drivers/mtd/spi/Kconfig +++ b/drivers/mtd/spi/Kconfig @@ -162,6 +162,12 @@ config SPI_FLASH_XMC Add support for various XMC (Wuhan Xinxin Semiconductor Manufacturing Corp.) SPI flash chips (XM25xxx) +config SPI_FLASH_XTX + bool "XTX SPI flash support" + help + Add support for various XTX (XTX Technology Limited) + SPI flash chips (XT25xxx). + endif config SPI_FLASH_USE_4K_SECTORS diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 2b57797954..bdecb3b837 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++ b/drivers/mtd/spi/spi-nor-ids.c @@ -336,6 +336,14 @@ const struct flash_info spi_nor_ids[] = { /* XMC (Wuhan Xinxin Semiconductor Manufacturing Corp.) */ { INFO("XM25QH64A", 0x207017, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { INFO("XM25QH128A", 0x207018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, +#endif +#ifdef CONFIG_SPI_FLASH_XTX + /* XTX Technology (Shenzhen) Limited */ + { + INFO("xt25f128b", 0x0b4018, 0, 64 * 1024, 256, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) + }, #endif { }, }; -- 2.25.1