mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 20:56:12 +02:00
powerpc: mpc8xx: Migrate to CONFIG_SYS_CLK_FREQ
8xx has CONFIG_8xx_GCLK_FREQ which is similar to CONFIG_SYS_CLK_FREQ, and doesn't set CONFIG_SYS_CLK_FREQ. Due to that, get_board_sys_clk() returns 0. Remove CONFIG_8xx_GCLK_FREQ and use CONFIG_SYS_CLK_FREQ instead. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
This commit is contained in:
parent
a25dcda452
commit
9750a245cd
@ -30,9 +30,6 @@ config MPC885
|
||||
|
||||
endchoice
|
||||
|
||||
config 8xx_GCLK_FREQ
|
||||
int "CPU GCLK Frequency"
|
||||
|
||||
comment "Specific commands"
|
||||
|
||||
config CMD_IMMAP
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
/*
|
||||
* get_clocks() fills in gd->cpu_clock depending on CONFIG_8xx_GCLK_FREQ
|
||||
* get_clocks() fills in gd->cpu_clk depending on CONFIG_SYS_CLK_FREQ
|
||||
*/
|
||||
int get_clocks(void)
|
||||
{
|
||||
@ -28,7 +28,7 @@ int get_clocks(void)
|
||||
* (For example, the cogent CMA286-60 CPU module has no
|
||||
* separate oscillator for PITRTCLK)
|
||||
*/
|
||||
gd->cpu_clk = CONFIG_8xx_GCLK_FREQ;
|
||||
gd->cpu_clk = CONFIG_SYS_CLK_FREQ;
|
||||
|
||||
if ((sccr & SCCR_EBDF11) == 0) {
|
||||
/* No Bus Divider active */
|
||||
|
||||
@ -4,11 +4,11 @@ CONFIG_ENV_SECT_SIZE=0x2000
|
||||
CONFIG_DM_GPIO=y
|
||||
CONFIG_DEFAULT_DEVICE_TREE="cmpc885"
|
||||
CONFIG_SYS_PROMPT="S3K> "
|
||||
CONFIG_SYS_CLK_FREQ=132000000
|
||||
CONFIG_ENV_ADDR=0x40004000
|
||||
CONFIG_MPC8xx=y
|
||||
CONFIG_TARGET_CMPC885=y
|
||||
CONFIG_MPC885=y
|
||||
CONFIG_8xx_GCLK_FREQ=132000000
|
||||
CONFIG_CMD_IMMAP=y
|
||||
CONFIG_SYS_SIUMCR=0x00620000
|
||||
CONFIG_SYS_SYPCR=0xFFFFFF8F
|
||||
|
||||
@ -4,11 +4,11 @@ CONFIG_ENV_SIZE=0x2000
|
||||
CONFIG_ENV_SECT_SIZE=0x2000
|
||||
CONFIG_DEFAULT_DEVICE_TREE="mcr3000"
|
||||
CONFIG_SYS_PROMPT="S3K> "
|
||||
CONFIG_SYS_CLK_FREQ=132000000
|
||||
CONFIG_SYS_LOAD_ADDR=0x200000
|
||||
CONFIG_ENV_ADDR=0x4004000
|
||||
CONFIG_MPC8xx=y
|
||||
CONFIG_TARGET_MCR3000=y
|
||||
CONFIG_8xx_GCLK_FREQ=132000000
|
||||
CONFIG_CMD_IMMAP=y
|
||||
CONFIG_SYS_SIUMCR=0x00600400
|
||||
CONFIG_SYS_SYPCR=0xFFFFFF8F
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user