prevent radeon_hd enumeral mismatch on powerpc/gcc4
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42407 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
fca9893516
commit
5da2e46394
@ -190,9 +190,11 @@ PLLPower(uint8 pllIndex, int command)
|
||||
uint16 pllDiffPostReg
|
||||
= (pllIndex == 1) ? RV620_EXT2_DIFF_POST_DIV_CNTL
|
||||
: RV620_EXT1_DIFF_POST_DIV_CNTL;
|
||||
uint16 pllDiffDriverEnable
|
||||
= (pllIndex == 1) ? RV62_EXT2_DIFF_DRIVER_ENABLE
|
||||
: RV62_EXT1_DIFF_DRIVER_ENABLE;
|
||||
|
||||
uint16 pllDiffDriverEnable = (pllIndex == 1) ? 3 << 8 : 1 << 8;
|
||||
// AKA RV62_EXT2_DIFF_DRIVER_ENABLE : RV62_EXT1_DIFF_DRIVER_ENABLE
|
||||
// this prevents enumeral mismatch without a long static_cast
|
||||
|
||||
// Sometimes we have to keep an unused PLL running. X Bug #18016
|
||||
if ((Read32(PLL, pllDiffPostReg)
|
||||
& pllDiffDriverEnable) == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user