Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 4D0C6C433EF for ; Tue, 19 Apr 2022 21:28:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 89D7483DEF; Tue, 19 Apr 2022 23:28:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=timesys.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=timesys-com.20210112.gappssmtp.com header.i=@timesys-com.20210112.gappssmtp.com header.b="esVsZlRA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5B53983D87; Tue, 19 Apr 2022 23:28:36 +0200 (CEST) Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com [IPv6:2607:f8b0:4864:20::f34]) (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 7675683DE1 for ; Tue, 19 Apr 2022 23:28:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=timesys.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=nathan.morrison@timesys.com Received: by mail-qv1-xf34.google.com with SMTP id d9so2707qvm.4 for ; Tue, 19 Apr 2022 14:28:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timesys-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:content-language:to:from :subject:content-transfer-encoding; bh=gx5p6b7R9f47HksBh+g87WaJZMFvXZ+mf8IXdzKlkIA=; b=esVsZlRAnRgUrHwq7CF2379goi86MqXIHrPxL50XSMHnxsInVqOsKr/RapuAprEWMC 4ZDBYDkQ9XLWFFf5Q9VLhcfzXNIsD0RlCQ8yI+FE4t8+/RO2WTn2Wnr90Hz8Vn3ZguSo /HoNV5Xu+4XqDUEUiaqA7FSAxr+LxyG4EnfAuQSpFADOG2Aiqj8yMsmIA2mr7OwJj4+l LwqyWFDPayp3tHE2MpIQUYVy82opsYVbigKRPwYS4DS9MGULbmkeN6oC8gXunaRNAALd QgZ/5SFYhLmn0CeTxubpiL+3aP1QwG/q86HXK0gNulkp0P2/AgqCFQjCRfCsPvCwuoIu Gldg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:from:subject:content-transfer-encoding; bh=gx5p6b7R9f47HksBh+g87WaJZMFvXZ+mf8IXdzKlkIA=; b=A3Ll2mQSesHnk/vMrs5/jOLEIDYpsHonsi4Kn4zCfE7SAOeTt4LIFY2Jt345BiHvjw 0Pt8rx9fkMkAdcrzgPDvSI4fUV5whpM0Dm4JTH28GnEqsIutoWSZrcMo4Aw2oOY/WBGH ehQRq5l8bR5CHqq+V8dgvVnGU4C6mOSuad/AIFbjs3Jgh1zRyIyGzSmWnwZhO0rygHU+ IJ3oPs9Kohf4rwEua0wAquhkfKLgkTtzFXa94wptavflvWgEqYkKUmaH+enUdcFynEPC j8QDPHGDutUqVoWzzgTIf7ed3BvfLzBMKuqyqSYhq+7RTUe3CI4zGV+PdIRB8sA+YgdE c8qA== X-Gm-Message-State: AOAM5311PmAkZ6jcOOmpzl6mWczwvWEr0YxS92j5DCkMGfQfRsLIVkOm MF+qU1CwCywby+u2irT4MTXCEQ== X-Google-Smtp-Source: ABdhPJw3C5eJ9BI8zlnV4grSziJ60cPcxJc9vpU2/Mp/6szOJeHxnszM4blNqHhC2uJikumc48NpRQ== X-Received: by 2002:a05:6214:238a:b0:441:76a5:2331 with SMTP id fw10-20020a056214238a00b0044176a52331mr13021646qvb.96.1650403712218; Tue, 19 Apr 2022 14:28:32 -0700 (PDT) Received: from [192.168.1.125] (user-24-214-165-82.knology.net. [24.214.165.82]) by smtp.gmail.com with ESMTPSA id x23-20020a05620a099700b0069e5cd89332sm535618qkx.77.2022.04.19.14.28.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Apr 2022 14:28:32 -0700 (PDT) Message-ID: Date: Tue, 19 Apr 2022 17:28:31 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US To: Jagan Teki , Vignesh R , Pratyush Yadav , u-boot@lists.denx.de From: Nathan Barrett-Morrison Subject: drivers: mtd: spi: Allow Quad I/O enablement for ISSI SPI flash devices alongside spi-nor-tiny.c subsystem Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.5 at phobos.denx.de X-Virus-Status: Clean Hi All, I noticed this was missing from the spi-nor-tiny.c subsystem while trying to use an ISSI SPI flash device with the U-Boot SPL. This patch will allow Quad (4x) I/O mode to be enabled with ISSI flash devices while inside the U-Boot SPL / using spi-nor-tiny.c. Sincerely, Nathan From 1a7fd52f21d3d3ad4b2ff736a9ea3c1affb9c007 Mon Sep 17 00:00:00 2001 From: Nathan Barrett-Morrison Date: Wed, 26 Jan 2022 13:44:39 -0500 Subject: [PATCH] drivers: mtd: spi: Allow Quad I/O enablement for ISSI SPI flash devices alongside spi-nor-tiny.c subsystem Signed-off-by: Nathan Barrett-Morrison Cc: Jagan Teki Cc: Vignesh R CC: Tom Rini --- drivers/mtd/spi/spi-nor-tiny.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/spi-nor-tiny.c b/drivers/mtd/spi/spi-nor-tiny.c index 130917aaa8..4957448d11 100644 --- a/drivers/mtd/spi/spi-nor-tiny.c +++ b/drivers/mtd/spi/spi-nor-tiny.c @@ -664,6 +664,7 @@ static int spi_nor_setup(struct spi_nor *nor, const struct flash_info *info, switch (JEDEC_MFR(info)) { #ifdef CONFIG_SPI_FLASH_MACRONIX case SNOR_MFR_MACRONIX: + case SNOR_MFR_ISSI: err = macronix_quad_enable(nor); break; #endif -- 2.34.1