diff mbox series

[v14,06/12] dmaengine: imx-sdma: add mcu_2_ecspi script

Message ID 1617809456-17693-7-git-send-email-yibin.gong@nxp.com
State Superseded
Headers show
Series add ecspi ERR009165 for i.mx6/7 soc family | expand

Commit Message

Robin Gong April 7, 2021, 3:30 p.m. UTC
Add mcu_2_ecspi script to fix ecspi errata ERR009165.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
---
 drivers/dma/imx-sdma.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Lucas Stach July 9, 2021, 9:32 a.m. UTC | #1
Am Mittwoch, dem 07.04.2021 um 23:30 +0800 schrieb Robin Gong:
> Add mcu_2_ecspi script to fix ecspi errata ERR009165.
> 
> Signed-off-by: Robin Gong <yibin.gong@nxp.com>
> Acked-by: Vinod Koul <vkoul@kernel.org>

Reviewed-by: Lucas Stach <l.stach@pengutronix.de>

> ---
>  drivers/dma/imx-sdma.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
> index 78dcfe2..86bd383 100644
> --- a/drivers/dma/imx-sdma.c
> +++ b/drivers/dma/imx-sdma.c
> @@ -892,6 +892,10 @@ 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;
> +		sdmac->is_ram_script = true;
> +		break;
>  	case IMX_DMATYPE_EXT:
>  	case IMX_DMATYPE_SSI:
>  	case IMX_DMATYPE_SAI:
diff mbox series

Patch

diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index 78dcfe2..86bd383 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -892,6 +892,10 @@  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;
+		sdmac->is_ram_script = true;
+		break;
 	case IMX_DMATYPE_EXT:
 	case IMX_DMATYPE_SSI:
 	case IMX_DMATYPE_SAI: