Skip to content

Tidy up the 'bd' command.

Simon Glass u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest36 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/36bdinfo: nds32: Use generic bd_infoarch/nds32/include/asm/u-boot.h+2 -182 replies
2/36bdinfo: riscv: Use generic bd_infoarch/riscv/include/asm/u-boot.h+2 -172 replies
3/36bdinfo: m68k: Drop bd_info->bi_ipbfreqinclude/asm-generic/u-boot.h+0 -11 reply
4/36bdinfo: xtensa: Create a generic do_bdinfo for xtensacmd/bdinfo.c+10 -41 reply
5/36bdinfo: mips: Use the generic bd commandcmd/bdinfo.c+4 -92 replies
6/36bdinfo: nios2: Use the generic bd commandcmd/bdinfo.c+1 -181 reply
7/36bdinfo: microblaze: Use the generic bd commandcmd/bdinfo.c+7 -232 replies
7/36bdinfo: microblaze: Use the generic bd command+0 -00 replies
8/36bdinfo: sh: Use the generic bd commandcmd/bdinfo.c+1 -121 reply
9/36bdinfo: x86: Use the generic bd commandcmd/bdinfo.c+2 -191 reply
10/36bdinfo: sandbox: Use the generic bd commandcmd/bdinfo.c+1 -151 reply
11/36bdinfo: nds32: Use the generic bd commandcmd/bdinfo.c+1 -132 replies
12/36bdinfo: riscv: Use the generic bd commandcmd/bdinfo.c+1 -142 replies
13/36bdinfo: arm: Use the generic bd commandcmd/bdinfo.c+104 -1461 reply
14/36bdinfo: Drop the option to not use the generic 'bd' commandcmd/bdinfo.c+0 -591 reply
15/36bdinfo: Drop unused __maybe_unusedcmd/bdinfo.c+2 -41 reply
16/36bdinfo: microblaze: sh: nios2: Drop arch-specific flash infocmd/bdinfo.c+3 -141 reply
17/36bdinfo: Drop unnecessary inline on functionscmd/bdinfo.c+7 -81 reply
18/36bdinfo: Drop print_std_bdinfo()cmd/bdinfo.c+5 -91 reply
19/36bdinfo: ppc: Drop arch-specific print_baudrate()cmd/bdinfo.c+1 -112 replies
20/36bdinfo: sh: arc: Drop arch-specific print_bi_mem()cmd/bdinfo.c+2 -152 replies
21/36bdinfo: Drop print_bi_boot_params()cmd/bdinfo.c+1 -71 reply
22/36bdinfo: Drop print_bi_flash()cmd/bdinfo.c+3 -82 replies
22/36bdinfo: Drop print_bi_flash()+0 -00 replies
23/36bdinfo: Drop print_cpu_word_size()cmd/bdinfo.c+1 -61 reply
24/36bdinfo: net: ppc: Drop bi_enet1addr and other similar infocommon/board_r.c include/asm-generic/u-boot.h+1 -322 replies
25/36bdinfo: net: ppc: Drop prints for CONFIG_HAS_ETHncmd/bdinfo.c+0 -152 replies
26/36bdinfo: net: Drop legacy ethernet bdinfocmd/bdinfo.c+2 -191 reply
26/36bdinfo: net: Drop legacy ethernet bdinfo+0 -00 replies
27/36bdinfo: net: Inline print_eths()cmd/bdinfo.c+1 -61 reply
28/36bdinfo: net: Inline print_eth_ip_addr()cmd/bdinfo.c+4 -111 reply
29/36bdinfo: Export some basic printing functionscmd/bdinfo.c include/init.h+45 -391 reply
30/36bdinfo: arm: Move ARM-specific info into its own filearch/arm/lib/Makefile arch/arm/lib/bdinfo.c cmd/bdinfo.c +1 more+61 -382 replies
31/36bdinfo: ppc: Move PPC-specific info into its own filearch/powerpc/lib/Makefile arch/powerpc/lib/bdinfo.c cmd/bdinfo.c+43 -272 replies
32/36bdinfo: m68k: Move m68k-specific info into its own filearch/m68k/lib/Makefile arch/m68k/lib/bdinfo.c cmd/bdinfo.c+30 -152 replies
33/36bdinfo: m68k: ppc: Move arch-specific code from bdinfoarch/m68k/lib/bdinfo.c arch/powerpc/lib/bdinfo.c cmd/bdinfo.c+10 -82 replies
34/36bdinfo: Update the file commentscmd/bdinfo.c+2 -61 reply
35/36bdinfo: dm: Update fb_base when using driver modeldrivers/video/video-uclass.c+1 -01 reply
36/36bdinfo: x86: vesa: Update fb_base to the correct valuearch/x86/lib/fsp/fsp_graphics.c+3 -21 reply

