瀏覽代碼

Merge branch 'master' into next

Conflicts:
	lib_generic/zlib.c

Signed-off-by: Wolfgang Denk <wd@denx.de>
Wolfgang Denk 15 年之前
父節點
當前提交
206c00f26f

+ 1 - 0
Makefile

@@ -3266,6 +3266,7 @@ zylonite_config :
 #########################################################################
 #########################################################################
 
 
 apollon_config		: unconfig
 apollon_config		: unconfig
+	@mkdir -p $(obj)include
 	@echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
 	@echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
 	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
 	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
 	@echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
 	@echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk

+ 5 - 5
README

@@ -846,20 +846,20 @@ The following options need to be configured:
 			Define this to use i/o functions instead of macros
 			Define this to use i/o functions instead of macros
 			(some hardware wont work with macros)
 			(some hardware wont work with macros)
 
 
-		CONFIG_DRIVER_SMC911X
+		CONFIG_SMC911X
 		Support for SMSC's LAN911x and LAN921x chips
 		Support for SMSC's LAN911x and LAN921x chips
 
 
-			CONFIG_DRIVER_SMC911X_BASE
+			CONFIG_SMC911X_BASE
 			Define this to hold the physical address
 			Define this to hold the physical address
 			of the device (I/O space)
 			of the device (I/O space)
 
 
-			CONFIG_DRIVER_SMC911X_32_BIT
+			CONFIG_SMC911X_32_BIT
 			Define this if data bus is 32 bits
 			Define this if data bus is 32 bits
 
 
-			CONFIG_DRIVER_SMC911X_16_BIT
+			CONFIG_SMC911X_16_BIT
 			Define this if data bus is 16 bits. If your processor
 			Define this if data bus is 16 bits. If your processor
 			automatically converts one 32 bit word to two 16 bit
 			automatically converts one 32 bit word to two 16 bit
-			words you may also try CONFIG_DRIVER_SMC911X_32_BIT.
+			words you may also try CONFIG_SMC911X_32_BIT.
 
 
 - USB Support:
 - USB Support:
 		At the moment only the UHCI host controller is
 		At the moment only the UHCI host controller is

+ 5 - 4
board/atmel/at91sam9261ek/at91sam9261ek.c

@@ -265,11 +265,12 @@ int board_init(void)
 }
 }
 
 
 #ifdef CONFIG_DRIVER_DM9000
 #ifdef CONFIG_DRIVER_DM9000
- int board_eth_init(bd_t *bis)
- {
+int board_eth_init(bd_t *bis)
+{
 	return dm9000_initialize(bis);
 	return dm9000_initialize(bis);
- }
- #endif
+}
+#endif
+
 int dram_init(void)
 int dram_init(void)
 {
 {
 	gd->bd->bi_dram[0].start = PHYS_SDRAM;
 	gd->bd->bi_dram[0].start = PHYS_SDRAM;

+ 2 - 0
board/mucmc52/mucmc52.c

@@ -31,6 +31,7 @@
  */
  */
 
 
 #include <common.h>
 #include <common.h>
+#include <fdt_support.h>
 #include <mpc5xxx.h>
 #include <mpc5xxx.h>
 #include <pci.h>
 #include <pci.h>
 #include <malloc.h>
 #include <malloc.h>
@@ -403,5 +404,6 @@ void pci_init_board (void)
 void ft_board_setup(void *blob, bd_t *bd)
 void ft_board_setup(void *blob, bd_t *bd)
 {
 {
 	ft_cpu_setup(blob, bd);
 	ft_cpu_setup(blob, bd);
+	fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);
 }
 }
 #endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */
 #endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */

+ 2 - 0
board/uc101/uc101.c

@@ -31,6 +31,7 @@
  */
  */
 
 
 #include <common.h>
 #include <common.h>
+#include <fdt_support.h>
 #include <mpc5xxx.h>
 #include <mpc5xxx.h>
 #include <pci.h>
 #include <pci.h>
 #include <malloc.h>
 #include <malloc.h>
@@ -376,5 +377,6 @@ void hw_watchdog_reset(void)
 void ft_board_setup(void *blob, bd_t *bd)
 void ft_board_setup(void *blob, bd_t *bd)
 {
 {
 	ft_cpu_setup(blob, bd);
 	ft_cpu_setup(blob, bd);
+	fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);
 }
 }
 #endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */
 #endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */

