mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-29 10:31:30 +00:00
bdinfo: Drop the option to not use the generic 'bd' command
Now that all architectures are using the generic do_bdinfo(), drop the option to not use it. When new architectures are added, they will get at least some useful information from the generic implementation. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
e227c27393
commit
e01ce34bb0
1 changed files with 0 additions and 59 deletions
59
cmd/bdinfo.c
59
cmd/bdinfo.c
|
@ -171,64 +171,6 @@ static inline void __maybe_unused print_std_bdinfo(const bd_t *bd)
|
|||
print_baudrate();
|
||||
}
|
||||
|
||||
#if defined(CONFIG_PPC)
|
||||
|
||||
#define USE_GENERIC
|
||||
|
||||
#elif defined(CONFIG_NIOS2)
|
||||
|
||||
#define USE_GENERIC
|
||||
|
||||
#elif defined(CONFIG_MICROBLAZE)
|
||||
|
||||
#define USE_GENERIC
|
||||
|
||||
#elif defined(CONFIG_M68K)
|
||||
|
||||
#define USE_GENERIC
|
||||
|
||||
#elif defined(CONFIG_MIPS)
|
||||
|
||||
#define USE_GENERIC
|
||||
|
||||
#elif defined(CONFIG_ARM)
|
||||
|
||||
#define USE_GENERIC
|
||||
|
||||
#elif defined(CONFIG_SH)
|
||||
|
||||
#define USE_GENERIC
|
||||
|
||||
#elif defined(CONFIG_X86)
|
||||
|
||||
#define USE_GENERIC
|
||||
|
||||
#elif defined(CONFIG_SANDBOX)
|
||||
|
||||
#define USE_GENERIC
|
||||
|
||||
#elif defined(CONFIG_NDS32)
|
||||
|
||||
#define USE_GENERIC
|
||||
|
||||
#elif defined(CONFIG_RISCV)
|
||||
|
||||
#define USE_GENERIC
|
||||
|
||||
#elif defined(CONFIG_ARC)
|
||||
|
||||
#define USE_GENERIC
|
||||
|
||||
#elif defined(CONFIG_XTENSA)
|
||||
|
||||
#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
|
||||
void __weak board_detail(void)
|
||||
{
|
||||
/* Please define board_detail() for your PPC platform */
|
||||
|
@ -343,7 +285,6 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
|||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue