why we set CAMDIVN and CLKDIVN
Andy Green
andy at openmoko.com
Thu Jun 19 11:17:50 CEST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Somebody in the thread at some point said:
| i find :
| set CLKDIVN is to make FCLK:HCLK:PCLK = 1:3:6
|
| HDIVN [2:1] 00 : HCLK = FCLK/1.
| 01 : HCLK = FCLK/2.
| 10 : HCLK = FCLK/4 when CAMDIVN[9] = 0.
| HCLK= FCLK/8 when CAMDIVN[9] = 1.
| 11 : HCLK = FCLK/3 when CAMDIVN[8] = 0.
| HCLK = FCLK/6 when CAMDIVN[8] = 1.
| PDIVN [0] 0: PCLK has the clock same as the HCLK/1. 0
| 1: PCLK has the clock same as the HCLK/2.
|
| ----i still don't know why we set CAMDIVN
In CLKDIVN "HDIVN" field, you need to set CAMDIVN[9..8] to select HDIVN
rate meaning... we used HDIVN=11, so CAMDIVN[9..8] chooses if that means
HCLK = FCLK/3 or FCLK/6. If we didn't set CAMDIVN too, HCLK rate would
be unknown if it was FCLK / 3 or FCLK / 6.
| ----i still can't run the C function by add "stack_setup".
Can't help from this description.
- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkhaJD4ACgkQOjLpvpq7dMqf4wCeIghVWOjb1TGFeWjg3ImEAbtF
pvgAn3LZI+3tA30X6A0N5LZY8UkR92iA
=nQRi
-----END PGP SIGNATURE-----
More information about the openmoko-kernel
mailing list