mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 08:59:33 +00:00
common/board_f.c: align m68k arch to use CONFIG_DISPLAY_CPUINFO
Change all coldfire arch files to use CONFIG_DISPLAY_CPUINFO. Signed-off-by: Angelo Dureghello <angelo@sysam.it> Reviewed-by: Tom Rini <trini@konsulko.com> --- Changes for v2: - update common/Kconfig to add M68K to the default y list
This commit is contained in:
parent
c761a7e29d
commit
b9153fe308
9 changed files with 41 additions and 17 deletions
|
@ -28,7 +28,8 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
return 0;
|
||||
};
|
||||
|
||||
int checkcpu(void)
|
||||
#if defined(CONFIG_DISPLAY_CPUINFO)
|
||||
int print_cpuinfo(void)
|
||||
{
|
||||
ccm_t *ccm = (ccm_t *) MMAP_CCM;
|
||||
u16 msk;
|
||||
|
@ -60,3 +61,4 @@ int checkcpu(void)
|
|||
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_DISPLAY_CPUINFO */
|
||||
|
|
|
@ -28,7 +28,8 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
return 0;
|
||||
}
|
||||
|
||||
int checkcpu(void)
|
||||
#if defined(CONFIG_DISPLAY_CPUINFO)
|
||||
int print_cpuinfo(void)
|
||||
{
|
||||
ccm_t *ccm = (ccm_t *) MMAP_CCM;
|
||||
u16 msk;
|
||||
|
@ -56,6 +57,7 @@ int checkcpu(void)
|
|||
|
||||
return 0;
|
||||
};
|
||||
#endif /* CONFIG_DISPLAY_CPUINFO */
|
||||
|
||||
#if defined(CONFIG_WATCHDOG)
|
||||
/* Called by macro WATCHDOG_RESET */
|
||||
|
|
|
@ -37,7 +37,8 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
return 0;
|
||||
};
|
||||
|
||||
int checkcpu(void)
|
||||
#if defined(CONFIG_DISPLAY_CPUINFO)
|
||||
int print_cpuinfo(void)
|
||||
{
|
||||
char buf1[32], buf2[32];
|
||||
|
||||
|
@ -47,6 +48,7 @@ int checkcpu(void)
|
|||
strmhz(buf2, gd->bus_clk));
|
||||
return 0;
|
||||
};
|
||||
#endif /* CONFIG_DISPLAY_CPUINFO */
|
||||
|
||||
#if defined(CONFIG_WATCHDOG)
|
||||
/* Called by macro WATCHDOG_RESET */
|
||||
|
@ -94,12 +96,13 @@ int watchdog_init(void)
|
|||
#endif /* #ifdef CONFIG_M5208 */
|
||||
|
||||
#ifdef CONFIG_M5271
|
||||
#if defined(CONFIG_DISPLAY_CPUINFO)
|
||||
/*
|
||||
* Both MCF5270 and MCF5271 are members of the MPC5271 family. Try to
|
||||
* determine which one we are running on, based on the Chip Identification
|
||||
* Register (CIR).
|
||||
*/
|
||||
int checkcpu(void)
|
||||
int print_cpuinfo(void)
|
||||
{
|
||||
char buf[32];
|
||||
unsigned short cir; /* Chip Identification Register */
|
||||
|
@ -133,6 +136,7 @@ int checkcpu(void)
|
|||
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_DISPLAY_CPUINFO */
|
||||
|
||||
int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
{
|
||||
|
@ -184,7 +188,8 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
return 0;
|
||||
};
|
||||
|
||||
int checkcpu(void)
|
||||
#if defined(CONFIG_DISPLAY_CPUINFO)
|
||||
int print_cpuinfo(void)
|
||||
{
|
||||
sysctrl_t *sysctrl = (sysctrl_t *) (MMAP_CFG);
|
||||
uchar msk;
|
||||
|
@ -209,6 +214,7 @@ int checkcpu(void)
|
|||
printf("Freescale MCF5272 %s\n", suf);
|
||||
return 0;
|
||||
};
|
||||
#endif /* CONFIG_DISPLAY_CPUINFO */
|
||||
|
||||
#if defined(CONFIG_WATCHDOG)
|
||||
/* Called by macro WATCHDOG_RESET */
|
||||
|
@ -268,7 +274,8 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
return 0;
|
||||
};
|
||||
|
||||
int checkcpu(void)
|
||||
#if defined(CONFIG_DISPLAY_CPUINFO)
|
||||
int print_cpuinfo(void)
|
||||
{
|
||||
char buf[32];
|
||||
|
||||
|
@ -276,7 +283,7 @@ int checkcpu(void)
|
|||
strmhz(buf, CONFIG_SYS_CLK));
|
||||
return 0;
|
||||
};
|
||||
|
||||
#endif /* CONFIG_DISPLAY_CPUINFO */
|
||||
|
||||
#if defined(CONFIG_WATCHDOG)
|
||||
/* Called by macro WATCHDOG_RESET */
|
||||
|
@ -326,7 +333,8 @@ int watchdog_init(void)
|
|||
#endif /* #ifdef CONFIG_M5275 */
|
||||
|
||||
#ifdef CONFIG_M5282
|
||||
int checkcpu(void)
|
||||
#if defined(CONFIG_DISPLAY_CPUINFO)
|
||||
int print_cpuinfo(void)
|
||||
{
|
||||
unsigned char resetsource = MCFRESET_RSR;
|
||||
|
||||
|
@ -342,6 +350,7 @@ int checkcpu(void)
|
|||
(resetsource & MCFRESET_RSR_LVD) ? " Low Voltage" : "");
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_DISPLAY_CPUINFO */
|
||||
|
||||
int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
{
|
||||
|
@ -351,7 +360,8 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
#endif
|
||||
|
||||
#ifdef CONFIG_M5249
|
||||
int checkcpu(void)
|
||||
#if defined(CONFIG_DISPLAY_CPUINFO)
|
||||
int print_cpuinfo(void)
|
||||
{
|
||||
char buf[32];
|
||||
|
||||
|
@ -359,6 +369,7 @@ int checkcpu(void)
|
|||
strmhz(buf, CONFIG_SYS_CLK));
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_DISPLAY_CPUINFO */
|
||||
|
||||
int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
{
|
||||
|
@ -372,7 +383,8 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
#endif
|
||||
|
||||
#ifdef CONFIG_M5253
|
||||
int checkcpu(void)
|
||||
#if defined(CONFIG_DISPLAY_CPUINFO)
|
||||
int print_cpuinfo(void)
|
||||
{
|
||||
char buf[32];
|
||||
|
||||
|
@ -389,6 +401,7 @@ int checkcpu(void)
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_DISPLAY_CPUINFO */
|
||||
|
||||
int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
{
|
||||
|
|
|
@ -25,7 +25,8 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
return 0;
|
||||
}
|
||||
|
||||
int checkcpu(void)
|
||||
#if defined(CONFIG_DISPLAY_CPUINFO)
|
||||
int print_cpuinfo(void)
|
||||
{
|
||||
char buf[32];
|
||||
|
||||
|
@ -33,4 +34,5 @@ int checkcpu(void)
|
|||
strmhz(buf, CONFIG_SYS_CPU_CLK));
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_DISPLAY_CPUINFO */
|
||||
#endif
|
||||
|
|
|
@ -30,7 +30,8 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
return 0;
|
||||
};
|
||||
|
||||
int checkcpu(void)
|
||||
#if defined(CONFIG_DISPLAY_CPUINFO)
|
||||
int print_cpuinfo(void)
|
||||
{
|
||||
ccm_t *ccm = (ccm_t *) MMAP_CCM;
|
||||
u16 msk;
|
||||
|
@ -95,6 +96,7 @@ int checkcpu(void)
|
|||
|
||||
return 0;
|
||||
};
|
||||
#endif /* CONFIG_DISPLAY_CPUINFO */
|
||||
|
||||
#if defined(CONFIG_WATCHDOG)
|
||||
/* Called by macro WATCHDOG_RESET */
|
||||
|
|
|
@ -31,7 +31,8 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
return 0;
|
||||
};
|
||||
|
||||
int checkcpu(void)
|
||||
#if defined(CONFIG_DISPLAY_CPUINFO)
|
||||
int print_cpuinfo(void)
|
||||
{
|
||||
ccm_t *ccm = (ccm_t *) MMAP_CCM;
|
||||
u16 msk;
|
||||
|
@ -100,6 +101,7 @@ int checkcpu(void)
|
|||
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_DISPLAY_CPUINFO */
|
||||
|
||||
#if defined(CONFIG_MCFFEC)
|
||||
/* Default initializations for MCFFEC controllers. To override,
|
||||
|
|
|
@ -34,7 +34,8 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
return 1;
|
||||
};
|
||||
|
||||
int checkcpu(void)
|
||||
#if defined(CONFIG_DISPLAY_CPUINFO)
|
||||
int print_cpuinfo(void)
|
||||
{
|
||||
siu_t *siu = (siu_t *) MMAP_SIU;
|
||||
u16 id = 0;
|
||||
|
@ -91,6 +92,7 @@ int checkcpu(void)
|
|||
|
||||
return 0;
|
||||
};
|
||||
#endif /* CONFIG_DISPLAY_CPUINFO */
|
||||
|
||||
#if defined(CONFIG_HW_WATCHDOG)
|
||||
/* Called by macro WATCHDOG_RESET */
|
||||
|
|
|
@ -533,7 +533,7 @@ config BOARD_LATE_INIT
|
|||
|
||||
config DISPLAY_CPUINFO
|
||||
bool "Display information about the CPU during start up"
|
||||
default y if ARM || NIOS2 || X86 || XTENSA
|
||||
default y if ARM || NIOS2 || X86 || XTENSA || M68K
|
||||
help
|
||||
Display information about the CPU that U-Boot is running on
|
||||
when U-Boot starts up. The function print_cpuinfo() is called
|
||||
|
|
|
@ -780,8 +780,7 @@ static const init_fnc_t init_sequence_f[] = {
|
|||
console_init_f, /* stage 1 init of console */
|
||||
display_options, /* say that we are here */
|
||||
display_text_info, /* show debugging info if required */
|
||||
#if defined(CONFIG_PPC) || defined(CONFIG_M68K) || defined(CONFIG_SH) || \
|
||||
defined(CONFIG_X86)
|
||||
#if defined(CONFIG_PPC) || defined(CONFIG_SH) || defined(CONFIG_X86)
|
||||
checkcpu,
|
||||
#endif
|
||||
#if defined(CONFIG_DISPLAY_CPUINFO)
|
||||
|
|
Loading…
Reference in a new issue