diff options
| author | Stefan Roese <sr@denx.de> | 2007-08-14 16:36:29 +0200 | 
|---|---|---|
| committer | Stefan Roese <sr@denx.de> | 2007-08-14 16:36:29 +0200 | 
| commit | 3b3bff4cbf2cb14f9a3e7d03f26ebab900efe4ae (patch) | |
| tree | fb66bf8861d9f78765160d734a438856f5317cdb /lib_arm/board.c | |
| parent | 4ce846ec59f36b85d6644a769690ad3feb667575 (diff) | |
| parent | 4ef35e53c693556c54b0c22d6f873de87bade253 (diff) | |
| download | olio-uboot-2014.01-3b3bff4cbf2cb14f9a3e7d03f26ebab900efe4ae.tar.xz olio-uboot-2014.01-3b3bff4cbf2cb14f9a3e7d03f26ebab900efe4ae.zip | |
Merge with git://www.denx.de/git/u-boot.git
Diffstat (limited to 'lib_arm/board.c')
| -rw-r--r-- | lib_arm/board.c | 17 | 
1 files changed, 12 insertions, 5 deletions
| diff --git a/lib_arm/board.c b/lib_arm/board.c index babc2543e..d37e5dab3 100644 --- a/lib_arm/board.c +++ b/lib_arm/board.c @@ -54,7 +54,7 @@  DECLARE_GLOBAL_DATA_PTR; -#if (CONFIG_COMMANDS & CFG_CMD_NAND) +#if defined(CONFIG_CMD_NAND)  void nand_init (void);  #endif @@ -296,7 +296,7 @@ void start_armboot (void)  	/* armboot_start is defined in the board-specific linker script */  	mem_malloc_init (_armboot_start - CFG_MALLOC_LEN); -#if (CONFIG_COMMANDS & CFG_CMD_NAND) +#if defined(CONFIG_CMD_NAND)  	puts ("NAND:  ");  	nand_init();		/* go init the NAND */  #endif @@ -364,6 +364,13 @@ void start_armboot (void)  	enable_interrupts ();  	/* Perform network card initialisation if necessary */ +#ifdef CONFIG_DRIVER_TI_EMAC +extern void dm644x_eth_set_mac_addr (const u_int8_t *addr); +	if (getenv ("ethaddr")) { +		dm644x_eth_set_mac_addr(gd->bd->bi_enetaddr); +	} +#endif +  #ifdef CONFIG_DRIVER_CS8900  	cs8900_get_enetaddr (gd->bd->bi_enetaddr);  #endif @@ -378,16 +385,16 @@ void start_armboot (void)  	if ((s = getenv ("loadaddr")) != NULL) {  		load_addr = simple_strtoul (s, NULL, 16);  	} -#if (CONFIG_COMMANDS & CFG_CMD_NET) +#if defined(CONFIG_CMD_NET)  	if ((s = getenv ("bootfile")) != NULL) {  		copy_filename (BootFile, s, sizeof (BootFile));  	} -#endif	/* CFG_CMD_NET */ +#endif  #ifdef BOARD_LATE_INIT  	board_late_init ();  #endif -#if (CONFIG_COMMANDS & CFG_CMD_NET) +#if defined(CONFIG_CMD_NET)  #if defined(CONFIG_NET_MULTI)  	puts ("Net:   ");  #endif |