mirror of
https://github.com/frank-w/u-boot.git
synced 2026-01-07 16:48:14 +08:00
ARC: make generic print_cpuinfo() weak
This allows board to override print_cpuinfo() because they might know better which ARChitect template was used. This way we may not only derive base architecture type and version but more meaningful things like "ARC EM7D" instead of simple "ARC EM", "ARC HS36" instead of "ARC HS". Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
This commit is contained in:
@@ -60,7 +60,7 @@ const char *decode_identity(void)
|
||||
}
|
||||
}
|
||||
|
||||
int print_cpuinfo(void)
|
||||
__weak int print_cpuinfo(void)
|
||||
{
|
||||
printf("CPU: %s\n", decode_identity());
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user