![](https://csdnimg.cn/release/download_crawler_static/3262385/bg7.jpg)
AP, System LSI. Confidential Property of Samsung Electronics Co., Ltd. 7
2 OAL option configuration
2.1 Clock Setting
- You can change CPU clock by some modification.
- There are some pre-defined setting in smdk2450\src\inc\s3c2450.inc
In smdk2450\src\inc\s3c2450.inc file
[ CLKVAL = 300 ; 300MHz
]
[ CLKVAL = 400 ; 400MHz CPU Clock, 100MHz AHB Clock
]
[ CLKVAL = 400133 ; 400MHz CPU Clock, 133MHz AHB Clock
]
[ CLKVAL = 533 ; 533MHz
]
- CPU clock setting is also in same file.
- Default setting is 533MHz/133MHz/66MHz
- If you wanna change clock, change followings.
In smdk2450\src\inc\s3c2450.inc file
CLKVAL SETA 533
-> CLKVAL SETA 400 ; change to 400 MHz clock.
- And modify below statements to correct clock value.
In smdk2450\src\inc\ bsp_cfg.h file
#define S3C2450_FCLK 534000000 // 534.00MHz
#define S3C2450_HCLK (S3C2450_FCLK/4) // divisor 4
#define S3C2450_PCLK (S3C2450_FCLK/8) // divisor 2
-> //Change to 400MHz, 133MHz, 66MHz
#define S3C2450_FCLK 400000000 // 400.00MHz
#define S3C2450_HCLK (S3C2450_FCLK/3) // divisor 4
#define S3C2450_PCLK (S3C2450_FCLK/6) // divisor 2
- These changes need rebuild all sources. And make image.