forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/gpu/drm/rcar-du/rcar_du_regs.h
....@@ -1,13 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0 */
12 /*
23 * rcar_du_regs.h -- R-Car Display Unit Registers Definitions
34 *
45 * Copyright (C) 2013-2015 Renesas Electronics Corporation
56 *
67 * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2
10
- * as published by the Free Software Foundation.
118 */
129
1310 #ifndef __RCAR_DU_REGS_H__
....@@ -199,6 +196,11 @@
199196 #define DEFR6_TCNE0 (1 << 4)
200197 #define DEFR6_MLOS1 (1 << 2)
201198 #define DEFR6_DEFAULT (DEFR6_CODE | DEFR6_TCNE1)
199
+
200
+#define DEFR7 0x000ec
201
+#define DEFR7_CODE (0x7779 << 16)
202
+#define DEFR7_CMME1 BIT(6)
203
+#define DEFR7_CMME0 BIT(4)
202204
203205 /* -----------------------------------------------------------------------------
204206 * R8A7790-only Control Registers
....@@ -492,8 +494,8 @@
492494 * External Synchronization Control Registers
493495 */
494496
495
-#define ESCR 0x10000
496
-#define ESCR2 0x31000
497
+#define ESCR02 0x10000
498
+#define ESCR13 0x01000
497499 #define ESCR_DCLKOINV (1 << 25)
498500 #define ESCR_DCLKSEL_DCLKIN (0 << 20)
499501 #define ESCR_DCLKSEL_CLKS (1 << 20)
....@@ -504,8 +506,8 @@
504506 #define ESCR_SYNCSEL_EXHSYNC (3 << 8)
505507 #define ESCR_FRQSEL_MASK (0x3f << 0)
506508
507
-#define OTAR 0x10004
508
-#define OTAR2 0x31004
509
+#define OTAR02 0x10004
510
+#define OTAR13 0x01004
509511
510512 /* -----------------------------------------------------------------------------
511513 * Dual Display Output Control Registers