2 * U-boot - main board file
4 * Copyright (c) 2005-2009 Analog Devices Inc.
6 * Licensed under the GPL-2 or later.
14 #include <asm/blackfin.h>
16 #include "gpio_cfi_flash.h"
18 DECLARE_GLOBAL_DATA_PTR;
22 printf("Board: Bluetechnix CM-BF537E board\n");
23 printf(" Support: http://www.bluetechnix.at/\n");
27 static void board_init_enetaddr(char *var)
29 #ifdef CONFIG_NET_MULTI
32 if (eth_getenv_enetaddr(var, enetaddr))
35 printf("Warning: %s: generating 'random' MAC address\n", var);
36 bfin_gen_rand_mac(enetaddr);
37 eth_setenv_enetaddr(var, enetaddr);
41 #ifndef CONFIG_BFIN_MAC
42 # define bfin_EMAC_initialize(x) 1
44 #ifndef CONFIG_SMC911X
45 # define smc911x_initialize(n, x) 1
47 int board_eth_init(bd_t *bis)
49 /* return ok if at least 1 eth device works */
50 return bfin_EMAC_initialize(bis) &
51 smc911x_initialize(0, CONFIG_SMC911X_BASE);
56 board_init_enetaddr("ethaddr");
57 board_init_enetaddr("eth1addr");
59 gpio_cfi_flash_init();