From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [PATCH v7 00/10] Remove CONFIG_NR_DRAM_BANKS option and bi_memstart/memsize from bd_info
Date: Thu, 20 Aug 2020 06:44:42 +0200 [thread overview]
Message-ID: <20200820044452.2786286-1-sr@denx.de> (raw)
This patchset is an extension of the previous single patch
"CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined".
With a split into separate patches, its hopefully easier to understand,
what is changed.
The earlier patch versions tried a simple search and replace of the
bi_memstart / bi_memsize values with bi_dram[].start/.size. This did
not work. This patchset now removes some of the assignments and changes
in most cases to gd->ram_base/ram_size instead, which seems a better
choice.
Successful Azure build report:
https://dev.azure.com/sr0718/u-boot/_build/results?buildId=38&view=results
Thanks,
Stefan
Changes in v7:
- Add Reviewe-by tag from Ovidiu
- Reword commit text as suggested by Wolfgang
- Add Reviewe-by tag from Ovidiu
- Add Reviewe-by tag from Ovidiu
- Add Reviewe-by tag from Ovidiu
Changes in v6:
- Simplify dram_init_banksize() even more as suggested by Daniel
Changes in v5:
- Add Reviewed-by tag from Pali & Andy
- Move "bd" assignment as suggested by Andy
- Use PHYSADDR() for xtensa, as the bi_memstart value was originally
defined this way
- New patch to fix the failing "test.py xtfpga" CI test
- Add Tested-by tag from Oleksandr & Michael
Changes in v4:
- Only remove dead code with CONFIG_NR_DRAM_BANKS always defined
- New patch
- New patch
- New patch
- New patch
- New patch
- New patch
- New patch
- New patch
Stefan Roese (10):
CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined
image: Use gd->ram_base/_size in env_get_bootm_size()
board_f: Add default values for bi_dram[] in dram_init_banksize()
global: Move from bi_memstart/memsize -> gd->ram_base/ram_size
xtensa: Remove arch_setup_bdinfo()
xtensa: Remove local no-op dram_init_banksize()
video: cfb_console.c: Use bi_dram[] values on all platforms
powerpc: Remove bi_memstart & bi_memsize assignments in spl.c
cmd: bdinfo: Remove print of superseeded bi_memstart / bi_memsize
values
asm-generic/u-boot.h: Remove bi_memstart & bi_memsize from bd_info
api/api_platform-mips.c | 3 +--
api/api_platform-powerpc.c | 2 +-
arch/mips/lib/boot.c | 2 +-
arch/mips/lib/bootm.c | 2 +-
arch/powerpc/cpu/mpc83xx/fdt.c | 2 +-
arch/powerpc/cpu/mpc83xx/traps.c | 2 +-
arch/powerpc/cpu/mpc85xx/fdt.c | 4 ++--
arch/powerpc/cpu/mpc85xx/traps.c | 2 +-
arch/powerpc/cpu/mpc86xx/fdt.c | 4 +++-
arch/powerpc/cpu/mpc86xx/traps.c | 2 +-
arch/powerpc/cpu/mpc8xx/fdt.c | 2 +-
arch/powerpc/lib/bootm.c | 4 ++--
arch/x86/cpu/broadwell/cpu_from_spl.c | 2 --
arch/xtensa/lib/Makefile | 2 +-
arch/xtensa/lib/bdinfo.c | 22 ------------------
arch/xtensa/lib/bootm.c | 5 ++--
board/Arcturus/ucp1020/spl.c | 2 --
board/cadence/xtfpga/xtfpga.c | 5 ----
board/freescale/p1010rdb/spl.c | 2 --
board/freescale/p1_p2_rdb_pc/spl.c | 2 --
board/freescale/t102xrdb/spl.c | 2 --
board/freescale/t104xrdb/spl.c | 2 --
board/freescale/t208xqds/spl.c | 2 --
board/freescale/t208xrdb/spl.c | 2 --
board/freescale/t4rdb/spl.c | 2 --
board/xilinx/zynqmp/zynqmp.c | 2 --
cmd/bdinfo.c | 10 --------
cmd/bedbug.c | 2 +-
common/board_f.c | 12 +---------
common/image.c | 10 ++------
common/init/handoff.c | 33 +++++++++++----------------
drivers/pci/pci-uclass.c | 18 ++-------------
drivers/video/cfb_console.c | 8 +------
include/asm-generic/u-boot.h | 4 ----
include/handoff.h | 2 --
lib/fdtdec.c | 5 ----
lib/lmb.c | 9 ++------
37 files changed, 41 insertions(+), 157 deletions(-)
delete mode 100644 arch/xtensa/lib/bdinfo.c
--
2.28.0
next reply other threads:[~2020-08-20 4:44 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-20 4:44 Stefan Roese [this message]
2020-08-20 4:44 ` [PATCH v7 01/10] CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined Stefan Roese
2020-08-20 9:21 ` Bin Meng
2020-08-20 4:44 ` [PATCH v7 02/10] image: Use gd->ram_base/_size in env_get_bootm_size() Stefan Roese
2020-08-22 15:08 ` Simon Glass
2020-08-20 4:44 ` [PATCH v7 03/10] board_f: Add default values for bi_dram[] in dram_init_banksize() Stefan Roese
2020-08-20 9:22 ` Bin Meng
2020-08-20 9:29 ` Stefan Roese
2020-08-20 4:44 ` [PATCH v7 04/10] global: Move from bi_memstart/memsize -> gd->ram_base/ram_size Stefan Roese
2020-08-22 15:09 ` Simon Glass
2020-08-20 4:44 ` [PATCH v7 05/10] xtensa: Remove arch_setup_bdinfo() Stefan Roese
2020-08-20 4:44 ` [PATCH v7 06/10] xtensa: Remove local no-op dram_init_banksize() Stefan Roese
2020-08-20 4:44 ` [PATCH v7 07/10] video: cfb_console.c: Use bi_dram[] values on all platforms Stefan Roese
2020-08-22 15:09 ` Simon Glass
2020-08-20 4:44 ` [PATCH v7 08/10] powerpc: Remove bi_memstart & bi_memsize assignments in spl.c Stefan Roese
2020-08-22 15:09 ` Simon Glass
2020-08-20 4:44 ` [PATCH v7 09/10] cmd: bdinfo: Remove print of superseeded bi_memstart / bi_memsize values Stefan Roese
2020-08-20 4:44 ` [PATCH v7 10/10] asm-generic/u-boot.h: Remove bi_memstart & bi_memsize from bd_info Stefan Roese
2020-08-22 15:09 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200820044452.2786286-1-sr@denx.de \
--to=sr@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox