Mike Frysinger | d014e35 | 2008-10-12 21:41:06 -0400 | [diff] [blame] | 1 | /* |
Bin Meng | 7557405 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 2 | * U-Boot - main board file |
Mike Frysinger | d014e35 | 2008-10-12 21:41:06 -0400 | [diff] [blame] | 3 | * |
| 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 Frysinger | d014e35 | 2008-10-12 21:41:06 -0400 | [diff] [blame] | 15 | #include "gpio_cfi_flash.h" |
| 16 | |
| 17 | DECLARE_GLOBAL_DATA_PTR; |
| 18 | |
| 19 | int checkboard(void) |
| 20 | { |
| 21 | printf("Board: Bluetechnix CM-BF537E board\n"); |
| 22 | printf(" Support: http://www.bluetechnix.at/\n"); |
| 23 | return 0; |
| 24 | } |
| 25 | |
Harald Krapfenbauer | 8ff448d | 2011-05-17 15:25:54 -0400 | [diff] [blame] | 26 | #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 |
Mike Frysinger | d014e35 | 2008-10-12 21:41:06 -0400 | [diff] [blame] | 32 | int board_eth_init(bd_t *bis) |
| 33 | { |
Harald Krapfenbauer | 8ff448d | 2011-05-17 15:25:54 -0400 | [diff] [blame] | 34 | /* return ok if at least 1 eth device works */ |
| 35 | return bfin_EMAC_initialize(bis) & |
| 36 | smc911x_initialize(0, CONFIG_SMC911X_BASE); |
Mike Frysinger | d014e35 | 2008-10-12 21:41:06 -0400 | [diff] [blame] | 37 | } |
Mike Frysinger | d014e35 | 2008-10-12 21:41:06 -0400 | [diff] [blame] | 38 | |
| 39 | int misc_init_r(void) |
| 40 | { |
Mike Frysinger | d014e35 | 2008-10-12 21:41:06 -0400 | [diff] [blame] | 41 | gpio_cfi_flash_init(); |
| 42 | |
| 43 | return 0; |
| 44 | } |