|
@@ -37,7 +37,8 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|
return 0;
|
|
return 0;
|
|
};
|
|
};
|
|
|
|
|
|
-int checkcpu(void)
|
|
|
|
|
|
+#if defined(CONFIG_DISPLAY_CPUINFO)
|
|
|
|
+int print_cpuinfo(void)
|
|
{
|
|
{
|
|
char buf1[32], buf2[32];
|
|
char buf1[32], buf2[32];
|
|
|
|
|
|
@@ -47,6 +48,7 @@ int checkcpu(void)
|
|
strmhz(buf2, gd->bus_clk));
|
|
strmhz(buf2, gd->bus_clk));
|
|
return 0;
|
|
return 0;
|
|
};
|
|
};
|
|
|
|
+#endif /* CONFIG_DISPLAY_CPUINFO */
|
|
|
|
|
|
#if defined(CONFIG_WATCHDOG)
|
|
#if defined(CONFIG_WATCHDOG)
|
|
/* Called by macro WATCHDOG_RESET */
|
|
/* Called by macro WATCHDOG_RESET */
|
|
@@ -94,12 +96,13 @@ int watchdog_init(void)
|
|
#endif /* #ifdef CONFIG_M5208 */
|
|
#endif /* #ifdef CONFIG_M5208 */
|
|
|
|
|
|
#ifdef CONFIG_M5271
|
|
#ifdef CONFIG_M5271
|
|
|
|
+#if defined(CONFIG_DISPLAY_CPUINFO)
|
|
/*
|
|
/*
|
|
* Both MCF5270 and MCF5271 are members of the MPC5271 family. Try to
|
|
* Both MCF5270 and MCF5271 are members of the MPC5271 family. Try to
|
|
* determine which one we are running on, based on the Chip Identification
|
|
* determine which one we are running on, based on the Chip Identification
|
|
* Register (CIR).
|
|
* Register (CIR).
|
|
*/
|
|
*/
|
|
-int checkcpu(void)
|
|
|
|
|
|
+int print_cpuinfo(void)
|
|
{
|
|
{
|
|
char buf[32];
|
|
char buf[32];
|
|
unsigned short cir; /* Chip Identification Register */
|
|
unsigned short cir; /* Chip Identification Register */
|
|
@@ -133,6 +136,7 @@ int checkcpu(void)
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
+#endif /* CONFIG_DISPLAY_CPUINFO */
|
|
|
|
|
|
int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|
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;
|
|
return 0;
|
|
};
|
|
};
|
|
|
|
|
|
-int checkcpu(void)
|
|
|
|
|
|
+#if defined(CONFIG_DISPLAY_CPUINFO)
|
|
|
|
+int print_cpuinfo(void)
|
|
{
|
|
{
|
|
sysctrl_t *sysctrl = (sysctrl_t *) (MMAP_CFG);
|
|
sysctrl_t *sysctrl = (sysctrl_t *) (MMAP_CFG);
|
|
uchar msk;
|
|
uchar msk;
|
|
@@ -209,6 +214,7 @@ int checkcpu(void)
|
|
printf("Freescale MCF5272 %s\n", suf);
|
|
printf("Freescale MCF5272 %s\n", suf);
|
|
return 0;
|
|
return 0;
|
|
};
|
|
};
|
|
|
|
+#endif /* CONFIG_DISPLAY_CPUINFO */
|
|
|
|
|
|
#if defined(CONFIG_WATCHDOG)
|
|
#if defined(CONFIG_WATCHDOG)
|
|
/* Called by macro WATCHDOG_RESET */
|
|
/* 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;
|
|
return 0;
|
|
};
|
|
};
|
|
|
|
|
|
-int checkcpu(void)
|
|
|
|
|
|
+#if defined(CONFIG_DISPLAY_CPUINFO)
|
|
|
|
+int print_cpuinfo(void)
|
|
{
|
|
{
|
|
char buf[32];
|
|
char buf[32];
|
|
|
|
|
|
@@ -276,7 +283,7 @@ int checkcpu(void)
|
|
strmhz(buf, CONFIG_SYS_CLK));
|
|
strmhz(buf, CONFIG_SYS_CLK));
|
|
return 0;
|
|
return 0;
|
|
};
|
|
};
|
|
-
|
|
|
|
|
|
+#endif /* CONFIG_DISPLAY_CPUINFO */
|
|
|
|
|
|
#if defined(CONFIG_WATCHDOG)
|
|
#if defined(CONFIG_WATCHDOG)
|
|
/* Called by macro WATCHDOG_RESET */
|
|
/* Called by macro WATCHDOG_RESET */
|
|
@@ -326,7 +333,8 @@ int watchdog_init(void)
|
|
#endif /* #ifdef CONFIG_M5275 */
|
|
#endif /* #ifdef CONFIG_M5275 */
|
|
|
|
|
|
#ifdef CONFIG_M5282
|
|
#ifdef CONFIG_M5282
|
|
-int checkcpu(void)
|
|
|
|
|
|
+#if defined(CONFIG_DISPLAY_CPUINFO)
|
|
|
|
+int print_cpuinfo(void)
|
|
{
|
|
{
|
|
unsigned char resetsource = MCFRESET_RSR;
|
|
unsigned char resetsource = MCFRESET_RSR;
|
|
|
|
|
|
@@ -342,6 +350,7 @@ int checkcpu(void)
|
|
(resetsource & MCFRESET_RSR_LVD) ? " Low Voltage" : "");
|
|
(resetsource & MCFRESET_RSR_LVD) ? " Low Voltage" : "");
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
+#endif /* CONFIG_DISPLAY_CPUINFO */
|
|
|
|
|
|
int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|
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
|
|
#endif
|
|
|
|
|
|
#ifdef CONFIG_M5249
|
|
#ifdef CONFIG_M5249
|
|
-int checkcpu(void)
|
|
|
|
|
|
+#if defined(CONFIG_DISPLAY_CPUINFO)
|
|
|
|
+int print_cpuinfo(void)
|
|
{
|
|
{
|
|
char buf[32];
|
|
char buf[32];
|
|
|
|
|
|
@@ -359,6 +369,7 @@ int checkcpu(void)
|
|
strmhz(buf, CONFIG_SYS_CLK));
|
|
strmhz(buf, CONFIG_SYS_CLK));
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
+#endif /* CONFIG_DISPLAY_CPUINFO */
|
|
|
|
|
|
int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|
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
|
|
#endif
|
|
|
|
|
|
#ifdef CONFIG_M5253
|
|
#ifdef CONFIG_M5253
|
|
-int checkcpu(void)
|
|
|
|
|
|
+#if defined(CONFIG_DISPLAY_CPUINFO)
|
|
|
|
+int print_cpuinfo(void)
|
|
{
|
|
{
|
|
char buf[32];
|
|
char buf[32];
|
|
|
|
|
|
@@ -389,6 +401,7 @@ int checkcpu(void)
|
|
}
|
|
}
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
+#endif /* CONFIG_DISPLAY_CPUINFO */
|
|
|
|
|
|
int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|
int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|
{
|
|
{
|