David Feng | 3b5458c | 2013-12-14 11:47:37 +0800 | [diff] [blame] | 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 | { |
| 24 | /* |
| 25 | * Clear spin table so that secondary processors |
| 26 | * observe the correct value after waken up from wfe. |
| 27 | */ |
| 28 | *(unsigned long *)CPU_RELEASE_ADDR = 0; |
| 29 | |
| 30 | gd->ram_size = PHYS_SDRAM_1_SIZE; |
| 31 | return 0; |
| 32 | } |
| 33 | |
| 34 | int timer_init(void) |
| 35 | { |
| 36 | return 0; |
| 37 | } |
| 38 | |
| 39 | /* |
| 40 | * Board specific reset that is system reset. |
| 41 | */ |
| 42 | void reset_cpu(ulong addr) |
| 43 | { |
| 44 | } |
| 45 | |
| 46 | /* |
| 47 | * Board specific ethernet initialization routine. |
| 48 | */ |
| 49 | int board_eth_init(bd_t *bis) |
| 50 | { |
| 51 | int rc = 0; |
| 52 | #ifdef CONFIG_SMC91111 |
| 53 | rc = smc91111_initialize(0, CONFIG_SMC91111_BASE); |
| 54 | #endif |
| 55 | return rc; |
| 56 | } |