Re: [PATCH 2/3] dmaengine: rcar-dmac: Add support for R-Car S4-8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On 12/21/2021 6:27 AM Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx> wrote:
> 
>  
> Add support for R-Car S4-8. We can reuse R-Car V3U code so that
> renames variable names as "gen4".
> 
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>
> ---
>  drivers/dma/sh/rcar-dmac.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/dma/sh/rcar-dmac.c b/drivers/dma/sh/rcar-dmac.c
> index 5c7716fd6bc5..e409c89edca1 100644
> --- a/drivers/dma/sh/rcar-dmac.c
> +++ b/drivers/dma/sh/rcar-dmac.c
> @@ -2009,7 +2009,7 @@ static const struct rcar_dmac_of_data rcar_dmac_data = {
>  	.chan_offset_stride	= 0x80,
>  };
>  
> -static const struct rcar_dmac_of_data rcar_v3u_dmac_data = {
> +static const struct rcar_dmac_of_data rcar_gen4_dmac_data = {
>  	.chan_offset_base	= 0x0,
>  	.chan_offset_stride	= 0x1000,
>  };
> @@ -2018,9 +2018,12 @@ static const struct of_device_id rcar_dmac_of_ids[] = {
>  	{
>  		.compatible = "renesas,rcar-dmac",
>  		.data = &rcar_dmac_data,
> +	}, {
> +		.compatible = "renesas,rcar-gen4-dmac",
> +		.data = &rcar_gen4_dmac_data,
>  	}, {
>  		.compatible = "renesas,dmac-r8a779a0",
> -		.data = &rcar_v3u_dmac_data,
> +		.data = &rcar_gen4_dmac_data,
>  	},
>  	{ /* Sentinel */ }
>  };
> -- 
> 2.25.1

Reviewed-by: Ulrich Hecht <uli+renesas@xxxxxxxx>

CU
Uli



[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux