Lines Matching refs:DACreg
175 hw->DACreg[POS1064_XPWRCTRL] &= ~0x02; /* Stop VIDEO PLL */ in g450_set_plls()
180 hw->DACreg[POS1064_XPWRCTRL] &= ~0x10; /* Powerdown CRTC2 */ in g450_set_plls()
194 hw->DACreg[POS1064_XPWRCTRL] |= 0x02; in g450_set_plls()
196 outDAC1064(minfo, M1064_XPWRCTRL, hw->DACreg[POS1064_XPWRCTRL]); in g450_set_plls()
200 hw->DACreg[POS1064_XPIXCLKCTRL] &= ~M1064_XPIXCLKCTRL_PLL_UP; in g450_set_plls()
202 hw->DACreg[POS1064_XPIXCLKCTRL] |= M1064_XPIXCLKCTRL_PLL_UP; in g450_set_plls()
204 outDAC1064(minfo, M1064_XPIXCLKCTRL, hw->DACreg[POS1064_XPIXCLKCTRL]); in g450_set_plls()
218 hw->DACreg[POS1064_XPANMODE] = 0x00; /* 0-50 */ in g450_set_plls()
220 hw->DACreg[POS1064_XPANMODE] = 0x08; /* 34-62 */ in g450_set_plls()
222 hw->DACreg[POS1064_XPANMODE] = 0x10; /* 42-78 */ in g450_set_plls()
224 hw->DACreg[POS1064_XPANMODE] = 0x18; /* 62-92 */ in g450_set_plls()
226 hw->DACreg[POS1064_XPANMODE] = 0x20; /* 74-108 */ in g450_set_plls()
228 hw->DACreg[POS1064_XPANMODE] = 0x28; /* 94-122 */ in g450_set_plls()
230 hw->DACreg[POS1064_XPANMODE] = 0x30; /* 108-132 */ in g450_set_plls()
232 hw->DACreg[POS1064_XPANMODE] = 0x38; /* 120-168 */ in g450_set_plls()
237 hw->DACreg[POS1064_XPANMODE] = 0x00; /* 0-54 */ in g450_set_plls()
239 hw->DACreg[POS1064_XPANMODE] = 0x08; /* 38-70 */ in g450_set_plls()
241 hw->DACreg[POS1064_XPANMODE] = 0x10; /* 56-96 */ in g450_set_plls()
243 hw->DACreg[POS1064_XPANMODE] = 0x18; /* 80-114 */ in g450_set_plls()
245 hw->DACreg[POS1064_XPANMODE] = 0x20; /* 102-144 */ in g450_set_plls()
247 hw->DACreg[POS1064_XPANMODE] = 0x28; /* 132-166 */ in g450_set_plls()
249 hw->DACreg[POS1064_XPANMODE] = 0x30; /* 154-182 */ in g450_set_plls()
251 hw->DACreg[POS1064_XPANMODE] = 0x38; /* 170-204 */ in g450_set_plls()
261 hw->DACreg[POS1064_XMISCCTRL] &= M1064_XMISCCTRL_DAC_WIDTHMASK; in DAC1064_global_init()
262 hw->DACreg[POS1064_XMISCCTRL] |= M1064_XMISCCTRL_LUT_EN; in DAC1064_global_init()
263 …hw->DACreg[POS1064_XPIXCLKCTRL] = M1064_XPIXCLKCTRL_PLL_UP | M1064_XPIXCLKCTRL_EN | M1064_XPIXCLKC… in DAC1064_global_init()
266 hw->DACreg[POS1064_XPWRCTRL] = 0x1F; /* powerup everything */ in DAC1064_global_init()
267 hw->DACreg[POS1064_XOUTPUTCONN] = 0x00; /* disable outputs */ in DAC1064_global_init()
268 hw->DACreg[POS1064_XMISCCTRL] |= M1064_XMISCCTRL_DAC_EN; in DAC1064_global_init()
272 hw->DACreg[POS1064_XOUTPUTCONN] |= 0x01; /* enable output; CRTC1/2 selection is in CRTC2 ctl */ in DAC1064_global_init()
275 hw->DACreg[POS1064_XMISCCTRL] &= ~M1064_XMISCCTRL_DAC_EN; in DAC1064_global_init()
280 hw->DACreg[POS1064_XOUTPUTCONN] |= 0x04; in DAC1064_global_init()
284 hw->DACreg[POS1064_XOUTPUTCONN] |= 0x08; in DAC1064_global_init()
286 hw->DACreg[POS1064_XOUTPUTCONN] |= 0x0C; in DAC1064_global_init()
290 hw->DACreg[POS1064_XPWRCTRL] &= ~0x01; /* Poweroff DAC2 */ in DAC1064_global_init()
295 hw->DACreg[POS1064_XOUTPUTCONN] |= 0x20; in DAC1064_global_init()
298 hw->DACreg[POS1064_XOUTPUTCONN] |= 0x40; in DAC1064_global_init()
307 hw->DACreg[POS1064_XPWRCTRL] &= ~0x04; /* Poweroff TMDS */ in DAC1064_global_init()
317 …hw->DACreg[POS1064_XPIXCLKCTRL] = M1064_XPIXCLKCTRL_PLL_UP | M1064_XPIXCLKCTRL_EN | M1064_XPIXCLKC… in DAC1064_global_init()
318 hw->DACreg[POS1064_XMISCCTRL] |= GX00_XMISCCTRL_MFC_MAFC | G400_XMISCCTRL_VDO_MAFC12; in DAC1064_global_init()
320 hw->DACreg[POS1064_XMISCCTRL] |= GX00_XMISCCTRL_MFC_MAFC | G400_XMISCCTRL_VDO_C2_MAFC12; in DAC1064_global_init()
322 hw->DACreg[POS1064_XMISCCTRL] |= GX00_XMISCCTRL_MFC_PANELLINK | G400_XMISCCTRL_VDO_MAFC12; in DAC1064_global_init()
324 hw->DACreg[POS1064_XMISCCTRL] |= GX00_XMISCCTRL_MFC_DIS; in DAC1064_global_init()
327 hw->DACreg[POS1064_XMISCCTRL] |= M1064_XMISCCTRL_DAC_EN; in DAC1064_global_init()
335 outDAC1064(minfo, M1064_XPIXCLKCTRL, hw->DACreg[POS1064_XPIXCLKCTRL]); in DAC1064_global_restore()
336 outDAC1064(minfo, M1064_XMISCCTRL, hw->DACreg[POS1064_XMISCCTRL]); in DAC1064_global_restore()
342 outDAC1064(minfo, M1064_XPWRCTRL, hw->DACreg[POS1064_XPWRCTRL]); in DAC1064_global_restore()
343 outDAC1064(minfo, M1064_XPANMODE, hw->DACreg[POS1064_XPANMODE]); in DAC1064_global_restore()
344 outDAC1064(minfo, M1064_XOUTPUTCONN, hw->DACreg[POS1064_XOUTPUTCONN]); in DAC1064_global_restore()
355 memcpy(hw->DACreg, MGA1064_DAC, sizeof(MGA1064_DAC_regs)); in DAC1064_init_1()
359 hw->DACreg[POS1064_XMULCTRL] = M1064_XMULCTRL_DEPTH_8BPP | M1064_XMULCTRL_GRAPHICS_PALETIZED; in DAC1064_init_1()
363 …hw->DACreg[POS1064_XMULCTRL] = M1064_XMULCTRL_DEPTH_15BPP_1BPP | M1064_XMULCTRL_GRAPHICS_PALETIZED; in DAC1064_init_1()
365 hw->DACreg[POS1064_XMULCTRL] = M1064_XMULCTRL_DEPTH_16BPP | M1064_XMULCTRL_GRAPHICS_PALETIZED; in DAC1064_init_1()
368 hw->DACreg[POS1064_XMULCTRL] = M1064_XMULCTRL_DEPTH_24BPP | M1064_XMULCTRL_GRAPHICS_PALETIZED; in DAC1064_init_1()
371 hw->DACreg[POS1064_XMULCTRL] = M1064_XMULCTRL_DEPTH_32BPP | M1064_XMULCTRL_GRAPHICS_PALETIZED; in DAC1064_init_1()
376 hw->DACreg[POS1064_XVREFCTRL] = minfo->features.DAC1064.xvrefctrl; in DAC1064_init_1()
377 hw->DACreg[POS1064_XGENCTRL] &= ~M1064_XGENCTRL_SYNC_ON_GREEN_MASK; in DAC1064_init_1()
378 …hw->DACreg[POS1064_XGENCTRL] |= (m->sync & FB_SYNC_ON_GREEN)?M1064_XGENCTRL_SYNC_ON_GREEN:M1064_XG… in DAC1064_init_1()
379 hw->DACreg[POS1064_XCURADDL] = 0; in DAC1064_init_1()
380 hw->DACreg[POS1064_XCURADDH] = 0; in DAC1064_init_1()
451 outDAC1064(minfo, MGA1064_DAC_regs[i], hw->DACreg[i]); in DAC1064_restore_1()
471 dprintk("R%02X=%02X ", MGA1064_DAC_regs[i], minfo->hw.DACreg[i]); in DAC1064_restore_2()