rcar-du: add/rename DEFR6 TCON bits
Subsystems (3)
PATCH 1/1 rcar-du: add/rename DEFR6 TCON bits
The TCNE2 bit of the DEFR6 register was renamed to TCNE1 in the R-Car gen2 manuals -- which makes more sense as that bit controls whether DU1, not DU2 is connected to TCON.
While at it, add the TCNE0 bit which controls whether DU0 is connected to TCON.
Based on the large patch by Andrey Gusakov <[email protected]>.
---
The patch is against David Airlie's 'linux.git' repo's 'drm-next' branch.
drivers/gpu/drm/rcar-du/rcar_du_regs.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/rcar-du/rcar_du_regs.h +3 -2
@@ -195,9 +195,10 @@#define DEFR6_ODPM12_DISP (2 << 8)#define DEFR6_ODPM12_CDE (3 << 8)#define DEFR6_ODPM12_MASK (3 << 8) -#define DEFR6_TCNE2 (1 << 6) +#define DEFR6_TCNE1 (1 << 6) +#define DEFR6_TCNE0 (1 << 4)#define DEFR6_MLOS1 (1 << 2) -#define DEFR6_DEFAULT (DEFR6_CODE | DEFR6_TCNE2) +#define DEFR6_DEFAULT (DEFR6_CODE | DEFR6_TCNE1)/* ----------------------------------------------------------------------------- * R8A7790-only Control Registers
Hi Sergei,
Quoted 11 lines · Sergei Shtylyov
The TCNE2 bit of the DEFR6 register was renamed to TCNE1 in the R-Car gen2 manuals -- which makes more sense as that bit controls whether DU1, not DU2 is connected to TCON.
While at it, add the TCNE0 bit which controls whether DU0 is connected to TCON.
Based on the large patch by Andrey Gusakov <[email protected]>.
Signed-off-by Andrey Gusakov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>
I hard a hard time finding this register, as it's actually called "DEF6R"... Care to update /DEFRx/DEFxR/ as well?
Regardless:
Quoted 11 lines
---
The patch is against David Airlie's 'linux.git' repo's 'drm-next' branch.drivers/gpu/drm/rcar-du/rcar_du_regs.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)Index:
linux/drivers/gpu/drm/rcar-du/rcar_du_regs.h
===================================================================
drivers/gpu/drm/rcar-du/rcar_du_regs.h line 201
Quoted 9 lines
drivers/gpu/drm/rcar-du/rcar_du_regs.h +3
-2@@ -195,9 +195,10 @@#define DEFR6_ODPM12_DISP (2 << 8)#define DEFR6_ODPM12_CDE (3 << 8)#define DEFR6_ODPM12_MASK (3 << 8) -#define DEFR6_TCNE2 (1 << 6) +#define DEFR6_TCNE1 (1 << 6) +#define DEFR6_TCNE0 (1 << 4)#define DEFR6_MLOS1 (1 << 2) -#define DEFR6_DEFAULT (DEFR6_CODE | DEFR6_TCNE2) +#define DEFR6_DEFAULT (DEFR6_CODE | DEFR6_TCNE1)
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Quoted 7 lines · Geert Uytterhoeven
Quoted 7 lines
The TCNE2 bit of the DEFR6 register was renamed to TCNE1 in the R-Car gen2 manuals -- which makes more sense as that bit controls whether DU1, not DU2 is connected to TCON.
While at it, add the TCNE0 bit which controls whether DU0 is connected to TCON.
Quoted 6 lines
Quoted 4 lines
Based on the large patch by Andrey Gusakov <[email protected]>.
Signed-off-by Andrey Gusakov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>I hard a hard time finding this register, as it's actually called "DEF6R"...
Well, the R-Car M1A manual named it this way, hence is this name in the
driver, I guess.
Quoted 1 line
Care to update /DEFRx/DEFxR/ as well?
No. :-)
Quoted 2 lines
Regardless:
Reviewed-by Geert Uytterhoeven <[email protected]>
Thank you.
[...]
MBR, Sergei
Hi Geert,
Quoted 8 lines · On Monday 25 Apr 2016 09:25:30 Geert Uytterhoeven wrote:
Quoted 7 lines · Sergei Shtylyov
The TCNE2 bit of the DEFR6 register was renamed to TCNE1 in the R-Car gen2 manuals -- which makes more sense as that bit controls whether DU1, not DU2 is connected to TCON.
While at it, add the TCNE0 bit which controls whether DU0 is connected to TCON.
Quoted 8 lines
Quoted 5 lines
Based on the large patch by Andrey Gusakov
<[email protected]>.Signed-off-by Andrey Gusakov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>I hard a hard time finding this register, as it's actually called "DEF6R"... Care to update /DEFRx/DEFxR/ as well?
Inconsistent information between datasheet versions I'm afraid, and even between different registers in a single datasheet. We have DEFR0, DEFR1, and then DEFxR. I wonder if it's worth renaming the registers.
Quoted 27 lines
Regardless:
Reviewed-by Geert Uytterhoeven <[email protected]>Quoted 24 lines
---
The patch is against David Airlie's 'linux.git' repo's 'drm-next' branch.drivers/gpu/drm/rcar-du/rcar_du_regs.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)Index:
linux/drivers/gpu/drm/rcar-du/rcar_du_regs.h
===================================================================drivers/gpu/drm/rcar-du/rcar_du_regs.h +3
-2@@ -195,9 +195,10 @@#define DEFR6_ODPM12_DISP (2 << 8)#define DEFR6_ODPM12_CDE (3 << 8)#define DEFR6_ODPM12_MASK (3 << 8) -#define DEFR6_TCNE2 (1 << 6) +#define DEFR6_TCNE1 (1 << 6) +#define DEFR6_TCNE0 (1 << 4)#define DEFR6_MLOS1 (1 << 2) -#define DEFR6_DEFAULT (DEFR6_CODE | DEFR6_TCNE2) +#define DEFR6_DEFAULT (DEFR6_CODE | DEFR6_TCNE1)
Signature · 8 lines
Regards, Laurent Pinchart _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Sergei,
Thank you for the patch.
Quoted 4 lines · On Saturday 23 Apr 2016 01:56:07 Sergei Shtylyov wrote:
The TCNE2 bit of the DEFR6 register was renamed to TCNE1 in the R-Car gen2 manuals -- which makes more sense as that bit controls whether DU1, not DU2 is connected to TCON.
Quoted 8 lines
While at it, add the TCNE0 bit which controls whether DU0 is connected to TCON.
Based on the large patch by Andrey Gusakov
<[email protected]>.Signed-off-by Andrey Gusakov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>
and applied to my tree.
Quoted 23 lines
---
The patch is against David Airlie's 'linux.git' repo's 'drm-next' branch.drivers/gpu/drm/rcar-du/rcar_du_regs.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)Index:
linux/drivers/gpu/drm/rcar-du/rcar_du_regs.h
===================================================================drivers/gpu/drm/rcar-du/rcar_du_regs.h +3
-2@@ -195,9 +195,10 @@#define DEFR6_ODPM12_DISP (2 << 8)#define DEFR6_ODPM12_CDE (3 << 8)#define DEFR6_ODPM12_MASK (3 << 8) -#define DEFR6_TCNE2 (1 << 6) +#define DEFR6_TCNE1 (1 << 6) +#define DEFR6_TCNE0 (1 << 4)#define DEFR6_MLOS1 (1 << 2) -#define DEFR6_DEFAULT (DEFR6_CODE | DEFR6_TCNE2) +#define DEFR6_DEFAULT (DEFR6_CODE | DEFR6_TCNE1)/* ------------------------------------------------------------------------ * R8A7790-only Control Registers
Signature · 8 lines
Regards, Laurent Pinchart _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel