From patchwork Fri May 14 16:03:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 1478569 X-Patchwork-Delegate: narmstrong@baylibre.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=85.214.62.61; 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=bq22TZ42; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4FhYJ05WBGz9sWY for ; Sat, 15 May 2021 02:04:32 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 757E282AC2; Fri, 14 May 2021 18:04:26 +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="bq22TZ42"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4394382AF6; Fri, 14 May 2021 18:04:24 +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-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) (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 5CD8C81F9B for ; Fri, 14 May 2021 18:04:21 +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-wr1-x429.google.com with SMTP id l14so30503965wrx.5 for ; Fri, 14 May 2021 09:04:21 -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=bq22TZ42iDgJEkkWvfTCszfhUenpckvTGmUoGdSK6UDnhgFGBEOANqS+yyh8OAkGEv pW9tM/+llarOye0XLaAsebeGiaKaaEKxNeqmLArABfcZ8lJRokE7bkBDTKk6thcE/OiD uMr0y8CWavOZTYnocfsRftm9UuQ0QuQ/OUUOtuGMryuuUz7f6OfDXZUSJv2DfkReSo1K M+fyPxnGeWQZcs+U60ENPX7EwPwRaIQpWs8dvouT2s2mXhOqjU+GtpYGb9SGC5JNe7rK sFZyDOZpyczWxM14nNPKyBDcNs2sIdHdnyhz5e6wWAQWZ90/Iuap3T9Z0wzTdRnYM7A9 5flw== 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=helZ6SSLSrdF4wKqJntVEOnYd0njQCyhM40x0T6RISs2O1tqKTpjZ40zA4LgfucpzU mrfu18qqLJyXPyI5g6Y0jkoz8X1bt4Nii8736oS4A2VywqtcNQPXjW5cfl4N63wsqa/t 5GU9oVikRAthv72Hau7R0e6VuKpBzidFKlmNcXSDCwdnVjP6AiuAEggDBmhcPcAyfWH3 o6uuDi04yd/lLhWiYouF41hNUmCmWhwNqqDU/xBEQjHIOe+jIM26Lv1HlzcPXrB0tz4Y yWgwPy7cKI71ayDkMVsAgUSs+Ks4FGXe6qzddE3EnQnIMDbZHnX2MGJPkxcrt5URk8/x 85wQ== X-Gm-Message-State: AOAM532cQeS1caXVYF90J7LIiU+tHMT3Ysh2YoqyYSsKv4HznUfYe9/s dhJ4p8m+ZD+FI5H2GDzENbWX1w== X-Google-Smtp-Source: ABdhPJw/JjBnZsTjzL8/4AtbvY6awshZl94SuSb+oqDxdwKDa+YTAsy2Zh0sX0ORDJwiW65IKoUp2Q== X-Received: by 2002:adf:ee44:: with SMTP id w4mr15153113wro.415.1621008260785; Fri, 14 May 2021 09:04:20 -0700 (PDT) Received: from localhost.localdomain ([37.164.215.124]) by smtp.gmail.com with ESMTPSA id p1sm7094285wrs.50.2021.05.14.09.04.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 May 2021 09:04:20 -0700 (PDT) From: Neil Armstrong To: jagan@amarulasolutions.com, vigneshr@ti.com Cc: u-boot@lists.denx.de, Neil Armstrong Subject: [PATCH] mtd: spi: add XT25F128B flash support Date: Fri, 14 May 2021 18:03:51 +0200 Message-Id: <20210514160351.3650889-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 { }, };