Reviews trailers per patch

33 of 39 patches have a Reviewed-by or Acked-by.

PatchRick ChenBin MengAlexey BrodkinStefan RoeseDaniel SchwierzeckAngelo Dureghello
1/36R-b R-b
2/36R-b R-b
3/36R-b
4/36R-b
5/36R-b R-b
6/36R-b
7/36R-b
7/36R-b
8/36R-b
9/36R-b
10/36R-b
11/36R-b R-b
12/36R-b R-b
13/36
14/36R-b
15/36R-b
16/36R-b
17/36R-b
18/36R-b
19/36R-b R-b
20/36R-b A-b
21/36R-b
22/36
22/36
23/36R-b
24/36R-b R-b
25/36R-b R-b
26/36
26/36
27/36
28/36R-b
29/36R-b
30/36R-b
31/36R-b R-b
32/36R-b T-b
33/36R-b R-b
34/36R-b
35/36R-b
36/36R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v1 thread

Cover letter [PATCH 00/36] Tidy up the 'bd' command.

The code for the 'bd' command never got the 'generic board' treatment many years ago when global_data and bd_info were converted. As a result it still has a lot of arch-specific duplication of generic code.

This series aims to make as much code in this file generic as possible, so that it is easy to add new info on all architectures.

For the three architectures that actually need additional code (ARM, PPC and m68k) this is moved into arch-specific files.

With this series, bdinfo.c drops from nearly 500 lines to just over 100.

It also makes x86 report the frame buffer address properly (the original goal of my effort).

Simon Glass (36):
bdinfo: nds32: Use generic bd_info
bdinfo: riscv: Use generic bd_info
bdinfo: m68k: Drop bd_info->bi_ipbfreq
bdinfo: xtensa: Create a generic do_bdinfo for xtensa
bdinfo: mips: Use the generic bd command
bdinfo: nios2: Use the generic bd command
bdinfo: microblaze: Use the generic bd command
bdinfo: sh: Use the generic bd command
bdinfo: x86: Use the generic bd command
bdinfo: sandbox: Use the generic bd command
bdinfo: nds32: Use the generic bd command
bdinfo: riscv: Use the generic bd command
bdinfo: arm: Use the generic bd command
bdinfo: Drop the option to not use the generic 'bd' command
bdinfo: Drop unused __maybe_unused
bdinfo: microblaze: sh: nios2: Drop arch-specific flash info
bdinfo: Drop unnecessary inline on functions
bdinfo: Drop print_std_bdinfo()
bdinfo: ppc: Drop arch-specific print_baudrate()
bdinfo: sh: arc: Drop arch-specific print_bi_mem()
bdinfo: Drop print_bi_boot_params()
bdinfo: Drop print_bi_flash()
bdinfo: Drop print_cpu_word_size()
bdinfo: net: ppc: Drop bi_enet1addr and other similar info
bdinfo: net: ppc: Drop prints for CONFIG_HAS_ETHn
bdinfo: net: Drop legacy ethernet bdinfo
bdinfo: net: Inline print_eths()
bdinfo: net: Inline print_eth_ip_addr()
bdinfo: Export some basic printing functions
bdinfo: arm: Move ARM-specific info into its own file
bdinfo: ppc: Move PPC-specific info into its own file
bdinfo: m68k: Move m68k-specific info into its own file
bdinfo: m68k: ppc: Move arch-specific code from bdinfo
bdinfo: Update the file comments
bdinfo: dm: Update fb_base when using driver model
bdinfo: x86: vesa: Update fb_base to the correct value

 arch/arm/lib/Makefile           |   1 +
 arch/arm/lib/bdinfo.c           |  51 ++++
 arch/m68k/lib/Makefile          |   1 +
 arch/m68k/lib/bdinfo.c          |  34 +++
 arch/nds32/include/asm/u-boot.h |  20 +-
 arch/powerpc/lib/Makefile       |   2 +
 arch/powerpc/lib/bdinfo.c       |  46 ++++
 arch/riscv/include/asm/u-boot.h |  19 +-
 arch/x86/lib/fsp/fsp_graphics.c |   5 +-
 cmd/bdinfo.c                    | 451 +++-----------------------------
 common/board_r.c                |  16 +-
 drivers/video/video-uclass.c    |   1 +
 include/asm-generic/u-boot.h    |  18 --
 include/init.h                  |   9 +
 14 files changed, 185 insertions(+), 489 deletions(-)
 create mode 100644 arch/arm/lib/bdinfo.c
 create mode 100644 arch/m68k/lib/bdinfo.c
 create mode 100644 arch/powerpc/lib/bdinfo.c
Signature · 1 line
2.26.2.526.g744177e7f7-goog