blob: aad72a9783232a35500d66753b86bcf370497033 [file] [log] [blame]
Harald Krapfenbauer4640c2b2009-08-20 19:20:41 -04001/*
Bin Menga1875592016-02-05 19:30:11 -08002 * U-Boot - main board file
Harald Krapfenbauer4640c2b2009-08-20 19:20:41 -04003 *
4 * Copyright (c) 2005-2009 Analog Devices Inc.
5 *
6 * Licensed under the GPL-2 or later.
7 */
8
9#include <common.h>
10#include <config.h>
11#include <command.h>
12#include <net.h>
13#include <netdev.h>
14#include <asm/blackfin.h>
Mike Frysinger71dcc2c2010-07-24 03:54:19 -040015#include "../cm-bf537e/gpio_cfi_flash.h"
Harald Krapfenbauer4640c2b2009-08-20 19:20:41 -040016
17DECLARE_GLOBAL_DATA_PTR;
18
19int checkboard(void)
20{
21 printf("Board: Bluetechnix CM-BF537U board\n");
22 printf(" Support: http://www.bluetechnix.at/\n");
23 return 0;
24}
25
Harald Krapfenbauerfff18be2011-05-17 15:25:54 -040026#ifndef CONFIG_BFIN_MAC
27# define bfin_EMAC_initialize(x) 1
28#endif
29#ifndef CONFIG_SMC911X
30# define smc911x_initialize(n, x) 1
31#endif
Harald Krapfenbauer4640c2b2009-08-20 19:20:41 -040032int board_eth_init(bd_t *bis)
33{
Harald Krapfenbauerfff18be2011-05-17 15:25:54 -040034 /* return ok if at least 1 eth device works */
35 return bfin_EMAC_initialize(bis) &
36 smc911x_initialize(0, CONFIG_SMC911X_BASE);
Harald Krapfenbauer4640c2b2009-08-20 19:20:41 -040037}
Harald Krapfenbauer4640c2b2009-08-20 19:20:41 -040038
39int misc_init_r(void)
40{
Harald Krapfenbauer4640c2b2009-08-20 19:20:41 -040041 gpio_cfi_flash_init();
42
43 return 0;
44}