]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/armv7/socfpga/misc.c
Merge branch 'master' of git://git.denx.de/u-boot-tegra
[karo-tx-uboot.git] / arch / arm / cpu / armv7 / socfpga / misc.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/io.h>
9
10 DECLARE_GLOBAL_DATA_PTR;
11
12 int dram_init(void)
13 {
14         gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
15         return 0;
16 }
17
18 #if defined(CONFIG_DISPLAY_CPUINFO)
19 /*
20  * Print CPU information
21  */
22 int print_cpuinfo(void)
23 {
24         puts("CPU   : Altera SOCFPGA Platform\n");
25         return 0;
26 }
27 #endif
28
29 #if defined(CONFIG_SYS_CONSOLE_IS_IN_ENV) && \
30 defined(CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE)
31 int overwrite_console(void)
32 {
33         return 0;
34 }
35 #endif
36
37 int misc_init_r(void)
38 {
39         return 0;
40 }