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 "../cm-bf537e/gpio_cfi_flash.h"
18 DECLARE_GLOBAL_DATA_PTR;
22 printf("Board: Bluetechnix TCM-BF537 board\n");
23 printf(" Support: http://www.bluetechnix.at/\n");
27 static void board_init_enetaddr(char *var)
31 if (eth_getenv_enetaddr(var, enetaddr))
34 printf("Warning: %s: generating 'random' MAC address\n", var);
35 bfin_gen_rand_mac(enetaddr);
36 eth_setenv_enetaddr(var, enetaddr);
39 #ifndef CONFIG_BFIN_MAC
40 # define bfin_EMAC_initialize(x) 1
42 #ifndef CONFIG_SMC911X
43 # define smc911x_initialize(n, x) 1
45 int board_eth_init(bd_t *bis)
47 /* return ok if at least 1 eth device works */
48 return bfin_EMAC_initialize(bis) &
49 smc911x_initialize(0, CONFIG_SMC911X_BASE);
54 board_init_enetaddr("ethaddr");
55 board_init_enetaddr("eth1addr");
57 gpio_cfi_flash_init();