mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-27 01:21:33 +00:00
bdinfo: xtensa: Create a generic do_bdinfo for xtensa
This arch uses only the generic function. It would be nice if all the archs did the same. As a first step, create a new generic function for the 'bd' command and make xtensa use it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
4ac06d3525
commit
1af9756db8
1 changed files with 11 additions and 5 deletions
16
cmd/bdinfo.c
16
cmd/bdinfo.c
|
@ -476,16 +476,22 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
|||
|
||||
#elif defined(CONFIG_XTENSA)
|
||||
|
||||
int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
print_std_bdinfo(gd->bd);
|
||||
return 0;
|
||||
}
|
||||
#define USE_GENERIC
|
||||
|
||||
#else
|
||||
#error "a case for this architecture does not exist!"
|
||||
#endif
|
||||
|
||||
/* Temporary check for archs that use generic bdinfo. Eventually all will */
|
||||
#ifdef USE_GENERIC
|
||||
int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
{
|
||||
print_std_bdinfo(gd->bd);
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
U_BOOT_CMD(
|
||||
|
|
Loading…
Add table
Reference in a new issue