]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/cm-bf548/cm-bf548.c
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx
[karo-tx-uboot.git] / board / cm-bf548 / cm-bf548.c
1 /*
2  * U-boot - main board file
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>
12 #include <netdev.h>
13 #include <asm/blackfin.h>
14 #include <asm/portmux.h>
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
25 int board_early_init_f(void)
26 {
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");
34 }
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 }