Dinh Nguyen | 7775440 | 2012-10-04 06:46:02 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 Altera Corporation <www.altera.com> |
| 3 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Dinh Nguyen | 7775440 | 2012-10-04 06:46:02 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | #include <asm/arch/reset_manager.h> |
| 9 | #include <asm/io.h> |
| 10 | |
| 11 | #include <netdev.h> |
| 12 | |
| 13 | DECLARE_GLOBAL_DATA_PTR; |
| 14 | |
Masahiro Yamada | 365475e | 2014-02-13 18:30:26 +0900 | [diff] [blame^] | 15 | #if defined(CONFIG_DISPLAY_CPUINFO) |
Dinh Nguyen | 7775440 | 2012-10-04 06:46:02 +0000 | [diff] [blame] | 16 | /* |
| 17 | * Print CPU information |
| 18 | */ |
| 19 | int print_cpuinfo(void) |
| 20 | { |
| 21 | puts("CPU : Altera SOCFPGA Platform\n"); |
| 22 | return 0; |
| 23 | } |
Masahiro Yamada | 365475e | 2014-02-13 18:30:26 +0900 | [diff] [blame^] | 24 | #endif |
Dinh Nguyen | 7775440 | 2012-10-04 06:46:02 +0000 | [diff] [blame] | 25 | |
| 26 | /* |
| 27 | * Print Board information |
| 28 | */ |
| 29 | int checkboard(void) |
| 30 | { |
| 31 | puts("BOARD : Altera SOCFPGA Cyclone5 Board\n"); |
| 32 | return 0; |
| 33 | } |
| 34 | |
| 35 | /* |
| 36 | * Initialization function which happen at early stage of c code |
| 37 | */ |
| 38 | int board_early_init_f(void) |
| 39 | { |
| 40 | return 0; |
| 41 | } |
| 42 | |
| 43 | /* |
| 44 | * Miscellaneous platform dependent initialisations |
| 45 | */ |
| 46 | int board_init(void) |
| 47 | { |
| 48 | icache_enable(); |
| 49 | return 0; |
| 50 | } |
| 51 | |
| 52 | int misc_init_r(void) |
| 53 | { |
| 54 | return 0; |
| 55 | } |
| 56 | |
| 57 | #if defined(CONFIG_SYS_CONSOLE_IS_IN_ENV) && defined(CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE) |
| 58 | int overwrite_console(void) |
| 59 | { |
| 60 | return 0; |
| 61 | } |
| 62 | #endif |
| 63 | |
| 64 | /* |
| 65 | * DesignWare Ethernet initialization |
| 66 | */ |
| 67 | /* We know all the init functions have been run now */ |
| 68 | int board_eth_init(bd_t *bis) |
| 69 | { |
| 70 | return 0; |
| 71 | } |