blob: d9d018bfbcd16dcfd3252fc5d818fa4860f61e92 [file] [log] [blame]
Mike Frysingerfa23a1b2008-10-12 21:54:07 -04001/*
Bin Meng75574052016-02-05 19:30:11 -08002 * U-Boot - main board file
Mike Frysingerfa23a1b2008-10-12 21:54:07 -04003 *
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>
Ben Warrenfbfdd3a2009-07-20 22:01:11 -070012#include <netdev.h>
Mike Frysingerfa23a1b2008-10-12 21:54:07 -040013#include <asm/blackfin.h>
Mike Frysingerbf5ee182010-06-02 19:30:15 -040014#include <asm/portmux.h>
Mike Frysingerfa23a1b2008-10-12 21:54:07 -040015
16DECLARE_GLOBAL_DATA_PTR;
17
18int checkboard(void)
19{
20 printf("Board: Bluetechnix CM-BF548 board\n");
21 printf(" Support: http://www.bluetechnix.at/\n");
22 return 0;
23}
24
Mike Frysingerfa23a1b2008-10-12 21:54:07 -040025int board_early_init_f(void)
26{
Mike Frysingerbf5ee182010-06-02 19:30:15 -040027 /* 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");
Mike Frysingerfa23a1b2008-10-12 21:54:07 -040034}
Ben Warrenfbfdd3a2009-07-20 22:01:11 -070035
36int 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}