From patchwork Thu May 27 07:56:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 1484486 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=xHAkRf/M; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FrKsJ6Yw7z9sWD for ; Thu, 27 May 2021 17:56:52 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0A90E82AF4; Thu, 27 May 2021 09:56:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.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=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="xHAkRf/M"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CFF1982AF4; Thu, 27 May 2021 09:56:46 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (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 B281382D14 for ; Thu, 27 May 2021 09:56:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=narmstrong@baylibre.com Received: by mail-wm1-x333.google.com with SMTP id f6-20020a1c1f060000b0290175ca89f698so1985703wmf.5 for ; Thu, 27 May 2021 00:56:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ioiMVgjOwPv3yfGlC4IcVEKd14NNNv82YEQVDI8S1zs=; b=xHAkRf/M4IVYTPUZZ6s5UG7tOGMqkngewR9m1Ex0efVYRVj4qC3CGj/Y4Th8c5z1y6 K+k7Wj92Twi7tQ6u3vKAaoiNilhaWwp6G1LBHIj7AEWRYRR2KB6NioSO6I0lAXK9okGE tHKi3SYnyaSk2wGkTyyDBagA5eDAV9fgG6eistDMKokfU8vfHv/EnzMmQ/ebVI3hQXV4 jmo7GEuRujRYNFm/Xm6UUsSKRJwA04+EyLj/0tu508BerQZZhwn0rWkier7+yLqQWDNK V7z9grxTL5ICsIjTzX5bY8wZhz4ZqjvNkgdxWbqKEkWjhbCXCW/mTh7B8oBKIN4tiFEW Cwew== 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:mime-version :content-transfer-encoding; bh=ioiMVgjOwPv3yfGlC4IcVEKd14NNNv82YEQVDI8S1zs=; b=s/f24Eh7zE7fiQqP0e5zNvCc8GL8TnQkf5f0oHFIEGf3oBeZcHPLdCs41589ahKfQ6 FsMP/f5HxRALD7cOIzaNA5ezvej6A05xY5s7x+y/zNf+PmVvv4KMIJFENGQl4wD/HuBm QJ2+qqJka0shf5eYIMAFCkxK8HclUjW4wUvV3XNzS3auhp/VhmknxDhYvkxVQAztvOA4 OwzSk03sJQiShj7w23KGMgXJXohwZtvQLztwfeMKxXFfK9LqpKfpUEE8okkrM1CMIt5/ X5nA0+65VKvcJhRWI3JOFqUTGympIojCjRc7LwrLArkWqXNnThziAbFrFAkrdLVWgxFV YqKw== X-Gm-Message-State: AOAM531p/miTVxVsILaXbj7CbF/CGij2LEucouFM5ZpdfkR16geRWf8X Nh1K3F37/7lgWTJsYnsCEV8NYxN+GPzMC8Wx X-Google-Smtp-Source: ABdhPJzcF5a/Q/TWelUXoDmwqCWaa5TPC8qW82EBmtmSPpqvJOUILRZwlZfdxCYy1K3okSmCHUDvAQ== X-Received: by 2002:a05:600c:4a16:: with SMTP id c22mr868529wmp.99.1622102202065; Thu, 27 May 2021 00:56:42 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:90c:e290:f7c:28dc:fe09:27d9]) by smtp.gmail.com with ESMTPSA id a11sm1912311wrx.38.2021.05.27.00.56.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 May 2021 00:56:41 -0700 (PDT) From: Neil Armstrong To: jagan@amarulasolutions.com, vigneshr@ti.com, p.yadav@ti.com Cc: u-boot@lists.denx.de, Neil Armstrong Subject: [PATCH v2] mtd: spi-nor-ids: add XT25F128B flash support Date: Thu, 27 May 2021 09:56:36 +0200 Message-Id: <20210527075636.156582-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 This adds the XTX Technology Inc. flash producer Kconfig entry to enable support for the 128Mbit XT25F128B NOR SPI flash. Signed-off-by: Neil Armstrong --- 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..512b57f0db 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..e995a9eca7 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 (XTX Technology Inc.) */ + { INFO("XT25F128B", 0x0b4018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, #endif { }, };