Message ID | 178e4f5f0768c535ab3262f7146ff1ca366485a1.1619488394.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=85.214.62.61; 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=OOb1bWBU; 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FTlzD1MB8z9sXL for <incoming@patchwork.ozlabs.org>; Tue, 27 Apr 2021 12:27:36 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E0D9F82CCA; Tue, 27 Apr 2021 04:26:13 +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="OOb1bWBU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0A03782C97; Tue, 27 Apr 2021 04:25:25 +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-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) (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 2EBD682BA1 for <u-boot@lists.denx.de>; Tue, 27 Apr 2021 04:25:21 +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-pj1-x1034.google.com with SMTP id f11-20020a17090a638bb02901524d3a3d48so6291689pjj.3 for <u-boot@lists.denx.de>; Mon, 26 Apr 2021 19:25:21 -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=DU249/4yyLiihW1fM8x3kLcxcg/F+rJ5JkvutdZGx94=; b=OOb1bWBUZ6TBkE/IyA0vUl2lG+ygYytG7ALQt31uCwmclAqJaLaaOLAESxTTr9LAEx 8tnBP77VY0eJmkzTdkhPRHyCWU7KyhzQ4XZ6H7HoiPQCPgpqyKA+G8JQFS2FUKvz+TMX ZS4IvteWwL1kSyGrN8wf3tagzO2brl04H2sUF5lEJ95Z0gGxlXF2iNghhuuP8stB1H2N BsVg+UF89nQ9VvebDsslm/i9iIiV8agogvYXK55UJs+83eY/ORXt84BV9bUqp5pq5ZKX FjxpbCywUgiva5mZxpuN9Y7NfUm8zaxJ5Xhq0p/xCLVkzJ3CaKI5ODHc7wOrd6zsVGsq 9N8A== 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=DU249/4yyLiihW1fM8x3kLcxcg/F+rJ5JkvutdZGx94=; b=n7Gs5wcswAUXJXqlyCNG79gS0WswzVQmBhErWa4W34kYgSeadDWC7Ifcnyph2f5cV2 5vwX3q9S6CWWOiUOXOEP2DcbZsN/zggb5J94xT5nyRcqFYLhnzPTdFF4/JbeTrMG4quy 4UKUueh8DWnqOHSuGbTy95cTjphKNRnL+HeMHbZkFut9iLg3NUtfDJtpWrCQGdIst3Ut PesIgoCwjcLJHCrLx9yWU7B++4nULbkkmd856gDTIqzixzSxA2z4KCBE/bgHc8Ntw2JB yrr8hBGqzCyIrQ2gWjKR0wAhq1UPpkzklBJIk9chximoLQ5QV4+P4/1dWX+CFpumF6IE 7Xbw== X-Gm-Message-State: AOAM532bajJ95YHOqgXT4d1/c8iq9XgK6z/4dVUbsx207WgdCquZ5GI1 geGD+PYR0PDHn8w9t90in8W+/TYyRBQ= X-Google-Smtp-Source: ABdhPJxxUxCRlRPLGyRlQ3wPuYLRxNisqp7cuBnYufp/sdghJOFcOISjNButvUJkWQK/IOzernMj1A== X-Received: by 2002:a17:902:7402:b029:ed:1bf0:1ef1 with SMTP id g2-20020a1709027402b02900ed1bf01ef1mr10612885pll.24.1619490319618; Mon, 26 Apr 2021 19:25:19 -0700 (PDT) Received: from ISCNPF1JZGWX.infineon.com (zz20174137476F6254EB.userreverse.dion.ne.jp. [111.98.84.235]) by smtp.gmail.com with ESMTPSA id n39sm829264pfv.51.2021.04.26.19.25.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Apr 2021 19:25:19 -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 v7 14/14] mtd: spi-nor-tiny: Add fixups for Cypress s25hl-t/s25hs-t Date: Tue, 27 Apr 2021 11:24:19 +0900 Message-Id: <178e4f5f0768c535ab3262f7146ff1ca366485a1.1619488394.git.Takahiro.Kuwano@infineon.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <cover.1619488393.git.Takahiro.Kuwano@infineon.com> References: <cover.1619488393.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) {