blob: 576066bef13f3bd06a8b5d93e9206189a0b95462 [file] [log] [blame]
Dinh Nguyen77754402012-10-04 06:46:02 +00001/*
2 * Copyright (C) 2012 Altera Corporation <www.altera.com>
3 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Dinh Nguyen77754402012-10-04 06:46:02 +00005 */
6
7#include <common.h>
8#include <asm/arch/reset_manager.h>
9#include <asm/io.h>
10
11#include <netdev.h>
12
13DECLARE_GLOBAL_DATA_PTR;
14
15/*
16 * Print CPU information
17 */
18int print_cpuinfo(void)
19{
20 puts("CPU : Altera SOCFPGA Platform\n");
21 return 0;
22}
23
24/*
25 * Print Board information
26 */
27int 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 */
36int board_early_init_f(void)
37{
38 return 0;
39}
40
41/*
42 * Miscellaneous platform dependent initialisations
43 */
44int board_init(void)
45{
46 icache_enable();
47 return 0;
48}
49
50int 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)
56int 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 */
66int board_eth_init(bd_t *bis)
67{
68 return 0;
69}