From patchwork Fri Apr 24 21:10:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugeniy Paltsev X-Patchwork-Id: 238451 List-Id: U-Boot discussion From: Eugeniy.Paltsev at synopsys.com (Eugeniy Paltsev) Date: Sat, 25 Apr 2020 00:10:40 +0300 Subject: [PATCH] BDINFO: ARC: print info about relocations Message-ID: <20200424211040.31294-1-Eugeniy.Paltsev@synopsys.com> Print relocation information in bdinfo. NOTE: this patch changes only ARC part of bdinfo code. Signed-off-by: Eugeniy Paltsev --- cmd/bdinfo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index d6a7175b379..31ec4615641 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -439,20 +439,24 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) return 0; } #elif defined(CONFIG_ARC) int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { bd_t *bd = gd->bd; print_bi_mem(bd); + if (!(gd->flags & GD_FLG_SKIP_RELOC)) { + print_num("relocaddr", gd->relocaddr); + print_num("reloc off", gd->reloc_off); + } print_eth_ip_addr(); print_baudrate(); return 0; } #elif defined(CONFIG_XTENSA) int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) {