]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board/spear/common: move code to arch/arm/cpu/arm926ejs/spear/
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 15 Aug 2017 20:52:44 +0000 (22:52 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 26 Aug 2017 18:56:10 +0000 (14:56 -0400)
The code in board/spear/common/ is not board-specific but
SoC-specific. Therefore, boards from other vendors than "spear" may
want to re-use this code, which is currently difficult with the code
being placed in board/spear/common/.

Since this code really is SoC-specific, this commit moves it to
arch/arm/cpu/arm926ejs/spear/, with the rest of the SPEAr related
code.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
arch/arm/cpu/arm926ejs/spear/Makefile
arch/arm/cpu/arm926ejs/spear/spr_lowlevel_init.S [moved from board/spear/common/spr_lowlevel_init.S with 100% similarity]
arch/arm/cpu/arm926ejs/spear/spr_misc.c [moved from board/spear/common/spr_misc.c with 100% similarity]
board/spear/common/Makefile [deleted file]

index 7b15d4ef7ef61cd7c0a59268234f47f16f997e04..39924015907caf0c34c0720b69bff8d8a56682b4 100644 (file)
@@ -16,6 +16,8 @@ obj-$(CONFIG_DDR_MT47H64M16) += spr600_mt47h64m16_3_333_cl5_psync.o
 obj-$(CONFIG_DDR_MT47H32M16) += spr600_mt47h32m16_333_cl5_psync.o
 obj-$(CONFIG_DDR_MT47H32M16) += spr600_mt47h32m16_37e_166_cl4_sync.o
 obj-$(CONFIG_DDR_MT47H128M8) += spr600_mt47h128m8_3_266_cl5_async.o
+else
+obj-y += spr_misc.o spr_lowlevel_init.o
 endif
 
 extra-$(CONFIG_SPL_BUILD) := start.o
diff --git a/board/spear/common/Makefile b/board/spear/common/Makefile
deleted file mode 100644 (file)
index b0ba320..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#
-# (C) Copyright 2006
-# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
-#
-# SPDX-License-Identifier:     GPL-2.0+
-#
-
-ifdef CONFIG_SPL_BUILD
-# necessary to create built-in.o
-obj- := __dummy__.o
-else
-obj-y  := spr_misc.o
-obj-y  += spr_lowlevel_init.o
-endif