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 C2452C48BDF for ; Tue, 15 Jun 2021 19:11:41 +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 4275F60FE4 for ; Tue, 15 Jun 2021 19:11:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4275F60FE4 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 7A52682952; Tue, 15 Jun 2021 21:11:22 +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="Je9yjiKZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BCAC782928; Tue, 15 Jun 2021 21:11:06 +0200 (CEST) Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) (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 BDBC68291A for ; Tue, 15 Jun 2021 21:11:00 +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-x32c.google.com with SMTP id 6-20020a9d07860000b02903e83bf8f8fcso15348659oto.12 for ; Tue, 15 Jun 2021 12:11:00 -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=ZxtwBH6AVrG/Dihlh7M1qSNDvCKFHPNFOOa71sRFmJM=; b=Je9yjiKZgDUFIMqnk9gYEamVBe2im9mzU9aDpOSReULSjU5ZhZCdvxdfXqw4RZMvcr cW2TN0zq8IiXBgqjf9BNj+/YF4gnOwG2UoAHjdMnfJG0ugl6azfkah5BXzvbacSfKAIs YE8YwNsvellPLUTUzGoCIE/eX6fUnIAIryB6HHIMSkm8q1F3/Uv5X0Dq+FfDcHc1T4dR sYbCsYobKcdobW4n+HffFBka6gZdEZrFAyw/9z80uelOdVEy9NV+3zzhRkbiknxW6UUQ l0++f+T/lVbTSDaGJdj3kCogtbDoyQuKFcryoVO+VEkrgIatb91+oqpq+n9KfCKoNQzq NrMA== 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=ZxtwBH6AVrG/Dihlh7M1qSNDvCKFHPNFOOa71sRFmJM=; b=CIUa+fy9/BTzGO/pb9RsyhQTm+gZvRjafchBKlrZ0YqayRXeCN2h8Ytpl0cKtwvP43 GAix6o8z0joSJ+58JyJLDIvmzxtlNVUmtcGxhAjvw2QDRxQfJtsPkkBZfG5Ip/iRY2C2 aJlcPkQBc0eqxy4FjQiTUB6V4Mk/dybcj3eKyweF8qKA9Y//+VN3sYnr4IwQdSZaK41u qqB/LQnMI16QY8wVzq/+gnchvdn2qROnhM10moiOSYD2d0oKO/2ZsBJjjuq2JuM8bD/2 UpEqBce5E4Ol4s2tLhbbYfk4Q7a6GrmspxECZIb51WSMQ+vzMiB5BES4ydL1Z0CEPfA3 wF+g== X-Gm-Message-State: AOAM531XgvwvGHc3J3qgK/AHThTLXRhGmw01OnOrH+CNPlv726hwfSXm SE/bSDat07a98SrckJzUFxvXUklR8dc= X-Google-Smtp-Source: ABdhPJzusiAa3Wc9CgHe/sCrU2obNnik1gFEOlV8EIZP8uJzvCcFi/62y64BOUv1zTi9o0DBpYTHrA== X-Received: by 2002:a05:6830:2011:: with SMTP id e17mr567135otp.295.1623784259008; Tue, 15 Jun 2021 12:10:59 -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 m10sm3960873oig.9.2021.06.15.12.10.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jun 2021 12:10:58 -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, macromorgan@hotmail.com Subject: [PATCH v4 4/5] mtd: spi-nor-ids: Add XTX XT25F128B Date: Tue, 15 Jun 2021 14:10:45 -0500 Message-Id: <20210615191046.11812-5-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210615191046.11812-1-macroalpha82@gmail.com> References: <20210615191046.11812-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.103.2 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 | 4 ++++ 2 files changed, 10 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..29c16ff888 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++ b/drivers/mtd/spi/spi-nor-ids.c @@ -336,6 +336,10 @@ 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) }, #endif { }, }; -- 2.25.1