]>
Commit | Line | Data |
---|---|---|
8b219cf0 | 1 | /* |
a187559e | 2 | * U-Boot - main board file |
8b219cf0 MF |
3 | * |
4 | * Copyright (c) 2005-2008 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> | |
736fead8 | 12 | #include <netdev.h> |
8b219cf0 | 13 | #include <asm/blackfin.h> |
b14fff8d | 14 | #include <asm/portmux.h> |
8b219cf0 MF |
15 | |
16 | DECLARE_GLOBAL_DATA_PTR; | |
17 | ||
18 | int checkboard(void) | |
19 | { | |
20 | printf("Board: Bluetechnix CM-BF548 board\n"); | |
21 | printf(" Support: http://www.bluetechnix.at/\n"); | |
22 | return 0; | |
23 | } | |
24 | ||
8b219cf0 MF |
25 | int board_early_init_f(void) |
26 | { | |
b14fff8d MF |
27 | /* Set async addr lines as peripheral */ |
28 | const unsigned short pins[] = { | |
29 | P_A4, P_A5, P_A6, P_A7, P_A8, P_A9, P_A10, P_A11, P_A12, | |
30 | P_A13, P_A14, P_A15, P_A16, P_A17, P_A18, P_A19, P_A20, | |
31 | P_A21, P_A22, P_A23, P_A24, 0 | |
32 | }; | |
33 | return peripheral_request_list(pins, "async"); | |
8b219cf0 | 34 | } |
736fead8 BW |
35 | |
36 | int board_eth_init(bd_t *bis) | |
37 | { | |
38 | int rc = 0; | |
39 | #ifdef CONFIG_SMC911X | |
40 | rc = smc911x_initialize(0, CONFIG_SMC911X_BASE); | |
41 | #endif | |
42 | return rc; | |
43 | } |