From patchwork Mon Jan 18 23:52:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathew McBride X-Patchwork-Id: 365652 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp250321jam; Mon, 18 Jan 2021 15:54:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkerVCo+mdd50YwK0RX+EwL8Y5B/ljGkeA0VFjbukLsGUZsrmcRaUxcH87VcbCavVOs6Pm X-Received: by 2002:a17:906:4f0d:: with SMTP id t13mr1357131eju.10.1611014057287; Mon, 18 Jan 2021 15:54:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611014057; cv=none; d=google.com; s=arc-20160816; b=Lvs8TYOyouCd2aJzyi6OM0/z82evtNRTGH2M5YUtQvKxttE8fkFKedGUJOS2jwi5Ij UMfThv8hc4SA173jVkFbDC6TPbsd1E0woTUw3QbWho4SHd6a9rZCddrGymA7/kK13t6x dW27Fx8oC3I4yQVrUR+A4VjjIBwpKIA+apCXWcB11DwRZzf1wZC0rheJnCMk8dMjg6oe q2Bj/M3nVd5hSGulGd/UFl8zJvBp3qHm+xVf7cgrUknSTXekbUAAW2NjCNs17W/uq2nn adjOdch1dmtwUnBtrpsBraGIKguZ3tOWN0iWNxHisZRWuOnA6VP/tNCCt/5gh4z6+wdW UZnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature; bh=B5MexJR5lZYGMuBRGtASxjTfdSh4xd17HDFHOkC3TGg=; b=WISn7382W09jRXh/daxSSs2PubgmUHlq9tHePB8A1MZ2uI2RfpOBvzAiUDDcNKb4Tn eGfzoa3GmBgkzUXRbzxcpFg9qFqJ+WWYKYI5gpaQB0Bzfy/sRXi3HU2CsPXZ86wXh+IX 0Yltfzy9esoEO0aWjOEhkuYaOh2dL+za92MaliZQTKXyNdeE7MWOGgCPd8NKD07NQxIQ Smkt6Vt+hE6t2P8BiWTlnR6e5/Bqu+CqMuTSuMZFMcMlP7eiTqj3lR+buYA5kPJ08LYN uz5XojJ5Hl1s16J8pcdhajEH2iQ48NPnf2R11or1N4QuxodOxsBZatZ0rTLhZbyWPF6D uxOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@traverse.com.au header.s=fm2 header.b=ecpork4C; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=PEVVw705; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id u15si8794062edt.339.2021.01.18.15.54.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 15:54:17 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@traverse.com.au header.s=fm2 header.b=ecpork4C; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=PEVVw705; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 802F2828AC; Tue, 19 Jan 2021 00:53:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=traverse.com.au 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=traverse.com.au header.i=@traverse.com.au header.b="ecpork4C"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="PEVVw705"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C8889828BB; Tue, 19 Jan 2021 00:53:50 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1A75E828AB for ; Tue, 19 Jan 2021 00:53:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=traverse.com.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=matt@traverse.com.au Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 545BE5C003F; Mon, 18 Jan 2021 18:53:45 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Mon, 18 Jan 2021 18:53:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=traverse.com.au; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=B5MexJR5lZYGM uBRGtASxjTfdSh4xd17HDFHOkC3TGg=; b=ecpork4CdnDG78orw5lNsxBktL7ph oNU2mCI74r51BLy/u4HLDlt5UVOminUo9EQYvv/PMtWDom8vHSdYIs0Wew/XNZKN bEnLBhuRbsFVFNcAIJX+gFBkKIVfCUsgFfpiFNnNKUJ+0letiCQsE1R49ubJ/iF5 CHosJ7iBstMAJMkdKL84NcGvWHeaCIl1i/+O0OP4Jqp5cCRWmiP39nwUVvn3IsEi aqJqq2vgzRGPl6CMHX+9s4vPlXr025Xg1F+nksCDOC4kY1eLFFVjrZPB9radHQNJ MZdcZuCvQ2e18oVxD9ZqdbhMkgRwoz6ABgzwymTUmgux5F8i6Qpu92rLw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=B5MexJR5lZYGMuBRGtASxjTfdSh4xd17HDFHOkC3TGg=; b=PEVVw705 PXRS58tPSDwlHKs/9V1dHzcCaYpzMxR5x6cF7EzU5QcgSFVChpGw1PSmBVhV0Fmq SJkmzVqIP+7Aer/hVMcGQtPUAe7RAw+kCPWjPVljCHYveAmswdhuO0Pxjy7eMjDn uxmgUX2mXJAYJ7Goxtl4+jkkuDXGnDjm0yw9PQwm7fJQkVRLDJmrnIYzPk5SAE3v 3badHaxmLi+esyeYrUD22BWkxnPKtOKfjLg+NagrwdlwjIYQi1DWoS0y0NZKzd7Z yVJDNuCqPynBDyXoAi0P5XHI0+bUhLlr94kIBqfdQ7oo23F9jFHWBBrpxr2azlz/ f3L8dxV0xyyILQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrtdelgddugecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepofgrthhhvgif ucfotgeurhhiuggvuceomhgrthhtsehtrhgrvhgvrhhsvgdrtghomhdrrghuqeenucggtf frrghtthgvrhhnpeekleevteelvdduheetgfdvfeelueekffeggeethedtteeljeeivedv gfehjeejheenucfkphepudduledrudejrdduheeirddugedunecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrthhtsehtrhgrvhgvrhhsvgdr tghomhdrrghu X-ME-Proxy: Received: from localhost.localdomain (119-17-156-141.77119c.mel.static.aussiebb.net [119.17.156.141]) by mail.messagingengine.com (Postfix) with ESMTPA id 9365824005A; Mon, 18 Jan 2021 18:53:43 -0500 (EST) From: Mathew McBride To: Jagan Teki , u-boot@lists.denx.de Cc: Priyanka Jain , Michael Walle , Mathew McBride Subject: [PATCH 3/3] spi: fsl_qspi: apply the same settings for LS1088 as LS208x Date: Mon, 18 Jan 2021 23:52:56 +0000 Message-Id: <20210118235256.29748-4-matt@traverse.com.au> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210118235256.29748-1-matt@traverse.com.au> References: <20210118235256.29748-1-matt@traverse.com.au> 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.3 at phobos.denx.de X-Virus-Status: Clean The LS1088 requires the same QUADSPI_QURIK_BASE_INTERNAL workaround as the LS208x and also has a 64 byte TX buffer. With the previous settings SPI-NAND reads over AHB were corrupted. Fixes: 91afd36f3802 ("spi: Transform the FSL QuadSPI driver to use the SPI MEM API") Signed-off-by: Mathew McBride --- drivers/spi/fsl_qspi.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) -- 2.30.0 diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index 2a1f3a0c44..f965301d6a 100644 --- a/drivers/spi/fsl_qspi.c +++ b/drivers/spi/fsl_qspi.c @@ -259,14 +259,6 @@ static const struct fsl_qspi_devtype_data ls1021a_data = { .little_endian = false, }; -static const struct fsl_qspi_devtype_data ls1088a_data = { - .rxfifo = SZ_128, - .txfifo = SZ_128, - .ahb_buf_size = SZ_1K, - .quirks = QUADSPI_QUIRK_TKT253890, - .little_endian = true, -}; - static const struct fsl_qspi_devtype_data ls2080a_data = { .rxfifo = SZ_128, .txfifo = SZ_64, @@ -877,7 +869,7 @@ static const struct udevice_id fsl_qspi_ids[] = { { .compatible = "fsl,imx7d-qspi", .data = (ulong)&imx7d_data, }, { .compatible = "fsl,imx7ulp-qspi", .data = (ulong)&imx7ulp_data, }, { .compatible = "fsl,ls1021a-qspi", .data = (ulong)&ls1021a_data, }, - { .compatible = "fsl,ls1088a-qspi", .data = (ulong)&ls1088a_data, }, + { .compatible = "fsl,ls1088a-qspi", .data = (ulong)&ls2080a_data, }, { .compatible = "fsl,ls2080a-qspi", .data = (ulong)&ls2080a_data, }, { } };