1
2
3
4
5
6
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/gpio.h>
15#include <asm/portmux.h>
16#include <asm/sdh.h>
17
18DECLARE_GLOBAL_DATA_PTR;
19
20int checkboard(void)
21{
22 printf("Board: ADI BF548 EZ-Kit board\n");
23 printf(" Support: http://blackfin.uclinux.org/\n");
24 return 0;
25}
26
27int board_early_init_f(void)
28{
29
30 const unsigned short pins[] = {
31 P_A4, P_A5, P_A6, P_A7, P_A8, P_A9, P_A10, P_A11, P_A12,
32 P_A13, P_A14, P_A15, P_A16, P_A17, P_A18, P_A19, P_A20,
33 P_A21, P_A22, P_A23, P_A24, 0
34 };
35 return peripheral_request_list(pins, "async");
36}
37
38#ifdef CONFIG_SMC911X
39int board_eth_init(bd_t *bis)
40{
41 return smc911x_initialize(0, CONFIG_SMC911X_BASE);
42}
43#endif
44
45#ifdef CONFIG_BFIN_SDH
46int board_mmc_init(bd_t *bis)
47{
48 return bfin_mmc_init(bis);
49}
50#endif
51
52#ifdef CONFIG_USB_BLACKFIN
53void board_musb_init(void)
54{
55
56
57
58
59
60
61 gpio_request(GPIO_PE7, "musb-vbus");
62 gpio_direction_output(GPIO_PE7, 1);
63}
64#endif
65