blob: 90ce4c3eb766f7b128fecb24b171ee6382490639 [file] [log] [blame]
Mike Frysinger8b219cf2008-10-12 21:54:07 -04001/*
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>
Ben Warren736fead2009-07-20 22:01:11 -070012#include <netdev.h>
Mike Frysinger8b219cf2008-10-12 21:54:07 -040013#include <asm/blackfin.h>
Mike Frysingerb14fff82010-06-02 19:30:15 -040014#include <asm/portmux.h>
Mike Frysinger8b219cf2008-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 Frysinger8b219cf2008-10-12 21:54:07 -040025int board_early_init_f(void)
26{
Mike Frysingerb14fff82010-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 Frysinger8b219cf2008-10-12 21:54:07 -040034}
Ben Warren736fead2009-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}