All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/36] Tidy up the 'bd' command.
@ 2020-05-04 23:16 Simon Glass
  2020-05-04 23:16 ` [PATCH 01/36] bdinfo: nds32: Use generic bd_info Simon Glass
                   ` (36 more replies)
  0 siblings, 37 replies; 93+ messages in thread
From: Simon Glass @ 2020-05-04 23:16 UTC (permalink / raw)
  To: u-boot

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

-- 
2.26.2.526.g744177e7f7-goog

^ permalink raw reply	[flat|nested] 93+ messages in thread

end of thread, other threads:[~2020-05-10 20:36 UTC | newest]

Thread overview: 93+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-04 23:16 [PATCH 00/36] Tidy up the 'bd' command Simon Glass
2020-05-04 23:16 ` [PATCH 01/36] bdinfo: nds32: Use generic bd_info Simon Glass
     [not found]   ` <752D002CFF5D0F4FA35C0100F1D73F3FA4704736@ATCPCS16.andestech.com>
2020-05-05  1:16     ` Rick Chen
2020-05-06  8:06   ` Bin Meng
2020-05-04 23:16 ` [PATCH 02/36] bdinfo: riscv: " Simon Glass
     [not found]   ` <752D002CFF5D0F4FA35C0100F1D73F3FA4704741@ATCPCS16.andestech.com>