+ 2 - 2
common/cmd_bootm.c

@@ -475,8 +475,8 @@ cmd_tbl_t cmd_bootm_sub[] = {
 #ifdef CONFIG_OF_LIBFDT
 #ifdef CONFIG_OF_LIBFDT
 	U_BOOT_CMD_MKENT(fdt, 0, 1, (void *)BOOTM_STATE_FDT, "", ""),
 	U_BOOT_CMD_MKENT(fdt, 0, 1, (void *)BOOTM_STATE_FDT, "", ""),
 #endif
 #endif
-	U_BOOT_CMD_MKENT(bdt, 0, 1, (void *)BOOTM_STATE_OS_BD_T, "", ""),
 	U_BOOT_CMD_MKENT(cmdline, 0, 1, (void *)BOOTM_STATE_OS_CMDLINE, "", ""),
 	U_BOOT_CMD_MKENT(cmdline, 0, 1, (void *)BOOTM_STATE_OS_CMDLINE, "", ""),
+	U_BOOT_CMD_MKENT(bdt, 0, 1, (void *)BOOTM_STATE_OS_BD_T, "", ""),
 	U_BOOT_CMD_MKENT(prep, 0, 1, (void *)BOOTM_STATE_OS_PREP, "", ""),
 	U_BOOT_CMD_MKENT(prep, 0, 1, (void *)BOOTM_STATE_OS_PREP, "", ""),
 	U_BOOT_CMD_MKENT(go, 0, 1, (void *)BOOTM_STATE_OS_GO, "", ""),
 	U_BOOT_CMD_MKENT(go, 0, 1, (void *)BOOTM_STATE_OS_GO, "", ""),
 };
 };
@@ -1022,8 +1022,8 @@ U_BOOT_CMD(
 #if defined(CONFIG_OF_LIBFDT)
 #if defined(CONFIG_OF_LIBFDT)
 	"\tfdt     - relocate flat device tree\n"
 	"\tfdt     - relocate flat device tree\n"
 #endif
 #endif
-	"\tbdt     - OS specific bd_t processing\n"
 	"\tcmdline - OS specific command line processing/setup\n"
 	"\tcmdline - OS specific command line processing/setup\n"
+	"\tbdt     - OS specific bd_t processing\n"
 	"\tprep    - OS specific prep before relocation or go\n"
 	"\tprep    - OS specific prep before relocation or go\n"
 	"\tgo      - start OS"
 	"\tgo      - start OS"
 );
 );

+ 2 - 0
cpu/arm920t/s3c24x0/timer.c

@@ -198,6 +198,8 @@ void reset_cpu(ulong ignored)
 	struct s3c24x0_watchdog *watchdog;
 	struct s3c24x0_watchdog *watchdog;
 
 
 #ifdef CONFIG_TRAB
 #ifdef CONFIG_TRAB
+	extern void disable_vfd(void);
+
 	disable_vfd();
 	disable_vfd();
 #endif
 #endif
 
 

+ 1 - 1
cpu/arm_cortexa8/omap3/board.c

@@ -328,7 +328,7 @@ usage:
 
 
 U_BOOT_CMD(
 U_BOOT_CMD(
 	nandecc, 2, 1,	do_switch_ecc,
 	nandecc, 2, 1,	do_switch_ecc,
-	"nandecc - switch OMAP3 NAND ECC calculation algorithm\n",
+	"switch OMAP3 NAND ECC calculation algorithm",
 	"[hw/sw] - Switch between NAND hardware (hw) or software (sw) ecc algorithm"
 	"[hw/sw] - Switch between NAND hardware (hw) or software (sw) ecc algorithm"
 );
 );
 
 

