File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,8 @@ static int vc4_get_clock_select(struct drm_crtc *crtc)
183
183
184
184
static void vc4_crtc_mode_set_nofb (struct drm_crtc * crtc )
185
185
{
186
+ struct drm_device * dev = crtc -> dev ;
187
+ struct vc4_dev * vc4 = to_vc4_dev (dev );
186
188
struct vc4_crtc * vc4_crtc = to_vc4_crtc (crtc );
187
189
struct drm_crtc_state * state = crtc -> state ;
188
190
struct drm_display_mode * mode = & state -> adjusted_mode ;
@@ -251,6 +253,10 @@ static void vc4_crtc_mode_set_nofb(struct drm_crtc *crtc)
251
253
PV_CONTROL_FIFO_CLR |
252
254
PV_CONTROL_EN );
253
255
256
+ HVS_WRITE (SCALER_DISPBKGNDX (vc4_crtc -> channel ),
257
+ SCALER_DISPBKGND_AUTOHS |
258
+ (interlace ? SCALER_DISPBKGND_INTERLACE : 0 ));
259
+
254
260
if (debug_dump_regs ) {
255
261
DRM_INFO ("CRTC %d regs after:\n" , drm_crtc_index (crtc ));
256
262
vc4_crtc_dump_regs (vc4_crtc );
Original file line number Diff line number Diff line change 350
350
# define SCALER_DISPCTRLX_HEIGHT_SHIFT 0
351
351
352
352
#define SCALER_DISPBKGND0 0x00000044
353
+ # define SCALER_DISPBKGND_AUTOHS BIT(31)
354
+ # define SCALER_DISPBKGND_INTERLACE BIT(30)
355
+ # define SCALER_DISPBKGND_GAMMA BIT(29)
356
+ # define SCALER_DISPBKGND_TESTMODE_MASK VC4_MASK(28, 25)
357
+ # define SCALER_DISPBKGND_TESTMODE_SHIFT 25
358
+ /* Enables filling the scaler line with the RGB value in the low 24
359
+ * bits before compositing. Costs cycles, so should be skipped if
360
+ * opaque display planes will cover everything.
361
+ */
362
+ # define SCALER_DISPBKGND_FILL BIT(24)
363
+
353
364
#define SCALER_DISPSTAT0 0x00000048
354
365
#define SCALER_DISPBASE0 0x0000004c
355
366
# define SCALER_DISPSTATX_MODE_MASK VC4_MASK(31, 30)
362
373
# define SCALER_DISPSTATX_EMPTY BIT(28)
363
374
#define SCALER_DISPCTRL1 0x00000050
364
375
#define SCALER_DISPBKGND1 0x00000054
376
+ #define SCALER_DISPBKGNDX (x ) (SCALER_DISPBKGND0 + \
377
+ (x) * (SCALER_DISPBKGND1 - \
378
+ SCALER_DISPBKGND0))
365
379
#define SCALER_DISPSTAT1 0x00000058
366
380
#define SCALER_DISPSTATX (x ) (SCALER_DISPSTAT0 + \
367
381
(x) * (SCALER_DISPSTAT1 - \
You can’t perform that action at this time.
0 commit comments