From: Ovidiu Panait Date: Mon, 17 Aug 2020 20:41:36 +0300 Subject: [PATCH v6 05/10] xtensa: Remove arch_setup_bdinfo() In-Reply-To: <20200817064849.1513855-6-sr@denx.de> References: <20200817064849.1513855-1-sr@denx.de> <20200817064849.1513855-6-sr@denx.de> Message-ID: <33f034fb-bdaa-bd47-85c6-6c8ac1a0de98@windriver.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 17.08.2020 09:48, Stefan Roese wrote: > arch_setup_bdinfo() only configures the deprecated bi_memstart & > bi_memsize values, which should not be needed any more. Lets remove > this file completely. > > Signed-off-by: Stefan Roese > > --- > > (no changes since v4) > > Changes in v4: > - New patch > > arch/xtensa/lib/Makefile | 2 +- > arch/xtensa/lib/bdinfo.c | 22 ---------------------- > 2 files changed, 1 insertion(+), 23 deletions(-) > delete mode 100644 arch/xtensa/lib/bdinfo.c > > diff --git a/arch/xtensa/lib/Makefile b/arch/xtensa/lib/Makefile > index ceee59b9bd..c59df7d372 100644 > --- a/arch/xtensa/lib/Makefile > +++ b/arch/xtensa/lib/Makefile > @@ -5,4 +5,4 @@ > > obj-$(CONFIG_CMD_BOOTM) += bootm.o > > -obj-y += cache.o misc.o relocate.o time.o bdinfo.o > +obj-y += cache.o misc.o relocate.o time.o > diff --git a/arch/xtensa/lib/bdinfo.c b/arch/xtensa/lib/bdinfo.c > deleted file mode 100644 > index 4ec8529521..0000000000 > --- a/arch/xtensa/lib/bdinfo.c > +++ /dev/null > @@ -1,22 +0,0 @@ > -// SPDX-License-Identifier: GPL-2.0+ > -/* > - * XTENSA-specific information for the 'bd' command > - * > - * (C) Copyright 2003 > - * Wolfgang Denk, DENX Software Engineering, wd at denx.de. > - */ > - > -#include > -#include > - > -DECLARE_GLOBAL_DATA_PTR; > - > -int arch_setup_bdinfo(void) > -{ > - struct bd_info *bd = gd->bd; > - > - bd->bi_memstart = PHYSADDR(CONFIG_SYS_SDRAM_BASE); > - bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE; > - > - return 0; > -} Reviewed-by: Ovidiu Panait