[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1962449.rfF5AqLB98@avalon>
Date: Thu, 26 Apr 2018 23:18:12 +0300
From: Laurent Pinchart <laurent.pinchart@...asonboard.com>
To: Kieran Bingham <kieran.bingham+renesas@...asonboard.com>
Cc: linux-renesas-soc@...r.kernel.org, David Airlie <airlied@...ux.ie>,
"open list:DRM DRIVERS FOR RENESAS" <dri-devel@...ts.freedesktop.org>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 04/17] drm: rcar-du: Use the correct naming for ODPM fields in DEFR6
Hi Kieran,
Thank you for the patch.
On Thursday, 26 April 2018 19:53:33 EEST Kieran Bingham wrote:
> The naming of the fields for the ODPM signals in the DU extensional
> function control register 6 (DEFR6) is incorrect against the data sheets
> for both R-Car Gen2 and R-Car Gen3.
>
> Rename the fields to match the datasheet.
>
> Signed-off-by: Kieran Bingham <kieran.bingham+renesas@...asonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@...asonboard.com>
and taken in my tree.
> ---
> drivers/gpu/drm/rcar-du/rcar_du_group.c | 4 ++--
> drivers/gpu/drm/rcar-du/rcar_du_regs.h | 16 ++++++++--------
> 2 files changed, 10 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/gpu/drm/rcar-du/rcar_du_group.c
> b/drivers/gpu/drm/rcar-du/rcar_du_group.c index 2f37ea901873..eead202c95c7
> 100644
> --- a/drivers/gpu/drm/rcar-du/rcar_du_group.c
> +++ b/drivers/gpu/drm/rcar-du/rcar_du_group.c
> @@ -46,10 +46,10 @@ void rcar_du_group_write(struct rcar_du_group *rgrp, u32
> reg, u32 data)
>
> static void rcar_du_group_setup_pins(struct rcar_du_group *rgrp)
> {
> - u32 defr6 = DEFR6_CODE | DEFR6_ODPM12_DISP;
> + u32 defr6 = DEFR6_CODE | DEFR6_ODPM02_DISP;
>
> if (rgrp->num_crtcs > 1)
> - defr6 |= DEFR6_ODPM22_DISP;
> + defr6 |= DEFR6_ODPM12_DISP;
>
> rcar_du_group_write(rgrp, DEFR6, defr6);
> }
> diff --git a/drivers/gpu/drm/rcar-du/rcar_du_regs.h
> b/drivers/gpu/drm/rcar-du/rcar_du_regs.h index d5bae99d3cfe..9dfd220ceda1
> 100644
> --- a/drivers/gpu/drm/rcar-du/rcar_du_regs.h
> +++ b/drivers/gpu/drm/rcar-du/rcar_du_regs.h
> @@ -187,14 +187,14 @@
>
> #define DEFR6 0x000e8
> #define DEFR6_CODE (0x7778 << 16)
> -#define DEFR6_ODPM22_DSMR (0 << 10)
> -#define DEFR6_ODPM22_DISP (2 << 10)
> -#define DEFR6_ODPM22_CDE (3 << 10)
> -#define DEFR6_ODPM22_MASK (3 << 10)
> -#define DEFR6_ODPM12_DSMR (0 << 8)
> -#define DEFR6_ODPM12_DISP (2 << 8)
> -#define DEFR6_ODPM12_CDE (3 << 8)
> -#define DEFR6_ODPM12_MASK (3 << 8)
> +#define DEFR6_ODPM12_DSMR (0 << 10)
> +#define DEFR6_ODPM12_DISP (2 << 10)
> +#define DEFR6_ODPM12_CDE (3 << 10)
> +#define DEFR6_ODPM12_MASK (3 << 10)
> +#define DEFR6_ODPM02_DSMR (0 << 8)
> +#define DEFR6_ODPM02_DISP (2 << 8)
> +#define DEFR6_ODPM02_CDE (3 << 8)
> +#define DEFR6_ODPM02_MASK (3 << 8)
> #define DEFR6_TCNE1 (1 << 6)
> #define DEFR6_TCNE0 (1 << 4)
> #define DEFR6_MLOS1 (1 << 2)
--
Regards,
Laurent Pinchart
Powered by blists - more mailing lists