mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-04-01 12:01:31 +00:00
mx35: generic: Let get_reset_cause be defined only when CONFIG_DISPLAY_CPUINFO is selected
get_reset_cause() function is only used inside print_cpuinfo(), so let it be defined only when CONFIG_DISPLAY_CPUINFO is selected. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
This commit is contained in:
parent
ed9d21696d
commit
ec0919f54b
1 changed files with 1 additions and 1 deletions
|
@ -422,6 +422,7 @@ U_BOOT_CMD(
|
||||||
""
|
""
|
||||||
);
|
);
|
||||||
|
|
||||||
|
#if defined(CONFIG_DISPLAY_CPUINFO)
|
||||||
static char *get_reset_cause(void)
|
static char *get_reset_cause(void)
|
||||||
{
|
{
|
||||||
/* read RCSR register from CCM module */
|
/* read RCSR register from CCM module */
|
||||||
|
@ -444,7 +445,6 @@ static char *get_reset_cause(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_DISPLAY_CPUINFO)
|
|
||||||
int print_cpuinfo(void)
|
int print_cpuinfo(void)
|
||||||
{
|
{
|
||||||
u32 srev = get_cpu_rev();
|
u32 srev = get_cpu_rev();
|
||||||
|
|
Loading…
Add table
Reference in a new issue