Mike Frysinger | fa23a1b | 2008-10-12 21:54:07 -0400 | [diff] [blame] | 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> |
Ben Warren | fbfdd3a | 2009-07-20 22:01:11 -0700 | [diff] [blame] | 12 | #include <netdev.h> |
Mike Frysinger | fa23a1b | 2008-10-12 21:54:07 -0400 | [diff] [blame] | 13 | #include <asm/blackfin.h> |
Mike Frysinger | bf5ee18 | 2010-06-02 19:30:15 -0400 | [diff] [blame^] | 14 | #include <asm/portmux.h> |
Mike Frysinger | fa23a1b | 2008-10-12 21:54:07 -0400 | [diff] [blame] | 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 | |
Mike Frysinger | fa23a1b | 2008-10-12 21:54:07 -0400 | [diff] [blame] | 25 | int board_early_init_f(void) |
| 26 | { |
Mike Frysinger | bf5ee18 | 2010-06-02 19:30:15 -0400 | [diff] [blame^] | 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"); |
Mike Frysinger | fa23a1b | 2008-10-12 21:54:07 -0400 | [diff] [blame] | 34 | } |
Ben Warren | fbfdd3a | 2009-07-20 22:01:11 -0700 | [diff] [blame] | 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 | } |