Lines Matching +full:0 +full:x24000000
28 #define CDV_LIMIT_SINGLE_LVDS_96 0
41 .m1 = {.min = 0, .max = 0},
53 .m1 = {.min = 0, .max = 0},
68 .m1 = {.min = 0, .max = 0},
80 .m1 = {.min = 0, .max = 0},
92 .m1 = {.min = 0, .max = 0},
104 .m1 = {.min = 0, .max = 0},
115 int ret__ = 0; \
134 ret = wait_for((REG_READ(SB_PCKT) & SB_BUSY) == 0, 1000); in cdv_sb_read()
144 SET_FIELD(0xf, SB_BYTE_ENABLE)); in cdv_sb_read()
146 ret = wait_for((REG_READ(SB_PCKT) & SB_BUSY) == 0, 1000); in cdv_sb_read()
154 return 0; in cdv_sb_read()
164 if (cdv_sb_read(dev, reg, &temp) == 0) in cdv_sb_write()
165 DRM_DEBUG_KMS("0x%08x: 0x%08x (before)\n", reg, temp); in cdv_sb_write()
166 DRM_DEBUG_KMS("0x%08x: 0x%08x\n", reg, val); in cdv_sb_write()
169 ret = wait_for((REG_READ(SB_PCKT) & SB_BUSY) == 0, 1000); in cdv_sb_write()
180 SET_FIELD(0xf, SB_BYTE_ENABLE)); in cdv_sb_write()
182 ret = wait_for((REG_READ(SB_PCKT) & SB_BUSY) == 0, 1000); in cdv_sb_write()
189 if (cdv_sb_read(dev, reg, &temp) == 0) in cdv_sb_write()
190 DRM_DEBUG_KMS("0x%08x: 0x%08x (after)\n", reg, temp); in cdv_sb_write()
193 return 0; in cdv_sb_write()
202 REG_WRITE(DPIO_CFG, 0); in cdv_sb_reset()
219 int ret = 0; in cdv_dpll_set_clock_cdv()
220 int dpll_reg = (pipe == 0) ? DPLL_A : DPLL_B; in cdv_dpll_set_clock_cdv()
221 int ref_sfr = (pipe == 0) ? SB_REF_DPLLA : SB_REF_DPLLB; in cdv_dpll_set_clock_cdv()
232 ref_value = 0x68A701; in cdv_dpll_set_clock_cdv()
240 * The BIT 14:13 of 0x8010/0x8030 is used to select the ref clk in cdv_dpll_set_clock_cdv()
282 n_vco &= 0xFFFF; in cdv_dpll_set_clock_cdv()
283 n_vco |= 0x107; in cdv_dpll_set_clock_cdv()
292 n_vco |= (0 << SB_N_VCO_SEL_SHIFT); in cdv_dpll_set_clock_cdv()
297 n_vco |= (0 << SB_N_CB_TUNE_SHIFT); in cdv_dpll_set_clock_cdv()
300 n_vco |= (0 << SB_N_CB_TUNE_SHIFT); in cdv_dpll_set_clock_cdv()
361 return 0; in cdv_dpll_set_clock_cdv()
392 /* m1 is reserved as 0 in CDV, n is a ring counter */
409 memset(&clock, 0, sizeof(clock)); in cdv_intel_find_dp_pll()
417 clock.m1 = 0; in cdv_intel_find_dp_pll()
423 clock.m1 = 0; in cdv_intel_find_dp_pll()
433 clock.m1 = 0; in cdv_intel_find_dp_pll()
439 clock.m1 = 0; in cdv_intel_find_dp_pll()
453 #define FIFO_PIPEA (1 << 0)
483 REG_WRITE(OV_OVADD, 0/*dev_priv->ovl_offset*/); in cdv_disable_sr()
497 if (cdv_intel_pipe_enabled(dev, 0) ^ cdv_intel_pipe_enabled(dev, 1)) { in cdv_update_wm()
502 fw |= (0x7e << DSP_FIFO_SR_WM_SHIFT); in cdv_update_wm()
504 fw |= (0x4 << CURSOR_B_FIFO_WM_SHIFT); in cdv_update_wm()
509 fw |= (0x6 << CURSOR_A_FIFO_WM_SHIFT); in cdv_update_wm()
511 fw |= (0x8 << DSP_PLANE_C_FIFO_WM_SHIFT); in cdv_update_wm()
514 REG_WRITE(DSPFW3, 0x36000000); in cdv_update_wm()
521 REG_WRITE(DSPFW5, 0x00040330); in cdv_update_wm()
530 REG_WRITE(DSPFW6, 0x10); in cdv_update_wm()
542 REG_WRITE(DSPFW1, 0x3f880808); in cdv_update_wm()
543 REG_WRITE(DSPFW2, 0x0b020202); in cdv_update_wm()
544 REG_WRITE(DSPFW3, 0x24000000); in cdv_update_wm()
545 REG_WRITE(DSPFW4, 0x08030202); in cdv_update_wm()
546 REG_WRITE(DSPFW5, 0x01010101); in cdv_update_wm()
547 REG_WRITE(DSPFW6, 0x1d0); in cdv_update_wm()
566 if ((pfit_control & PFIT_ENABLE) == 0) in cdv_intel_panel_fitter_pipe()
568 return (pfit_control >> 29) & 0x3; in cdv_intel_panel_fitter_pipe()
584 u32 dpll = 0, dspcntr, pipeconf; in cdv_intel_crtc_mode_set()
591 u32 ddi_select = 0; in cdv_intel_crtc_mode_set()
620 return 0; in cdv_intel_crtc_mode_set()
642 if (pipe == 0) in cdv_intel_crtc_mode_set()
662 return 0; in cdv_intel_crtc_mode_set()
670 REG_WRITE(PIPE_GMCH_DATA_M(pipe), 0); in cdv_intel_crtc_mode_set()
671 REG_WRITE(PIPE_GMCH_DATA_N(pipe), 0); in cdv_intel_crtc_mode_set()
672 REG_WRITE(PIPE_DP_LINK_M(pipe), 0); in cdv_intel_crtc_mode_set()
673 REG_WRITE(PIPE_DP_LINK_N(pipe), 0); in cdv_intel_crtc_mode_set()
714 if (pipe == 0) in cdv_intel_crtc_mode_set()
762 REG_WRITE(PFIT_CONTROL, 0); in cdv_intel_crtc_mode_set()
764 DRM_DEBUG_KMS("Mode for pipe %c:\n", pipe == 0 ? 'A' : 'B'); in cdv_intel_crtc_mode_set()
780 …REG_WRITE(map->dpll_md, (0 << DPLL_MD_UDI_DIVIDER_SHIFT) | ((sdvo_pixel_multiply - 1) << DPLL_MD_U… in cdv_intel_crtc_mode_set()
800 REG_WRITE(map->pos, 0); in cdv_intel_crtc_mode_set()
819 return 0; in cdv_intel_crtc_mode_set()
850 if ((dpll & DISPLAY_RATE_SELECT_FPA1) == 0) in cdv_intel_crtc_clock_get()
858 if ((dpll & DISPLAY_RATE_SELECT_FPA1) == 0) in cdv_intel_crtc_clock_get()
876 if (clock.p1 == 0) { in cdv_intel_crtc_clock_get()
946 mode->hdisplay = (htot & 0xffff) + 1; in cdv_intel_crtc_mode_get()
947 mode->htotal = ((htot & 0xffff0000) >> 16) + 1; in cdv_intel_crtc_mode_get()
948 mode->hsync_start = (hsync & 0xffff) + 1; in cdv_intel_crtc_mode_get()
949 mode->hsync_end = ((hsync & 0xffff0000) >> 16) + 1; in cdv_intel_crtc_mode_get()
950 mode->vdisplay = (vtot & 0xffff) + 1; in cdv_intel_crtc_mode_get()
951 mode->vtotal = ((vtot & 0xffff0000) >> 16) + 1; in cdv_intel_crtc_mode_get()
952 mode->vsync_start = (vsync & 0xffff) + 1; in cdv_intel_crtc_mode_get()
953 mode->vsync_end = ((vsync & 0xffff0000) >> 16) + 1; in cdv_intel_crtc_mode_get()
956 drm_mode_set_crtcinfo(mode, 0); in cdv_intel_crtc_mode_get()