diff options
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_regs.h')
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_regs.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_regs.h b/drivers/gpu/drm/vc4/vc4_regs.h index f99eece4cc97..160942a9180e 100644 --- a/drivers/gpu/drm/vc4/vc4_regs.h +++ b/drivers/gpu/drm/vc4/vc4_regs.h | |||
@@ -366,7 +366,6 @@ | |||
366 | # define SCALER_DISPBKGND_FILL BIT(24) | 366 | # define SCALER_DISPBKGND_FILL BIT(24) |
367 | 367 | ||
368 | #define SCALER_DISPSTAT0 0x00000048 | 368 | #define SCALER_DISPSTAT0 0x00000048 |
369 | #define SCALER_DISPBASE0 0x0000004c | ||
370 | # define SCALER_DISPSTATX_MODE_MASK VC4_MASK(31, 30) | 369 | # define SCALER_DISPSTATX_MODE_MASK VC4_MASK(31, 30) |
371 | # define SCALER_DISPSTATX_MODE_SHIFT 30 | 370 | # define SCALER_DISPSTATX_MODE_SHIFT 30 |
372 | # define SCALER_DISPSTATX_MODE_DISABLED 0 | 371 | # define SCALER_DISPSTATX_MODE_DISABLED 0 |
@@ -375,6 +374,24 @@ | |||
375 | # define SCALER_DISPSTATX_MODE_EOF 3 | 374 | # define SCALER_DISPSTATX_MODE_EOF 3 |
376 | # define SCALER_DISPSTATX_FULL BIT(29) | 375 | # define SCALER_DISPSTATX_FULL BIT(29) |
377 | # define SCALER_DISPSTATX_EMPTY BIT(28) | 376 | # define SCALER_DISPSTATX_EMPTY BIT(28) |
377 | # define SCALER_DISPSTATX_FRAME_COUNT_MASK VC4_MASK(17, 12) | ||
378 | # define SCALER_DISPSTATX_FRAME_COUNT_SHIFT 12 | ||
379 | # define SCALER_DISPSTATX_LINE_MASK VC4_MASK(11, 0) | ||
380 | # define SCALER_DISPSTATX_LINE_SHIFT 0 | ||
381 | |||
382 | #define SCALER_DISPBASE0 0x0000004c | ||
383 | /* Last pixel in the COB (display FIFO memory) allocated to this HVS | ||
384 | * channel. Must be 4-pixel aligned (and thus 4 pixels less than the | ||
385 | * next COB base). | ||
386 | */ | ||
387 | # define SCALER_DISPBASEX_TOP_MASK VC4_MASK(31, 16) | ||
388 | # define SCALER_DISPBASEX_TOP_SHIFT 16 | ||
389 | /* First pixel in the COB (display FIFO memory) allocated to this HVS | ||
390 | * channel. Must be 4-pixel aligned. | ||
391 | */ | ||
392 | # define SCALER_DISPBASEX_BASE_MASK VC4_MASK(15, 0) | ||
393 | # define SCALER_DISPBASEX_BASE_SHIFT 0 | ||
394 | |||
378 | #define SCALER_DISPCTRL1 0x00000050 | 395 | #define SCALER_DISPCTRL1 0x00000050 |
379 | #define SCALER_DISPBKGND1 0x00000054 | 396 | #define SCALER_DISPBKGND1 0x00000054 |
380 | #define SCALER_DISPBKGNDX(x) (SCALER_DISPBKGND0 + \ | 397 | #define SCALER_DISPBKGNDX(x) (SCALER_DISPBKGND0 + \ |
@@ -385,6 +402,9 @@ | |||
385 | (x) * (SCALER_DISPSTAT1 - \ | 402 | (x) * (SCALER_DISPSTAT1 - \ |
386 | SCALER_DISPSTAT0)) | 403 | SCALER_DISPSTAT0)) |
387 | #define SCALER_DISPBASE1 0x0000005c | 404 | #define SCALER_DISPBASE1 0x0000005c |
405 | #define SCALER_DISPBASEX(x) (SCALER_DISPBASE0 + \ | ||
406 | (x) * (SCALER_DISPBASE1 - \ | ||
407 | SCALER_DISPBASE0)) | ||
388 | #define SCALER_DISPCTRL2 0x00000060 | 408 | #define SCALER_DISPCTRL2 0x00000060 |
389 | #define SCALER_DISPCTRLX(x) (SCALER_DISPCTRL0 + \ | 409 | #define SCALER_DISPCTRLX(x) (SCALER_DISPCTRL0 + \ |
390 | (x) * (SCALER_DISPCTRL1 - \ | 410 | (x) * (SCALER_DISPCTRL1 - \ |