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/arch/reset_manager.h> |
| 9 | #include <asm/io.h> |
| 10 | |
| 11 | #include <netdev.h> |
| 12 | |
| 13 | DECLARE_GLOBAL_DATA_PTR; |
| 14 | |
Dinh Nguyen | ad51f7c | 2012-10-04 06:46:02 +0000 | [diff] [blame] | 15 | /* |
| 16 | * Print Board information |
| 17 | */ |
| 18 | int checkboard(void) |
| 19 | { |
Marek Vasut | a6b59a1 | 2014-09-08 14:08:45 +0200 | [diff] [blame] | 20 | puts("BOARD: Altera SoCFPGA Cyclone5 Board\n"); |
Dinh Nguyen | ad51f7c | 2012-10-04 06:46:02 +0000 | [diff] [blame] | 21 | return 0; |
| 22 | } |
| 23 | |
| 24 | /* |
| 25 | * Initialization function which happen at early stage of c code |
| 26 | */ |
| 27 | int board_early_init_f(void) |
| 28 | { |
| 29 | return 0; |
| 30 | } |
| 31 | |
| 32 | /* |
| 33 | * Miscellaneous platform dependent initialisations |
| 34 | */ |
| 35 | int board_init(void) |
| 36 | { |
Pavel Machek | 26ea1d9 | 2014-09-08 14:08:45 +0200 | [diff] [blame] | 37 | /* Address of boot parameters for ATAG (if ATAG is used) */ |
| 38 | gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; |
| 39 | |
Dinh Nguyen | ad51f7c | 2012-10-04 06:46:02 +0000 | [diff] [blame] | 40 | return 0; |
| 41 | } |