blob: 5268f2c7082a37a4ff300292b49c2bd10c99d200 [file] [log] [blame]
Dinh Nguyenad51f7c2012-10-04 06:46:02 +00001/*
2 * Copyright (C) 2012 Altera Corporation <www.altera.com>
3 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Dinh Nguyenad51f7c2012-10-04 06:46:02 +00005 */
6
7#include <common.h>
8#include <asm/io.h>
Dinh Nguyenad51f7c2012-10-04 06:46:02 +00009
10DECLARE_GLOBAL_DATA_PTR;
11
Dinh Nguyenad51f7c2012-10-04 06:46:02 +000012int dram_init(void)
13{
14 gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
15 return 0;
16}
Chin Liang Seebff262c2014-06-10 02:23:45 -050017
18#if defined(CONFIG_DISPLAY_CPUINFO)
19/*
20 * Print CPU information
21 */
22int 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) && \
30defined(CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE)
31int overwrite_console(void)
32{
33 return 0;
34}
35#endif
36
37int misc_init_r(void)
38{
39 return 0;
40}