]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/altera/socfpga/socfpga_cyclone5.c
Merge branch 'master' of git://git.denx.de/u-boot-spi
[karo-tx-uboot.git] / board / altera / socfpga / 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 #if defined(CONFIG_DISPLAY_CPUINFO)
16 /*
17  * Print CPU information
18  */
19 int print_cpuinfo(void)
20 {
21         puts("CPU   : Altera SOCFPGA Platform\n");
22         return 0;
23 }
24 #endif
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 }