2020-05-05  1:19     ` Rick Chen
2020-05-06  8:06   ` Bin Meng
2020-05-04 23:16 ` [PATCH 03/36] bdinfo: m68k: Drop bd_info->bi_ipbfreq Simon Glass
2020-05-06  8:06   ` Bin Meng
2020-05-04 23:17 ` [PATCH 04/36] bdinfo: xtensa: Create a generic do_bdinfo for xtensa Simon Glass
2020-05-06  8:07   ` Bin Meng
2020-05-04 23:17 ` [PATCH 05/36] bdinfo: mips: Use the generic bd command Simon Glass
2020-05-06  8:07   ` Bin Meng
2020-05-06 15:29   ` Daniel Schwierzeck
2020-05-04 23:17 ` [PATCH 06/36] bdinfo: nios2: " Simon Glass
2020-05-06  8:07   ` Bin Meng
2020-05-04 23:17 ` [PATCH 07/36] bdinfo: microblaze: " Simon Glass
2020-05-06  8:07   ` Bin Meng
2020-05-06 15:56   ` Daniel Schwierzeck
2020-05-10 20:36     ` Simon Glass
2020-05-04 23:17 ` [PATCH 08/36] bdinfo: sh: " Simon Glass
2020-05-06  8:07   ` Bin Meng
2020-05-04 23:17 ` [PATCH 09/36] bdinfo: x86: " Simon Glass
2020-05-06  8:07   ` Bin Meng
2020-05-04 23:17 ` [PATCH 10/36] bdinfo: sandbox: " Simon Glass
2020-05-06  8:07   ` Bin Meng
2020-05-04 23:17 ` [PATCH 11/36] bdinfo: nds32: " Simon Glass
     [not found]   ` <752D002CFF5D0F4FA35C0100F1D73F3FA470474E@ATCPCS16.andestech.com>
2020-05-05  1:22     ` Rick Chen
2020-05-06  8:07   ` Bin Meng
2020-05-04 23:17 ` [PATCH 12/36] bdinfo: riscv: " Simon Glass
     [not found]   ` <752D002CFF5D0F4FA35C0100F1D73F3FA4704755@ATCPCS16.andestech.com>
2020-05-05  1:24     ` Rick Chen
2020-05-06  8:07   ` Bin Meng
2020-05-04 23:17 ` [PATCH 13/36] bdinfo: arm: " Simon Glass
2020-05-06  8:07   ` Bin Meng
2020-05-04 23:17 ` [PATCH 14/36] bdinfo: Drop the option to not use the generic 'bd' command Simon Glass
2020-05-06  8:07   ` Bin Meng
2020-05-04 23:17 ` [PATCH 15/36] bdinfo: Drop unused __maybe_unused Simon Glass
2020-05-06  8:07   ` Bin Meng
2020-05-04 23:17 ` [PATCH 16/36] bdinfo: microblaze: sh: nios2: Drop arch-specific flash info Simon Glass
2020-05-06  8:09   ` Bin Meng
2020-05-04 23:17 ` [PATCH 17/36] bdinfo: Drop unnecessary inline on functions Simon Glass
2020-05-06  8:09   ` Bin Meng
2020-05-04 23:17 ` [PATCH 18/36] bdinfo: Drop print_std_bdinfo() Simon Glass
2020-05-06  8:09   ` Bin Meng
2020-05-04 23:17 ` [PATCH 19/36] bdinfo: ppc: Drop arch-specific print_baudrate() Simon Glass
2020-05-06  8:09   ` Bin Meng
2020-05-06 15:09   ` Stefan Roese
2020-05-04 23:17 ` [PATCH 20/36] bdinfo: sh: arc: Drop arch-specific print_bi_mem() Simon Glass
2020-05-06  8:09   ` Bin Meng
2020-05-06  9:04     ` Alexey Brodkin
2020-05-04 23:17 ` [PATCH 21/36] bdinfo: Drop print_bi_boot_params() Simon Glass
2020-05-06  8:09   ` Bin Meng
2020-05-04 23:17 ` [PATCH 22/36] bdinfo: Drop print_bi_flash() Simon Glass
2020-05-06  8:09   ` Bin Meng
2020-05-06 14:10     ` Tom Rini
2020-05-06 14:47     ` Simon Glass
2020-05-04 23:17 ` [PATCH 23/36] bdinfo: Drop print_cpu_word_size() Simon Glass
2020-05-06  8:09   ` Bin Meng
2020-05-04 23:17 ` [PATCH 24/36] bdinfo: net: ppc: Drop bi_enet1addr and other similar info Simon Glass
2020-05-06  8:09   ` Bin Meng
2020-05-06 15:09   ` Stefan Roese
2020-05-04 23:17 ` [PATCH 25/36] bdinfo: net: ppc: Drop prints for CONFIG_HAS_ETHn Simon Glass
2020-05-06  8:09   ` Bin Meng
2020-05-06 15:10   ` Stefan Roese
2020-05-04 23:17 ` [PATCH 26/36] bdinfo: net: Drop legacy ethernet bdinfo Simon Glass
2020-05-06  8:09   ` Bin Meng
2020-05-06 14:47     ` Simon Glass
2020-05-04 23:17 ` [PATCH 27/36] bdinfo: net: Inline print_eths() Simon Glass
2020-05-06  8:10   ` Bin Meng
2020-05-04 23:17 ` [PATCH 28/36] bdinfo: net: Inline print_eth_ip_addr() Simon Glass
2020-05-06  8:10   ` Bin Meng
2020-05-04 23:17 ` [PATCH 29/36] bdinfo: Export some basic printing functions Simon Glass
2020-05-06  8:10   ` Bin Meng
2020-05-04 23:17 ` [PATCH 30/36] bdinfo: arm: Move ARM-specific info into its own file Simon Glass
2020-05-06  8:10   ` Bin Meng
2020-05-06 16:10   ` Daniel Schwierzeck
2020-05-04 23:17 ` [PATCH 31/36] bdinfo: ppc: Move PPC-specific " Simon Glass
2020-05-06  8:10   ` Bin Meng
2020-05-06 15:10   ` Stefan Roese
2020-05-04 23:17 ` [PATCH 32/36] bdinfo: m68k: Move m68k-specific " Simon Glass
2020-05-06  8:10   ` Bin Meng
2020-05-06 20:11   ` Angelo Dureghello
2020-05-04 23:17 ` [PATCH 33/36] bdinfo: m68k: ppc: Move arch-specific code from bdinfo Simon Glass
2020-05-06  8:10   ` Bin Meng
2020-05-06 15:10   ` Stefan Roese
2020-05-04 23:17 ` [PATCH 34/36] bdinfo: Update the file comments Simon Glass
2020-05-06  8:10   ` Bin Meng
2020-05-04 23:17 ` [PATCH 35/36] bdinfo: dm: Update fb_base when using driver model Simon Glass
2020-05-06  8:10   ` Bin Meng
2020-05-04 23:17 ` [PATCH 36/36] bdinfo: x86: vesa: Update fb_base to the correct value Simon Glass
2020-05-06  8:10   ` Bin Meng
2020-05-06  9:28 ` [PATCH 00/36] Tidy up the 'bd' command Alexey Brodkin
2020-05-06 14:47   ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.