summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgbert Eich <eich@linux-21vw.site>2009-07-01 14:06:27 +0200
committerEgbert Eich <eich@freedesktop.org>2009-10-07 16:06:33 +0200
commit3cef2a6553359b063b760a2f436ce84365c60682 (patch)
tree950d432582a5d405f139e8f7334a95087fae2a0d
parent392a13923eb4d44a8bdb204922230e126b188fae (diff)
Improve test for disabled differential clock driver.
-rw-r--r--src/rhd_pll.c8
-rw-r--r--src/rhd_regs.h2
2 files changed, 7 insertions, 3 deletions
diff --git a/src/rhd_pll.c b/src/rhd_pll.c
index 5b8d2bb..6200dda 100644
--- a/src/rhd_pll.c
+++ b/src/rhd_pll.c
@@ -733,8 +733,10 @@ RV620PLL1Power(struct rhdPLL *PLL, int Power)
733 usleep(2); 733 usleep(2);
734 734
735 /* Sometimes we have to keep unused PLL running, see bug #18016 */ 735 /* Sometimes we have to keep unused PLL running, see bug #18016 */
736 if ((RHDRegRead(PLL, RV620_EXT1_DIFF_POST_DIV_CNTL) & 0x0100) == 0) 736 if ((RHDRegRead(PLL, RV620_EXT1_DIFF_POST_DIV_CNTL) & RV62_EXT1_DIFF_DRIVER_ENABLE) == 0)
737 RHDRegMask(PLL, P1PLL_CNTL, 0x02, 0x02); /* Power down */ 737 RHDRegMask(PLL, P1PLL_CNTL, 0x02, 0x02); /* Power down */
738 else
739 xf86DrvMsg(PLL->scrnIndex, X_WARNING, "PHYA differential clock driver not disabled\n");
738 usleep(200); 740 usleep(200);
739 741
740 RHDRegMask(PLL, P1PLL_CNTL, 0x2000, 0x2000); /* reset anti-glitch */ 742 RHDRegMask(PLL, P1PLL_CNTL, 0x2000, 0x2000); /* reset anti-glitch */
@@ -786,8 +788,10 @@ RV620PLL2Power(struct rhdPLL *PLL, int Power)
786 usleep(2); 788 usleep(2);
787 789
788 /* Sometimes we have to keep unused PLL running, see bug #18016 */ 790 /* Sometimes we have to keep unused PLL running, see bug #18016 */
789 if ((RHDRegRead(PLL, RV620_EXT2_DIFF_POST_DIV_CNTL) & 0x0100) == 0) 791 if ((RHDRegRead(PLL, RV620_EXT2_DIFF_POST_DIV_CNTL) & RV62_EXT2_DIFF_DRIVER_ENABLE) == 0)
790 RHDRegMask(PLL, P2PLL_CNTL, 0x02, 0x02); /* Power down */ 792 RHDRegMask(PLL, P2PLL_CNTL, 0x02, 0x02); /* Power down */
793 else
794 xf86DrvMsg(PLL->scrnIndex, X_WARNING, "PHYB differential clock driver not disabled\n");
791 usleep(200); 795 usleep(200);
792 796
793 RHDRegMask(PLL, P2PLL_CNTL, 0x2000, 0x2000); /* reset anti-glitch */ 797 RHDRegMask(PLL, P2PLL_CNTL, 0x2000, 0x2000); /* reset anti-glitch */
diff --git a/src/rhd_regs.h b/src/rhd_regs.h
index 0a1e0c8..3ca5e98 100644
--- a/src/rhd_regs.h
+++ b/src/rhd_regs.h
@@ -516,7 +516,7 @@ enum RV620_EXT1_DIFF_POST_DIV_CNTL_BITS {
516enum RV620_EXT2_DIFF_POST_DIV_CNTL_BITS { 516enum RV620_EXT2_DIFF_POST_DIV_CNTL_BITS {
517 RV62_EXT2_DIFF_POST_DIV_RESET = 1 << 0, 517 RV62_EXT2_DIFF_POST_DIV_RESET = 1 << 0,
518 RV62_EXT2_DIFF_POST_DIV_SELECT = 1 << 4, 518 RV62_EXT2_DIFF_POST_DIV_SELECT = 1 << 4,
519 RV62_EXT2_DIFF_DRIVER_ENABLE = 1 << 8 519 RV62_EXT2_DIFF_DRIVER_ENABLE = 3 << 8
520}; 520};
521 521
522enum RV620_LVTMA_PWRSEQ_CNTL_BITS { 522enum RV620_LVTMA_PWRSEQ_CNTL_BITS {