+ 1 - 1
drivers/mtd/nand/nand_util.c

@@ -452,7 +452,7 @@ static size_t get_len_incl_bad (nand_info_t *nand, loff_t offset,
 		len_incl_bad += block_len;
 		len_incl_bad += block_len;
 		offset       += block_len;
 		offset       += block_len;
 
 
-		if ((offset + len_incl_bad) >= nand->size)
+		if (offset >= nand->size)
 			break;
 			break;
 	}
 	}
 
 

+ 2 - 2
drivers/net/smc911x.c

@@ -37,7 +37,7 @@ void pkt_data_push(struct eth_device *dev, u32 addr, u32 val) \
 
 
 #define mdelay(n)       udelay((n)*1000)
 #define mdelay(n)       udelay((n)*1000)
 
 
-static void smx911x_handle_mac_address(struct eth_device *dev)
+static void smc911x_handle_mac_address(struct eth_device *dev)
 {
 {
 	unsigned long addrh, addrl;
 	unsigned long addrh, addrl;
 	uchar *m = dev->enetaddr;
 	uchar *m = dev->enetaddr;
@@ -155,7 +155,7 @@ static int smc911x_init(struct eth_device *dev, bd_t * bd)
 	/* Configure the PHY, initialize the link state */
 	/* Configure the PHY, initialize the link state */
 	smc911x_phy_configure(dev);
 	smc911x_phy_configure(dev);
 
 
-	smx911x_handle_mac_address(dev);
+	smc911x_handle_mac_address(dev);
 
 
 	/* Turn on Tx + Rx */
 	/* Turn on Tx + Rx */
 	smc911x_enable(dev);
 	smc911x_enable(dev);

+ 2 - 0
lib_generic/zlib.c

@@ -30,6 +30,8 @@
 #include <compiler.h>
 #include <compiler.h>
 #include <asm/unaligned.h>
 #include <asm/unaligned.h>
 #include "u-boot/zlib.h"
 #include "u-boot/zlib.h"
+#undef	OFF				/* avoid conflicts */
+
 /* To avoid a build time warning */
 /* To avoid a build time warning */
 #ifdef STDC
 #ifdef STDC
 #include <malloc.h>
 #include <malloc.h>

+ 7 - 6
net/nfs.c

@@ -516,7 +516,7 @@ nfs_readlink_reply (uchar *pkt, unsigned len)
 		strcat (nfs_path, "/");
 		strcat (nfs_path, "/");
 		pathlen = strlen(nfs_path);
 		pathlen = strlen(nfs_path);
 		memcpy (nfs_path+pathlen, (uchar *)&(rpc_pkt.u.reply.data[2]), rlen);
 		memcpy (nfs_path+pathlen, (uchar *)&(rpc_pkt.u.reply.data[2]), rlen);
-		nfs_path[pathlen+rlen+1] = 0;
+		nfs_path[pathlen + rlen] = 0;
 	} else {
 	} else {
 		memcpy (nfs_path, (uchar *)&(rpc_pkt.u.reply.data[2]), rlen);
 		memcpy (nfs_path, (uchar *)&(rpc_pkt.u.reply.data[2]), rlen);
 		nfs_path[rlen] = 0;
 		nfs_path[rlen] = 0;
@@ -571,13 +571,14 @@ Interfaces of U-BOOT
 static void
 static void
 NfsTimeout (void)
 NfsTimeout (void)
 {
 {
-	if ( NfsTimeoutCount++ < NFS_RETRY_COUNT ) {
+	if ( ++NfsTimeoutCount > NFS_RETRY_COUNT ) {
+		puts ("\nRetry count exceeded; starting again\n");
+		NetStartAgain ();
+	} else {
+		puts("T ");
+		NetSetTimeout (NFS_TIMEOUT, NfsTimeout);
 		NfsSend ();
 		NfsSend ();
-		return;
 	}
 	}
-	puts ("Timeout\n");
-	NetState = NETLOOP_FAIL;
-	return;
 }
 }
 
 
 static void
 static void