Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2947311ybi; Mon, 10 Jun 2019 01:18:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyL+3uMtRSulHeXzevDGaBL4LXUixdt4lmX4LyX9Zy3Ic2jscnu1ngL/9Llk74uxctGvDBw X-Received: by 2002:a17:90a:af8b:: with SMTP id w11mr20119192pjq.135.1560154700263; Mon, 10 Jun 2019 01:18:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560154700; cv=none; d=google.com; s=arc-20160816; b=k1e+vjzhkn+Y2oVVhIQ61Xu7AFNkXdgMVKrWBcAKs/ZlIynO7f7LhpY2SG0fOM0xL2 DM7hvvH448zgbt7nnfjrDDquqCDWN+zT0UoMGOYYFQWjZEwdTwePIM4MluE3BkAI+JsI vhjzMY5WgsLV3WjOdX8KyYFYli5gVfY9jiAzDV/09JDdYs6UB2/lNmIFGF4C4tvTrZVe xsunHaTfJgt6mLca8Cn2KIkQfYJ78rfZWch2Y8ZuHdxrk/q+5i4X4XKZQkhXnVbB77VS CkKmxf6cpsvL/1yF0w/Xppk3oWPz0LTjr362EvMiEpkLS2ao8K8205z0ZkZYz0tIvPv2 Gkkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=LNyZvbvTF3+D5U7KuT2v6e6qnPMHf6NiFqNaxmPryL0=; b=aS4UDvDICsxjiIenFWyeheu2CHyZ4APTj2tL2OS6pOlHl+Qozg8JPnryNvfElvqraj IrN31LkpLDE8aznVPj/f1nMLJ/neFy99PXIeh7R1AMoFcaRrvqnMxeJSTq36dJmoi/R0 Oo36qc2NxNorkYw6vhnW3ATwEw+3bz/QrMNA8hPSS9WuHHO6RBi0sksl/MICGQUoxtDE gBkzKuqg3UlF2w6mN/XtDuWJLNuCkNBb96SIy5oaSvtLQw2S7byT+ZguPkJC0xHiEKLc 0IscG/acguo6gMg1DzFESil0ehOG5EiRQedbbARF1/B11p/8Tj7yx3fBuZa0wd1dSrze 7ixA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y12si9568324pgc.97.2019.06.10.01.18.04; Mon, 10 Jun 2019 01:18:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388648AbfFJIR1 (ORCPT + 99 others); Mon, 10 Jun 2019 04:17:27 -0400 Received: from inva020.nxp.com ([92.121.34.13]:37040 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388252AbfFJIQa (ORCPT ); Mon, 10 Jun 2019 04:16:30 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id B062B1A07AF; Mon, 10 Jun 2019 10:16:28 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id AF5EB1A07AC; Mon, 10 Jun 2019 10:16:20 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id A6558402DD; Mon, 10 Jun 2019 16:16:10 +0800 (SGT) From: yibin.gong@nxp.com To: robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, broonie@kernel.org, festevam@gmail.com, vkoul@kernel.org, dan.j.williams@intel.com, u.kleine-koenig@pengutronix.de, catalin.marinas@arm.com, l.stach@pengutronix.de, will.deacon@arm.com Cc: linux-spi@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v5 05/15] dmaengine: imx-sdma: add mcu_2_ecspi script Date: Mon, 10 Jun 2019 16:17:43 +0800 Message-Id: <20190610081753.11422-6-yibin.gong@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190610081753.11422-1-yibin.gong@nxp.com> References: <20190610081753.11422-1-yibin.gong@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Robin Gong Add mcu_2_ecspi script to fix ecspi errata ERR009165. Signed-off-by: Robin Gong Acked-by: Vinod Koul --- drivers/dma/imx-sdma.c | 3 +++ include/linux/platform_data/dma-imx-sdma.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index dbd1dcd..61af656 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -924,6 +924,9 @@ static void sdma_get_pc(struct sdma_channel *sdmac, emi_2_per = sdma->script_addrs->mcu_2_ata_addr; break; case IMX_DMATYPE_CSPI: + per_2_emi = sdma->script_addrs->app_2_mcu_addr; + emi_2_per = sdma->script_addrs->mcu_2_ecspi_addr; + break; case IMX_DMATYPE_EXT: case IMX_DMATYPE_SSI: case IMX_DMATYPE_SAI: diff --git a/include/linux/platform_data/dma-imx-sdma.h b/include/linux/platform_data/dma-imx-sdma.h index 6eaa53c..f794fee 100644 --- a/include/linux/platform_data/dma-imx-sdma.h +++ b/include/linux/platform_data/dma-imx-sdma.h @@ -51,6 +51,7 @@ struct sdma_script_start_addrs { /* End of v2 array */ s32 zcanfd_2_mcu_addr; s32 zqspi_2_mcu_addr; + s32 mcu_2_ecspi_addr; /* End of v3 array */ }; -- 2.7.4