diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2015-01-14 17:07:05 +0900 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-01-29 17:09:49 -0700 |
commit | 0365ffcc0bd6335afb0c866423f3fe401b28ffaa (patch) | |
tree | ccb6a17bfe475d5238b50169004ec745dc1b84f8 /include/common.h | |
parent | 5468461d1ea05ff99cf206939293480cc86fd2ec (diff) |
generic-board: show model name in board_init_f() too
The common/board_r.c has show_model_r() to display the model name
if the DTB has a "model" property. It sounds useful to have a similar
function in common/board_f.c too because most of the boards show
their board name before relocation.
Instead of implementing the same function in both common/board_f.c
and common/board_r.c, let's split it up into common/show_board_info.c.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/common.h b/include/common.h index 4b3e0d3bbd7..97c8f79fc73 100644 --- a/include/common.h +++ b/include/common.h @@ -228,12 +228,13 @@ int run_command_list(const char *cmd, int len, int flag); extern char console_buffer[]; /* arch/$(ARCH)/lib/board.c */ -void board_init_f(ulong); -void board_init_r (gd_t *, ulong) __attribute__ ((noreturn)); -int checkboard (void); -int checkflash (void); -int checkdram (void); -int last_stage_init(void); +void board_init_f(ulong); +void board_init_r(gd_t *, ulong) __attribute__ ((noreturn)); +int checkboard(void); +int show_board_info(void); +int checkflash(void); +int checkdram(void); +int last_stage_init(void); extern ulong monitor_flash_len; int mac_read_from_eeprom(void); extern u8 __dtb_dt_begin[]; /* embedded device tree blob */ |