Dinh Nguyen | ad51f7c | 2012-10-04 06:46:02 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 Altera Corporation <www.altera.com> |
| 3 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Dinh Nguyen | ad51f7c | 2012-10-04 06:46:02 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | #include <asm/io.h> |
Dinh Nguyen | ad51f7c | 2012-10-04 06:46:02 +0000 | [diff] [blame] | 9 | |
| 10 | DECLARE_GLOBAL_DATA_PTR; |
| 11 | |
Dinh Nguyen | ad51f7c | 2012-10-04 06:46:02 +0000 | [diff] [blame] | 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 | } |
Chin Liang See | bff262c | 2014-06-10 02:23:45 -0500 | [diff] [blame^] | 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 | } |