Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38071
b: refs/heads/master
c: 8bc2184
h: refs/heads/master
i:
  38069: b276f9b
  38067: c8baa69
  38063: 5999a51
v: v3
  • Loading branch information
Raphael Assenat authored and Linus Torvalds committed Oct 3, 2006
1 parent 2194c48 commit b35bad5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9c5b39e0bcb407a95716de4650a2d1e6064baffa
refs/heads/master: 8bc218410d6c2b22a7581fac6f3dc2ac1f8fc99f
13 changes: 12 additions & 1 deletion trunk/drivers/video/mbx/mbxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,19 @@ static unsigned int mbxfb_get_pixclock(unsigned int pixclock_ps,
/* convert pixclock to KHz */
pixclock = PICOS2KHZ(pixclock_ps);

/* PLL output freq = (ref_clk * M) / (N * 2^P)
*
* M: 1 to 63
* N: 1 to 7
* P: 0 to 7
*/

/* RAPH: When N==1, the resulting pixel clock appears to
* get divided by 2. Preventing N=1 by starting the following
* loop at 2 prevents this. Is this a bug with my chip
* revision or something I dont understand? */
for (m = 1; m < 64; m++) {
for (n = 1; n < 8; n++) {
for (n = 2; n < 8; n++) {
for (p = 0; p < 8; p++) {
clk = (ref_clk * m) / (n * (1 << p));
err = (clk > pixclock) ? (clk - pixclock) :
Expand Down

0 comments on commit b35bad5

Please sign in to comment.