bl cpu_init_crit
#endif
-#ifndef CONFIG_ONENAND_IPL
-#ifndef CONFIG_SKIP_RELOCATE_UBOOT
+#if !defined(CONFIG_SKIP_RELOCATE_UBOOT) || !defined(CONFIG_ONENAND_IPL)
relocate: @ relocate U-Boot to RAM
adr r0, _start @ r0 <- current position of code
ldr r1, _TEXT_BASE @ test if we run from flash or RAM
cmp r0, r2 @ until source end addreee [r2]
ble copy_loop
#endif /* CONFIG_SKIP_RELOCATE_UBOOT */
-#endif /* CONFIG_ONENAND_IPL */
/* Set up the stack */
stack_setup:
#
include $(TOPDIR)/config.mk
+# S5PC100 loads at 0x34000
+# S5PC110 loads at 0x30000
+# Now it uses the S5PC100 as default
+# If you use the S5PC110, the load address is relocated at start.S
+# XXX Never set it S5PC110 it don't relocate it
TEXT_BASE = 0xD0034000
TEXT_BASE2K = 0xD0034800
TEXT_BASE4K = 0xD0035000
LDSCRIPT= $(TOPDIR)/onenand_ipl/board/$(BOARDDIR)/u-boot-onenand.lds
LDFLAGS = -Bstatic -T $(LDSCRIPT) -Ttext $(TEXT_BASE) $(PLATFORM_LDFLAGS)
-AFLAGS += -DCONFIG_ONENAND_IPL -g
+AFLAGS += -DCONFIG_ONENAND_IPL -g -UTEXT_BASE -DTEXT_BASE=$(TEXT_BASE)
CFLAGS += -DCONFIG_ONENAND_IPL -g
OBJCFLAGS += --gap-fill=0x00