summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2012-08-14 14:33:02 -0700
committerTom Rini <trini@ti.com>2012-09-27 09:50:00 -0700
commitd97b4ce8056ff01ca8f1a63a7c69fa5316d33830 (patch)
treeee6cc380a4dc2417cfe95122c377b37fa469865a
parent77552b0633f0856f6bb73b8e1f75334601c6a5c9 (diff)
downloadu-boot-imx-d97b4ce8056ff01ca8f1a63a7c69fa5316d33830.zip
u-boot-imx-d97b4ce8056ff01ca8f1a63a7c69fa5316d33830.tar.gz
u-boot-imx-d97b4ce8056ff01ca8f1a63a7c69fa5316d33830.tar.bz2
SPL: NAND: Move arch/arm/cpu/armv7/omap-common/spl_nand.c to common/spl
We move the spl_nand_load_image function to common/spl. This will allow for easier integration of SPL-boots-Linux code on other arches. Signed-off-by: Tom Rini <trini@ti.com>
-rw-r--r--arch/arm/cpu/armv7/omap-common/Makefile6
-rw-r--r--common/spl/Makefile1
-rw-r--r--common/spl/spl_nand.c (renamed from arch/arm/cpu/armv7/omap-common/spl_nand.c)10
3 files changed, 5 insertions, 12 deletions
diff --git a/arch/arm/cpu/armv7/omap-common/Makefile b/arch/arm/cpu/armv7/omap-common/Makefile
index 6e815c6..1f2fa02 100644
--- a/arch/arm/cpu/armv7/omap-common/Makefile
+++ b/arch/arm/cpu/armv7/omap-common/Makefile
@@ -42,12 +42,6 @@ COBJS += boot-common.o
SOBJS += lowlevel_init.o
endif
-ifdef CONFIG_SPL_BUILD
-ifdef CONFIG_SPL_NAND_SUPPORT
-COBJS += spl_nand.o
-endif
-endif
-
ifndef CONFIG_SPL_BUILD
ifneq ($(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
COBJS += mem-common.o
diff --git a/common/spl/Makefile b/common/spl/Makefile
index b61b438..b9c9fd8 100644
--- a/common/spl/Makefile
+++ b/common/spl/Makefile
@@ -16,6 +16,7 @@ LIB = $(obj)libspl.o
ifdef CONFIG_SPL_BUILD
COBJS-$(CONFIG_SPL_FRAMEWORK) += spl.o
COBJS-$(CONFIG_SPL_YMODEM_SUPPORT) += spl_ymodem.o
+COBJS-$(CONFIG_SPL_NAND_SUPPORT) += spl_nand.o
endif
COBJS := $(sort $(COBJS-y))
diff --git a/arch/arm/cpu/armv7/omap-common/spl_nand.c b/common/spl/spl_nand.c
index 9e9206c..61de5a4 100644
--- a/arch/arm/cpu/armv7/omap-common/spl_nand.c
+++ b/common/spl/spl_nand.c
@@ -21,12 +21,10 @@
* MA 02111-1307 USA
*/
#include <common.h>
+#include <config.h>
#include <spl.h>
-#include <asm/u-boot.h>
-#include <asm/utils.h>
#include <asm/io.h>
#include <nand.h>
-#include <version.h>
void spl_nand_load_image(void)
{
@@ -71,10 +69,10 @@ void spl_nand_load_image(void)
nand_deselect();
return;
} else {
- printf("The Expected Linux image was not"
- "found. Please check your NAND"
+ puts("The Expected Linux image was not "
+ "found. Please check your NAND "
"configuration.\n");
- printf("Trying to start u-boot now...\n");
+ puts("Trying to start u-boot now...\n");
}
}
#endif