diff options
| author | Wolfgang Denk <wd@denx.de> | 2009-10-15 22:13:37 +0200 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2009-10-15 22:13:37 +0200 | 
| commit | 9efe379a0eb127e616d780533a711f99b52ea64a (patch) | |
| tree | a93be31becad046d17d9bd0a682180dbb811da3d | |
| parent | a380279b2abe130c2d3d2c8de36f8ff98bc6b3b0 (diff) | |
| parent | d087d19a994e741f0ce526124be117c90be482ae (diff) | |
| download | olio-uboot-2014.01-9efe379a0eb127e616d780533a711f99b52ea64a.tar.xz olio-uboot-2014.01-9efe379a0eb127e616d780533a711f99b52ea64a.zip | |
Merge branch 'master' of git://git.denx.de/u-boot-blackfin
| -rw-r--r-- | cpu/blackfin/interrupts.c | 3 | ||||
| -rw-r--r-- | include/asm-blackfin/config.h | 3 | ||||
| -rw-r--r-- | include/asm-blackfin/global_data.h | 1 | ||||
| -rw-r--r-- | lib_blackfin/board.c | 6 | 
4 files changed, 6 insertions, 7 deletions
| diff --git a/cpu/blackfin/interrupts.c b/cpu/blackfin/interrupts.c index bf6fb4b4c..19456e5c1 100644 --- a/cpu/blackfin/interrupts.c +++ b/cpu/blackfin/interrupts.c @@ -20,6 +20,7 @@  #include <common.h>  #include <config.h> +#include <watchdog.h>  #include <asm/blackfin.h>  #include "cpu.h" @@ -70,6 +71,8 @@ void udelay(unsigned long usec)  	cclk = (CONFIG_CCLK_HZ);  	while (usec > 1) { +		WATCHDOG_RESET(); +  		/*  		 * how many clock ticks to delay?  		 *  - request(in useconds) * clock_ticks(Hz) / useconds/second diff --git a/include/asm-blackfin/config.h b/include/asm-blackfin/config.h index 25794dd4b..327843d0b 100644 --- a/include/asm-blackfin/config.h +++ b/include/asm-blackfin/config.h @@ -18,6 +18,9 @@  # define CONFIG_BFIN_SCRATCH_REG retn  #endif +/* Relocation to SDRAM works on all Blackfin boards */ +#define CONFIG_RELOC_FIXUP_WORKS +  /* Make sure the structure is properly aligned */  #if ((CONFIG_SYS_GBL_DATA_ADDR & -4) != CONFIG_SYS_GBL_DATA_ADDR)  # error CONFIG_SYS_GBL_DATA_ADDR: must be 4 byte aligned diff --git a/include/asm-blackfin/global_data.h b/include/asm-blackfin/global_data.h index 3194b72a5..b78b04cd6 100644 --- a/include/asm-blackfin/global_data.h +++ b/include/asm-blackfin/global_data.h @@ -44,7 +44,6 @@ typedef struct global_data {  	unsigned long baudrate;  	unsigned long have_console;	/* serial_init() was called */  	phys_size_t ram_size;		/* RAM size */ -	unsigned long reloc_off;	/* Relocation Offset */  	unsigned long env_addr;	/* Address  of Environment struct */  	unsigned long env_valid;	/* Checksum of Environment valid? */  #if defined(CONFIG_POST) || defined(CONFIG_LOGBUFFER) diff --git a/lib_blackfin/board.c b/lib_blackfin/board.c index 3670d2caa..6cade7d11 100644 --- a/lib_blackfin/board.c +++ b/lib_blackfin/board.c @@ -278,7 +278,6 @@ static void board_net_init_r(bd_t *bd)  	bb_miiphy_init();  #endif  #ifdef CONFIG_CMD_NET -	uchar enetaddr[6];  	char *s;  	if ((s = getenv("bootfile")) != NULL) @@ -288,15 +287,11 @@ static void board_net_init_r(bd_t *bd)  	printf("Net:   ");  	eth_initialize(gd->bd); - -	eth_getenv_enetaddr("ethaddr", enetaddr); -	printf("MAC:   %pM\n", enetaddr);  #endif  }  void board_init_r(gd_t * id, ulong dest_addr)  { -	extern void malloc_bin_reloc(void);  	char *s;  	bd_t *bd;  	gd = id; @@ -310,7 +305,6 @@ void board_init_r(gd_t * id, ulong dest_addr)  	/* initialize malloc() area */  	mem_malloc_init(CONFIG_SYS_MALLOC_BASE, CONFIG_SYS_MALLOC_LEN); -	malloc_bin_reloc();  #if	!defined(CONFIG_SYS_NO_FLASH)  	/* Initialize the flash and protect u-boot by default */ |