BOOTLOADER
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
bootloader
drivers
clock.c
Go to the documentation of this file.
1
/******************************************************
2
* Function: s3c2440 clock driver
3
*
4
* File: clock.c
5
* Author: Book Chen
6
* Date: 2008.07.18
7
*******************************************************
8
*/
9
#include "
includes.h
"
10
11
typedef
struct
{
12
U32
ClockDiv
;
13
U32
Mclk
;
14
U32
Pclk
;
15
U32
Sclk
;
16
U32
Freq
;
17
}
CLOCK_PARAM
;
18
19
CLOCK_PARAM
ClockParam
;
20
21
void
F_ClockPowerOnInit
(
void
){
22
ClockParam.
ClockDiv
=5;
//M:H:P=1:1/4:1/8
23
ClockParam.
Mclk
=92;
24
ClockParam.
Pclk
=1;
25
ClockParam.
Sclk
=1;
26
rMPLLCON
=(ClockParam.
Mclk
<<12)|(ClockParam.
Pclk
<<4)|ClockParam.
Sclk
;
27
rCLKDIVN
=ClockParam.
ClockDiv
;
28
if
(
rCLKDIVN
>1)
MMU_SetAsyncBusMode
();
29
else
MMU_SetFastBusMode
();
30
}
31
32
33
34
35
36
37
38
39
40
Generated on Wed Jun 13 2012 00:03:08 for BOOTLOADER by
1.8.1.1