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.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 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 57C0DC43214 for ; Wed, 11 Aug 2021 10:20:59 +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 4CF3661076 for ; Wed, 11 Aug 2021 10:20:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4CF3661076 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=rock-chips.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 AC59982DC3; Wed, 11 Aug 2021 12:20:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id C656F82DC0; Wed, 11 Aug 2021 12:20:22 +0200 (CEST) Received: from regular1.263xmail.com (regular1.263xmail.com [211.150.70.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7065682DAC for ; Wed, 11 Aug 2021 12:20:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=kever.yang@rock-chips.com Received: from localhost (unknown [192.168.167.235]) by regular1.263xmail.com (Postfix) with ESMTP id B49B21B64 for ; Wed, 11 Aug 2021 18:19:59 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-SKE-CHECKED: 1 X-ABS-CHECKED: 1 X-ANTISPAM-LEVEL: 2 Received: from [192.168.60.65] (unknown [103.29.142.67]) by smtp.263.net (postfix) whith ESMTP id P25123T140690692495104S1628677195260213_; Wed, 11 Aug 2021 18:20:00 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: kever.yang@rock-chips.com X-SENDER: yk@rock-chips.com X-LOGIN-NAME: kever.yang@rock-chips.com X-FST-TO: macromorgan@hotmail.com X-RCPT-COUNT: 8 X-SENDER-IP: 103.29.142.67 X-ATTACHMENT-NUM: 0 X-System-Flag: 0 Subject: Re: [PATCH v7 4/6] mtd: spi-nor-ids: Add XTX XT25F128B To: Jon Lin , u-boot@lists.denx.de Cc: heiko.stuebner@theobroma-systems.com, vigneshr@ti.com, jagan@amarulasolutions.com, philipp.tomsich@vrull.eu, sjg@chromium.org, macromorgan@hotmail.com References: <20210805082643.3324-1-jon.lin@rock-chips.com> <20210805162301.v7.4.I427e8f56a57233300ed93c532415a4502d2dd561@changeid> From: Kever Yang Message-ID: Date: Wed, 11 Aug 2021 18:19:54 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210805162301.v7.4.I427e8f56a57233300ed93c532415a4502d2dd561@changeid> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US 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 On 2021/8/5 下午4:26, Jon Lin wrote: > 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 > Signed-off-by: Jon Lin Reviewed-by: Kever Yang Thanks, - Kever > --- > > Changes in v7: > - Remove SPI_NOR_HAS_TB and SPI_NOR_HAS_LOCK > > 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 1b2ef37e92..b2291f7290 100644 > --- a/drivers/mtd/spi/Kconfig > +++ b/drivers/mtd/spi/Kconfig > @@ -204,6 +204,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 cb3a08872d..4aef1ddd6e 100644 > --- a/drivers/mtd/spi/spi-nor-ids.c > +++ b/drivers/mtd/spi/spi-nor-ids.c > @@ -361,6 +361,10 @@ const struct flash_info spi_nor_ids[] = { > { INFO("XM25QH64A", 0x207017, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, > { INFO("XM25QH64C", 0x204017, 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 > { }, > };