Root/clocks.txt

1cclk: cpu clock. Fastest clock in the system.
2hclk: high-speed peripheral bus clock.
3pclk: peripheral bus clock.
4mclk: memory clock, for emc.
5ldclk: lcd device clock.
6lpclk: lcd pixel clock.
7cim_mclk: clock output for cim.
8cim_pclk: clock input for cim.
9i2sclk: codec clock.
10mscclk: msc clock.
11ssiclk: ssi clock.
12exclk: 12MHz clock output, used by uart, i2c, ssi, tcu, usb2.0-phy.
13rtclk: 32768Hz clock input for rtc.
14
15cclk: 252M
16hclk: 84M
17pclk: 84M
18mclk: 84M
19ldclk: 84M; must not be larger than 150M
20lpclk: 25295340 (70Hz screen refresh)
21cim_mclk: not used.
22cim_pclk: not used.
23i2sclk: must be 12M
24mscclk: must not be larger than 400k during init; not larger than 25M later.
25ssiclk: not used.
26exclk: 12M, not adjustable.
27rtclk: 32768, not adjustable.
28
29usb clock, for host and device, must be 48M.
30
31restrictions:
32- cclk must be i*hclk
33- i must not be 24 or 32
34- hclk = mclk or hclk = 2*mclk
35- mclk = k*pclk
36
37so:
38- pclk is set
39- mclk = k*pclk
40- hclk = l*mclk = l*k*pclk; l = 1 or 2
41- cclk = i*hclk = i*l*k*pclk; i != 24 or 32
42
43In the code:
44m = 42
45n = 2
46no = 1
47So clkout = 12M * 21 = 252M; this is the pll clock frequency.
48

Archive Download this file

Branches:
master



interactive