Lines Matching refs:DACreg

289 	hw->DACreg[POS1064_XPWRCTRL] &= ~0x02;	/* Stop VIDEO PLL */  in g450_set_plls()
294 hw->DACreg[POS1064_XPWRCTRL] &= ~0x10; /* Powerdown CRTC2 */ in g450_set_plls()
308 hw->DACreg[POS1064_XPWRCTRL] |= 0x02; in g450_set_plls()
310 outDAC1064(PMINFO M1064_XPWRCTRL, hw->DACreg[POS1064_XPWRCTRL]); in g450_set_plls()
314 hw->DACreg[POS1064_XPIXCLKCTRL] &= ~M1064_XPIXCLKCTRL_PLL_UP; in g450_set_plls()
316 hw->DACreg[POS1064_XPIXCLKCTRL] |= M1064_XPIXCLKCTRL_PLL_UP; in g450_set_plls()
318 outDAC1064(PMINFO M1064_XPIXCLKCTRL, hw->DACreg[POS1064_XPIXCLKCTRL]); in g450_set_plls()
332 hw->DACreg[POS1064_XPANMODE] = 0x00; /* 0-50 */ in g450_set_plls()
334 hw->DACreg[POS1064_XPANMODE] = 0x08; /* 34-62 */ in g450_set_plls()
336 hw->DACreg[POS1064_XPANMODE] = 0x10; /* 42-78 */ in g450_set_plls()
338 hw->DACreg[POS1064_XPANMODE] = 0x18; /* 62-92 */ in g450_set_plls()
340 hw->DACreg[POS1064_XPANMODE] = 0x20; /* 74-108 */ in g450_set_plls()
342 hw->DACreg[POS1064_XPANMODE] = 0x28; /* 94-122 */ in g450_set_plls()
344 hw->DACreg[POS1064_XPANMODE] = 0x30; /* 108-132 */ in g450_set_plls()
346 hw->DACreg[POS1064_XPANMODE] = 0x38; /* 120-168 */ in g450_set_plls()
351 hw->DACreg[POS1064_XPANMODE] = 0x00; /* 0-54 */ in g450_set_plls()
353 hw->DACreg[POS1064_XPANMODE] = 0x08; /* 38-70 */ in g450_set_plls()
355 hw->DACreg[POS1064_XPANMODE] = 0x10; /* 56-96 */ in g450_set_plls()
357 hw->DACreg[POS1064_XPANMODE] = 0x18; /* 80-114 */ in g450_set_plls()
359 hw->DACreg[POS1064_XPANMODE] = 0x20; /* 102-144 */ in g450_set_plls()
361 hw->DACreg[POS1064_XPANMODE] = 0x28; /* 132-166 */ in g450_set_plls()
363 hw->DACreg[POS1064_XPANMODE] = 0x30; /* 154-182 */ in g450_set_plls()
365 hw->DACreg[POS1064_XPANMODE] = 0x38; /* 170-204 */ in g450_set_plls()
374 hw->DACreg[POS1064_XMISCCTRL] &= M1064_XMISCCTRL_DAC_WIDTHMASK; in DAC1064_global_init()
375 hw->DACreg[POS1064_XMISCCTRL] |= M1064_XMISCCTRL_LUT_EN; in DAC1064_global_init()
376 …hw->DACreg[POS1064_XPIXCLKCTRL] = M1064_XPIXCLKCTRL_PLL_UP | M1064_XPIXCLKCTRL_EN | M1064_XPIXCLKC… in DAC1064_global_init()
379 hw->DACreg[POS1064_XPWRCTRL] = 0x1F; /* powerup everything */ in DAC1064_global_init()
380 hw->DACreg[POS1064_XOUTPUTCONN] = 0x00; /* disable outputs */ in DAC1064_global_init()
381 hw->DACreg[POS1064_XMISCCTRL] |= M1064_XMISCCTRL_DAC_EN; in DAC1064_global_init()
385 hw->DACreg[POS1064_XOUTPUTCONN] |= 0x01; /* enable output; CRTC1/2 selection is in CRTC2 ctl */ in DAC1064_global_init()
388 hw->DACreg[POS1064_XMISCCTRL] &= ~M1064_XMISCCTRL_DAC_EN; in DAC1064_global_init()
393 hw->DACreg[POS1064_XOUTPUTCONN] |= 0x04; in DAC1064_global_init()
397 hw->DACreg[POS1064_XOUTPUTCONN] |= 0x08; in DAC1064_global_init()
399 hw->DACreg[POS1064_XOUTPUTCONN] |= 0x0C; in DAC1064_global_init()
403 hw->DACreg[POS1064_XPWRCTRL] &= ~0x01; /* Poweroff DAC2 */ in DAC1064_global_init()
408 hw->DACreg[POS1064_XOUTPUTCONN] |= 0x20; in DAC1064_global_init()
411 hw->DACreg[POS1064_XOUTPUTCONN] |= 0x40; in DAC1064_global_init()
420 hw->DACreg[POS1064_XPWRCTRL] &= ~0x04; /* Poweroff TMDS */ in DAC1064_global_init()
430 …hw->DACreg[POS1064_XPIXCLKCTRL] = M1064_XPIXCLKCTRL_PLL_UP | M1064_XPIXCLKCTRL_EN | M1064_XPIXCLKC… in DAC1064_global_init()
431 hw->DACreg[POS1064_XMISCCTRL] |= GX00_XMISCCTRL_MFC_MAFC | G400_XMISCCTRL_VDO_MAFC12; in DAC1064_global_init()
433 hw->DACreg[POS1064_XMISCCTRL] |= GX00_XMISCCTRL_MFC_MAFC | G400_XMISCCTRL_VDO_C2_MAFC12; in DAC1064_global_init()
435 hw->DACreg[POS1064_XMISCCTRL] |= GX00_XMISCCTRL_MFC_PANELLINK | G400_XMISCCTRL_VDO_MAFC12; in DAC1064_global_init()
437 hw->DACreg[POS1064_XMISCCTRL] |= GX00_XMISCCTRL_MFC_DIS; in DAC1064_global_init()
440 hw->DACreg[POS1064_XMISCCTRL] |= M1064_XMISCCTRL_DAC_EN; in DAC1064_global_init()
447 outDAC1064(PMINFO M1064_XPIXCLKCTRL, hw->DACreg[POS1064_XPIXCLKCTRL]); in DAC1064_global_restore()
448 outDAC1064(PMINFO M1064_XMISCCTRL, hw->DACreg[POS1064_XMISCCTRL]); in DAC1064_global_restore()
454 outDAC1064(PMINFO M1064_XPWRCTRL, hw->DACreg[POS1064_XPWRCTRL]); in DAC1064_global_restore()
455 outDAC1064(PMINFO M1064_XPANMODE, hw->DACreg[POS1064_XPANMODE]); in DAC1064_global_restore()
456 outDAC1064(PMINFO M1064_XOUTPUTCONN, hw->DACreg[POS1064_XOUTPUTCONN]); in DAC1064_global_restore()
466 memcpy(hw->DACreg, MGA1064_DAC, sizeof(MGA1064_DAC_regs)); in DAC1064_init_1()
468 hw->DACreg[POS1064_XMISCCTRL] = M1064_XMISCCTRL_DAC_6BIT; in DAC1064_init_1()
469 hw->DACreg[POS1064_XMULCTRL] = M1064_XMULCTRL_DEPTH_8BPP in DAC1064_init_1()
475 hw->DACreg[POS1064_XMULCTRL] = M1064_XMULCTRL_DEPTH_8BPP | M1064_XMULCTRL_GRAPHICS_PALETIZED; in DAC1064_init_1()
479 …hw->DACreg[POS1064_XMULCTRL] = M1064_XMULCTRL_DEPTH_15BPP_1BPP | M1064_XMULCTRL_GRAPHICS_PALETIZED; in DAC1064_init_1()
481 hw->DACreg[POS1064_XMULCTRL] = M1064_XMULCTRL_DEPTH_16BPP | M1064_XMULCTRL_GRAPHICS_PALETIZED; in DAC1064_init_1()
484 hw->DACreg[POS1064_XMULCTRL] = M1064_XMULCTRL_DEPTH_24BPP | M1064_XMULCTRL_GRAPHICS_PALETIZED; in DAC1064_init_1()
487 hw->DACreg[POS1064_XMULCTRL] = M1064_XMULCTRL_DEPTH_32BPP | M1064_XMULCTRL_GRAPHICS_PALETIZED; in DAC1064_init_1()
493 hw->DACreg[POS1064_XVREFCTRL] = ACCESS_FBINFO(features.DAC1064.xvrefctrl); in DAC1064_init_1()
494 hw->DACreg[POS1064_XGENCTRL] &= ~M1064_XGENCTRL_SYNC_ON_GREEN_MASK; in DAC1064_init_1()
495 …hw->DACreg[POS1064_XGENCTRL] |= (m->sync & FB_SYNC_ON_GREEN)?M1064_XGENCTRL_SYNC_ON_GREEN:M1064_XG… in DAC1064_init_1()
496 hw->DACreg[POS1064_XCURADDL] = ACCESS_FBINFO(features.DAC1064.cursorimage) >> 10; in DAC1064_init_1()
497 hw->DACreg[POS1064_XCURADDH] = ACCESS_FBINFO(features.DAC1064.cursorimage) >> 18; in DAC1064_init_1()
566 outDAC1064(PMINFO MGA1064_DAC_regs[i], hw->DACreg[i]); in DAC1064_restore_1()
586 dprintk("R%02X=%02X ", MGA1064_DAC_regs[i], ACCESS_FBINFO(hw).DACreg[i]); in DAC1064_restore_2()