]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
AT91: fix TOP9000 build problem and change CONFIG_SYS_TEXT_BASE
authorReinhard Meyer <u-boot@emk-elektronik.de>
Thu, 9 Dec 2010 09:07:31 +0000 (10:07 +0100)
committerReinhard Meyer <u-boot@emk-elektronik.de>
Fri, 17 Dec 2010 07:47:26 +0000 (08:47 +0100)
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
board/emk/top9000/Makefile
board/emk/top9000/top9000.c
include/configs/top9000.h

index 9b280482a9e2c35c56c26f6bf0adbc3bfaff8c83..3ac6f14f843b17ad3f3d38714b905d20364b125d 100644 (file)
@@ -26,9 +26,9 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
-COBJS-y        += top9000.o
+COBJS-y        += $(BOARD).o
 COBJS-$(CONFIG_ATMEL_SPI)      += spi.o
 
 SRCS   := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
@@ -36,7 +36,7 @@ OBJS  := $(addprefix $(obj),$(COBJS-y))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
+       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)
index b0fe2d68a83358f37d957dfb0dd6280b1808e341..73dd7062070b25ba03d9e7cb56474a309ed7df2c 100644 (file)
@@ -120,7 +120,7 @@ int board_mmc_getcd(u8 *cd, struct mmc *mmc)
 
 int board_early_init_f(void)
 {
-       at91_shdwn_t *shdwn = (at91_shdwn_t *)AT91_SHDWN_BASE;
+       struct at91_shdwn *shdwn = (struct at91_shdwn *)AT91_SHDWN_BASE;
 
        /*
         * make sure the board can be powered on by
index ff3933b19c9b03578d948e0d78f070d1d5aa8b5d..0b23a5d6fdf73bbf31c470d0001a02c7d28dd8f2 100644 (file)
@@ -40,9 +40,9 @@
 
 /*
  * Warning: changing CONFIG_SYS_TEXT_BASE requires
- * adapting the initial boot program
+ * adapting the initial boot program.
  */
-#define CONFIG_SYS_TEXT_BASE           0x21f00000      /* 31 MB into RAM */
+#define CONFIG_SYS_TEXT_BASE           0x20000000      /* start of SDRAM */
 
 /* Command line configuration */
 #include <config_cmd_default.h>