diff options
author | Alan Cox <alan@linux.intel.com> | 2012-04-25 09:36:48 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-04-27 04:23:19 -0400 |
commit | acd7ef927e06510fbfeec8d307f4726a156b2733 (patch) | |
tree | 520e30b3622a0548324bd546080b2b695cb876ca /drivers/gpu/drm/gma500/psb_intel_reg.h | |
parent | 642c52fcc98aa441bda8c7d8252e8b9b563b370b (diff) |
gma500: Update the Cedarview clock handling
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/gma500/psb_intel_reg.h')
-rw-r--r-- | drivers/gpu/drm/gma500/psb_intel_reg.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/gpu/drm/gma500/psb_intel_reg.h b/drivers/gpu/drm/gma500/psb_intel_reg.h index e89d3a2e8fdc..46792fc7d0d0 100644 --- a/drivers/gpu/drm/gma500/psb_intel_reg.h +++ b/drivers/gpu/drm/gma500/psb_intel_reg.h | |||
@@ -505,6 +505,7 @@ | |||
505 | #define PIPE_VSYNC_ENABL (1UL << 25) | 505 | #define PIPE_VSYNC_ENABL (1UL << 25) |
506 | #define PIPE_HDMI_AUDIO_UNDERRUN (1UL << 26) | 506 | #define PIPE_HDMI_AUDIO_UNDERRUN (1UL << 26) |
507 | #define PIPE_HDMI_AUDIO_BUFFER_DONE (1UL << 27) | 507 | #define PIPE_HDMI_AUDIO_BUFFER_DONE (1UL << 27) |
508 | #define PIPE_FIFO_UNDERRUN (1UL << 31) | ||
508 | #define PIPE_HDMI_AUDIO_INT_MASK (PIPE_HDMI_AUDIO_UNDERRUN | \ | 509 | #define PIPE_HDMI_AUDIO_INT_MASK (PIPE_HDMI_AUDIO_UNDERRUN | \ |
509 | PIPE_HDMI_AUDIO_BUFFER_DONE) | 510 | PIPE_HDMI_AUDIO_BUFFER_DONE) |
510 | #define PIPE_EVENT_MASK ((1 << 29)|(1 << 28)|(1 << 27)|(1 << 26)|(1 << 24)|(1 << 23)|(1 << 22)|(1 << 21)|(1 << 20)|(1 << 16)) | 511 | #define PIPE_EVENT_MASK ((1 << 29)|(1 << 28)|(1 << 27)|(1 << 26)|(1 << 24)|(1 << 23)|(1 << 22)|(1 << 21)|(1 << 20)|(1 << 16)) |
@@ -569,12 +570,27 @@ struct dpst_guardband { | |||
569 | #define PIPE_PIXEL_MASK 0x00ffffff | 570 | #define PIPE_PIXEL_MASK 0x00ffffff |
570 | #define PIPE_PIXEL_SHIFT 0 | 571 | #define PIPE_PIXEL_SHIFT 0 |
571 | 572 | ||
573 | #define FW_BLC_SELF 0x20e0 | ||
574 | #define FW_BLC_SELF_EN (1<<15) | ||
575 | |||
572 | #define DSPARB 0x70030 | 576 | #define DSPARB 0x70030 |
573 | #define DSPFW1 0x70034 | 577 | #define DSPFW1 0x70034 |
578 | #define DSP_FIFO_SR_WM_MASK 0xFF800000 | ||
579 | #define DSP_FIFO_SR_WM_SHIFT 23 | ||
580 | #define CURSOR_B_FIFO_WM_MASK 0x003F0000 | ||
581 | #define CURSOR_B_FIFO_WM_SHIFT 16 | ||
574 | #define DSPFW2 0x70038 | 582 | #define DSPFW2 0x70038 |
583 | #define CURSOR_A_FIFO_WM_MASK 0x3F00 | ||
584 | #define CURSOR_A_FIFO_WM_SHIFT 8 | ||
585 | #define DSP_PLANE_C_FIFO_WM_MASK 0x7F | ||
586 | #define DSP_PLANE_C_FIFO_WM_SHIFT 0 | ||
575 | #define DSPFW3 0x7003c | 587 | #define DSPFW3 0x7003c |
576 | #define DSPFW4 0x70050 | 588 | #define DSPFW4 0x70050 |
577 | #define DSPFW5 0x70054 | 589 | #define DSPFW5 0x70054 |
590 | #define DSP_PLANE_B_FIFO_WM1_SHIFT 24 | ||
591 | #define DSP_PLANE_A_FIFO_WM1_SHIFT 16 | ||
592 | #define CURSOR_B_FIFO_WM1_SHIFT 8 | ||
593 | #define CURSOR_FIFO_SR_WM1_SHIFT 0 | ||
578 | #define DSPFW6 0x70058 | 594 | #define DSPFW6 0x70058 |
579 | #define DSPCHICKENBIT 0x70400 | 595 | #define DSPCHICKENBIT 0x70400 |
580 | #define DSPACNTR 0x70180 | 596 | #define DSPACNTR 0x70180 |
@@ -1290,6 +1306,15 @@ No status bits are changed. | |||
1290 | #define SB_N_CB_TUNE_MASK PSB_MASK(25, 24) | 1306 | #define SB_N_CB_TUNE_MASK PSB_MASK(25, 24) |
1291 | #define SB_N_CB_TUNE_SHIFT 24 | 1307 | #define SB_N_CB_TUNE_SHIFT 24 |
1292 | 1308 | ||
1309 | /* the bit 14:13 is used to select between the different reference clock for Pipe A/B */ | ||
1310 | #define SB_REF_DPLLA 0x8010 | ||
1311 | #define SB_REF_DPLLB 0x8030 | ||
1312 | #define REF_CLK_MASK (0x3 << 13) | ||
1313 | #define REF_CLK_CORE (0 << 13) | ||
1314 | #define REF_CLK_DPLL (1 << 13) | ||
1315 | #define REF_CLK_DPLLA (2 << 13) | ||
1316 | /* For the DPLL B, it will use the reference clk from DPLL A when using (2 << 13) */ | ||
1317 | |||
1293 | #define _SB_REF_A 0x8018 | 1318 | #define _SB_REF_A 0x8018 |
1294 | #define _SB_REF_B 0x8038 | 1319 | #define _SB_REF_B 0x8038 |
1295 | #define SB_REF_SFR(pipe) _PIPE(pipe, _SB_REF_A, _SB_REF_B) | 1320 | #define SB_REF_SFR(pipe) _PIPE(pipe, _SB_REF_A, _SB_REF_B) |