]>
Commit | Line | Data |
---|---|---|
12916829 DF |
1 | /* |
2 | * (C) Copyright 2013 | |
3 | * David Feng <fenghua@phytium.com.cn> | |
4 | * Sharma Bhupesh <bhupesh.sharma@freescale.com> | |
5 | * | |
6 | * SPDX-License-Identifier: GPL-2.0+ | |
7 | */ | |
8 | #include <common.h> | |
9 | #include <malloc.h> | |
10 | #include <errno.h> | |
11 | #include <netdev.h> | |
12 | #include <asm/io.h> | |
13 | #include <linux/compiler.h> | |
14 | ||
15 | DECLARE_GLOBAL_DATA_PTR; | |
16 | ||
17 | int board_init(void) | |
18 | { | |
19 | return 0; | |
20 | } | |
21 | ||
22 | int dram_init(void) | |
23 | { | |
12916829 DF |
24 | gd->ram_size = PHYS_SDRAM_1_SIZE; |
25 | return 0; | |
26 | } | |
27 | ||
12916829 DF |
28 | /* |
29 | * Board specific reset that is system reset. | |
30 | */ | |
31 | void reset_cpu(ulong addr) | |
32 | { | |
33 | } | |
34 | ||
35 | /* | |
36 | * Board specific ethernet initialization routine. | |
37 | */ | |
38 | int board_eth_init(bd_t *bis) | |
39 | { | |
40 | int rc = 0; | |
41 | #ifdef CONFIG_SMC91111 | |
42 | rc = smc91111_initialize(0, CONFIG_SMC91111_BASE); | |
b31f9d7a LW |
43 | #endif |
44 | #ifdef CONFIG_SMC911X | |
45 | rc = smc911x_initialize(0, CONFIG_SMC911X_BASE); | |
12916829 DF |
46 | #endif |
47 | return rc; | |
48 | } |