Message ID | 637f5a3f16af900ab209db7b53aca9d82de44430.1617694518.git.Takahiro.Kuwano@infineon.com |
---|---|
State | Changes Requested |
Delegated to: | Jagannadha Sutradharudu Teki |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=bc61Gydn; 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FFVQV03fqz9sSC for <incoming@patchwork.ozlabs.org>; Wed, 7 Apr 2021 13:35:13 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2DFD781D10; Wed, 7 Apr 2021 05:32:54 +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="bc61Gydn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 31032817B8; Wed, 7 Apr 2021 05:32:36 +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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) (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 3A49281743 for <u-boot@lists.denx.de>; Wed, 7 Apr 2021 05:32:31 +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=tkuw584924@gmail.com Received: by mail-pl1-x630.google.com with SMTP id z12so4572394plb.9 for <u-boot@lists.denx.de>; Tue, 06 Apr 2021 20:32:31 -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=zzaTW5+iadrk6oSeQMBAt9U1Bg5o6CwQKwv4zEEolhY=; b=bc61Gydn/p1vO5SF2ezg59YkAyaOZqi59luJhbDJ6B3Wnkv1880tWYgRTz/FPm/WTJ MpfsqH7rNS8pk9Kk7+a7zR7NXaRQ46sCIqqkwFERAe7/E9aMZE6aIH2zFHQhzbcvjg5k TXxN1mUxjexcV4McBDTC2SHb9mAa9EawXasBx8mtUY37Cp7oWv12RKULNhgEg5Q5GbX4 j+SzuZDSqRDM46CXspJUfwvQevln5HpK1HqASOp2xasWMWfBY6S/NyRQKganF0aj8ZpU K2fdsix004d0hzN3cdzJKeOLG0qaxIexqhQtoPFb68vOye/TJlMxqknAMkirVSmkhEtl S2Pw== 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=zzaTW5+iadrk6oSeQMBAt9U1Bg5o6CwQKwv4zEEolhY=; b=j/VYWZCeKNEwKlYX74fbs1Zq/7UJmM/qXxncRh7BpnB16t8kZztfCzK4xwABTNVoUD +0//NIqXD9dkjJXSgfTnWxFiytgfLQJOaUwksTZYZwFW2yiPaFu7c6OlgEoZlVQ6/Knt OJjqsmC0PrmLBuHyoLuxMzbz5ZR+K97BF8oZHiOTc4qoYB5yfPldWtb1QGORPkTZqxm6 pcm4Ir/KejK5wiT9yFpSavsCsRuVPqdeaGEQaAU73s2uv3bQldQmNV/26QpKr/h235L7 TxREDJV+LzNJ5IKJrdq8wJVaLrUNMuXUVuZYp6S7NvRSmmA2bY30p/W1FP78COYy8TQX uGFw== X-Gm-Message-State: AOAM530SE/tk0hxRmSPwiHr/Drjri/U3OS6ZTVkih56qcQPrCkFxsy5M Mr60TU1zsFN0B6graTitKx6tIUbgNbICsQ== X-Google-Smtp-Source: ABdhPJzZ+WE4fKjFH5Akxccuv6bVDM+CH2VJC2OK/VEFVQ9B1OLK1omGgk+EAP8Efrknk1LdFYp4wQ== X-Received: by 2002:a17:90a:2bcd:: with SMTP id n13mr1269169pje.145.1617766349772; Tue, 06 Apr 2021 20:32:29 -0700 (PDT) Received: from ISCNPF1JZGWX.infineon.com (zz20174137476F6254EB.userreverse.dion.ne.jp. [111.98.84.235]) by smtp.gmail.com with ESMTPSA id x13sm5422976pgf.13.2021.04.06.20.32.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 20:32:29 -0700 (PDT) From: tkuw584924@gmail.com X-Google-Original-From: Takahiro.Kuwano@infineon.com To: u-boot@lists.denx.de Cc: jagan@amarulasolutions.com, vigneshr@ti.com, p.yadav@ti.com, tkuw584924@gmail.com, Bacem.Daassi@infineon.com, Takahiro Kuwano <Takahiro.Kuwano@infineon.com> Subject: [PATCH v6 14/14] mtd: spi-nor-tiny: Add fixups for Cypress s25hl-t/s25hs-t Date: Wed, 7 Apr 2021 12:31:12 +0900 Message-Id: <637f5a3f16af900ab209db7b53aca9d82de44430.1617694518.git.Takahiro.Kuwano@infineon.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <cover.1617694518.git.Takahiro.Kuwano@infineon.com> References: <cover.1617694518.git.Takahiro.Kuwano@infineon.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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
mtd: spi-nor: Add support for Cypress s25hl-t/s25hs-t
|
expand
|
diff --git a/drivers/mtd/spi/spi-nor-tiny.c b/drivers/mtd/spi/spi-nor-tiny.c index 5cc2b7d996..aa2df75c60 100644 --- a/drivers/mtd/spi/spi-nor-tiny.c +++ b/drivers/mtd/spi/spi-nor-tiny.c @@ -583,6 +583,12 @@ static int spi_nor_init_params(struct spi_nor *nor, spi_nor_set_read_settings(¶ms->reads[SNOR_CMD_READ_FAST], 0, 8, SPINOR_OP_READ_FAST, SNOR_PROTO_1_1_1); +#ifdef CONFIG_SPI_FLASH_SPANSION + if (JEDEC_MFR(info) == SNOR_MFR_CYPRESS && + (info->id[1] == 0x2a || info->id[1] == 0x2b)) + /* 0x2a: S25HL (QSPI, 3.3V), 0x2b: S25HS (QSPI, 1.8V) */ + params->reads[SNOR_CMD_READ_FAST].num_mode_clocks = 8; +#endif } if (info->flags & SPI_NOR_QUAD_READ) {