diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-12-12 15:50:53 -0200 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-12-12 15:50:53 -0200 |
commit | 191cbd3f8419cc5b428f262607d7a8594e574f67 (patch) | |
tree | 76f8c2a775c8468a9e4f52dddae00d7aac6c6236 /src/smi_501.h | |
parent | a2352ff23787f37530dff68e03028dd78925e4b4 (diff) |
Unless there is a xorg.conf option, don't modify mclck neither mxclck.
The option set_mclck was renamed to just MCLK, and a new MXCLCK option
was added for smi501/502 chips.
Note that previously, on MSOC chips, the set_mclck option actually
changed mxclck, what is now done by the MXCLK option.
The manpage was also update to reflect the options usage.
A new SMI501_FindMemClock() function was added, as a possible
placeholder for choosing alternate clocks when programming MMIO 0x68.
But it should be noted that the smi 501 databook says:
Miscellaneous Timing
Read/Write MMIO_base + 0x000068
Power-on Default 0x00000000
[...]
5:4 Divider Output Frequency Selection for Second PLL.
00: 336 MHz.
01: 288 MHz.
10: 240 MHz.
11: 192 MHz.
while the 502 databook says:
Miscellaneous Timing
Read/Write MMIO_base + 0x000068
Power-on Default 0b0000.00xx.0000.1001.0000.1001.0000.0000
[...]
5:4 Reserved These bits are reserved.
but still tells to refer to those bits.
Diffstat (limited to 'src/smi_501.h')
-rw-r--r-- | src/smi_501.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/smi_501.h b/src/smi_501.h index c79b75c..378a99a 100644 --- a/src/smi_501.h +++ b/src/smi_501.h @@ -1011,6 +1011,8 @@ void SMI501_PrintRegs(ScrnInfoPtr pScrn); double SMI501_FindClock(double clock, int max_divider, Bool has1xclck, int32_t *x2_1xclck, int32_t *x2_select, int32_t *x2_divider, int32_t *x2_shift); +double SMI501_FindMemClock(double clock, int32_t *x1_select, + int32_t *x1_divider, int32_t *x1_shift); double SMI501_FindPLLClock(double clock, int32_t *m, int32_t *n, int32_t *xclck); void SMI501_WaitVSync(SMIPtr pSmi, int vsync_count); |