summaryrefslogtreecommitdiff
path: root/include/init.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-06-25 18:15:50 -0400
committerTom Rini <trini@konsulko.com>2020-06-25 18:15:50 -0400
commit04f005d552eb748582678a45119b55a99f75748e (patch)
treed57377eec42fbfecfc3108d8b64b8061331fed3a /include/init.h
parentf0e236c8d6646f6ef0ebf8f043962a07dda3b3a3 (diff)
parentc68a1ae6ab760d797f4dde2c5c671e18d0e2adb4 (diff)
Merge branch '2020-06-25-tidy-up-bd-command' into next
- Tidy up the 'bdinfo' command so that it's both consistent for all architectures and sharing as much code as possible.
Diffstat (limited to 'include/init.h')
-rw-r--r--include/init.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/init.h b/include/init.h
index b5a167b6edb..e727031514c 100644
--- a/include/init.h
+++ b/include/init.h
@@ -261,6 +261,15 @@ void relocate_code(ulong start_addr_sp, struct global_data *new_gd,
__attribute__ ((noreturn));
#endif
+/* Print a numeric value (for use in arch_print_bdinfo()) */
+void bdinfo_print_num(const char *name, ulong value);
+
+/* Print a clock speed in MHz */
+void bdinfo_print_mhz(const char *name, unsigned long hz);
+
+/* Show arch-specific information for the 'bd' command */
+void arch_print_bdinfo(void);
+
#endif /* __ASSEMBLY__ */
/* Put only stuff here that the assembler can digest */