summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorOvidiu Panait <ovpanait@gmail.com>2022-09-13 21:31:27 +0300
committerTom Rini <trini@konsulko.com>2022-10-07 04:05:17 +0300
commit85e68ae001d4449f02e6ce99b91e160bd94eb69c (patch)
treeedfc934541e40565808150d9ede901070d987325 /common
parent181cbd4017305142eb26df0aa065b8bb95921f83 (diff)
downloadu-boot-85e68ae001d4449f02e6ce99b91e160bd94eb69c.tar.xz
common/board_f: move CONFIG_MACH_TYPE logic to arch/arm/lib/bdinfo.c
asm/mach_type.h header and CONFIG_MACH_TYPE macro are arm-specific, so move related bdinfo logic to arch_setup_bdinfo() in arch/arm/lib/bdinfo.c. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Diffstat (limited to 'common')
-rw-r--r--common/board_f.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/common/board_f.c b/common/board_f.c
index 77b7d9e28c..5201ed30cf 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -46,9 +46,6 @@
#include <video.h>
#include <watchdog.h>
#include <asm/cache.h>
-#ifdef CONFIG_MACH_TYPE
-#include <asm/mach-types.h>
-#endif
#if defined(CONFIG_MP) && defined(CONFIG_PPC)
#include <asm/mp.h>
#endif
@@ -624,10 +621,6 @@ int setup_bdinfo(void)
bd->bi_sramsize = CONFIG_SYS_SRAM_SIZE; /* size of SRAM */
}
-#ifdef CONFIG_MACH_TYPE
- bd->bi_arch_number = CONFIG_MACH_TYPE; /* board id for Linux */
-#endif
-
return arch_setup_bdinfo();
}