]> git.ipfire.org Git - thirdparty/u-boot.git/blob - board/altera/socfpga_cyclone5/socfpga_cyclone5.c
Add GPL-2.0+ SPDX-License-Identifier to source files
[thirdparty/u-boot.git] / board / altera / socfpga_cyclone5 / socfpga_cyclone5.c
1 /*
2 * Copyright (C) 2012 Altera Corporation <www.altera.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
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
15 /*
16 * Print CPU information
17 */
18 int print_cpuinfo(void)
19 {
20 puts("CPU : Altera SOCFPGA Platform\n");
21 return 0;
22 }
23
24 /*
25 * Print Board information
26 */
27 int checkboard(void)
28 {
29 puts("BOARD : Altera SOCFPGA Cyclone5 Board\n");
30 return 0;
31 }
32
33 /*
34 * Initialization function which happen at early stage of c code
35 */
36 int board_early_init_f(void)
37 {
38 return 0;
39 }
40
41 /*
42 * Miscellaneous platform dependent initialisations
43 */
44 int board_init(void)
45 {
46 icache_enable();
47 return 0;
48 }
49
50 int misc_init_r(void)
51 {
52 return 0;
53 }
54
55 #if defined(CONFIG_SYS_CONSOLE_IS_IN_ENV) && defined(CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE)
56 int overwrite_console(void)
57 {
58 return 0;
59 }
60 #endif
61
62 /*
63 * DesignWare Ethernet initialization
64 */
65 /* We know all the init functions have been run now */
66 int board_eth_init(bd_t *bis)
67 {
68 return 0;
69 }