summaryrefslogtreecommitdiff
path: root/src/smi_driver.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-09-22 22:01:16 -0300
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-09-22 22:01:16 -0300
commite64b3d63be2a4148c4d10ac160e2bd2f3e8c7fd3 (patch)
tree720cb11d8dcaf7c71978499933167354f8d54e4e /src/smi_driver.c
parent1f0af5ea50e3e3b2c9ed882f7ef2fb8871e780bd (diff)
Correct problems in clock setting.
One clock must be changed at a time, first setting the pll value, then waiting for 16ms (one vsync), then setting the divider/shift values, and again waiting 16ms. Code was working after split of SMI501_ModeInit(), because some clocks were already using system boot default, but would most likely cause a crash when actually changing values (currently only p2_xxx or v2_xxx is changed, but it would cause problems on some system where the initial values don't match the ones set by the driver). TODO: Either don't change m2clk and mclk or ensure other values work correctly (don't change because the kernel should already have set those if a value other then the boot default should be used).
Diffstat (limited to 'src/smi_driver.c')
0 files changed, 0 insertions, 0 deletions