]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
xtensa: Remove arch_setup_bdinfo()
authorStefan Roese <sr@denx.de>
Wed, 12 Aug 2020 11:30:38 +0000 (13:30 +0200)
committerStefan Roese <sr@denx.de>
Wed, 26 Aug 2020 07:19:40 +0000 (09:19 +0200)
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 <sr@denx.de>
Reviewed-by: Ovidiu Panait <ovidiu.panait@windriver.com>
arch/xtensa/lib/Makefile
arch/xtensa/lib/bdinfo.c [deleted file]

index ceee59b9bd77fc3c6d3fe5eadfab0482e40eebb9..c59df7d37215c83cf81624396e6a5caf61ae930f 100644 (file)
@@ -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 (file)
index 4ec8529..0000000
+++ /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@denx.de.
- */
-
-#include <common.h>
-#include <init.h>
-
-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;
-}