Skip to content
Snippets Groups Projects
Commit ec0919f5 authored by Fabio Estevam's avatar Fabio Estevam Committed by Albert ARIBAUD
Browse files

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: default avatarFabio Estevam <fabio.estevam@freescale.com>
parent ed9d2169
No related branches found
No related tags found
No related merge requests found
......@@ -422,6 +422,7 @@ U_BOOT_CMD(
""
);
#if defined(CONFIG_DISPLAY_CPUINFO)
static char *get_reset_cause(void)
{
/* 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)
{
u32 srev = get_cpu_rev();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment