Tom Rini | 855ff8e | 2018-05-18 17:54:39 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Jagan Teki | 1494cc8 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2018 Simone CIANNI <simone.cianni@bticino.it> |
| 4 | * Copyright (C) 2018 Raffaele RECALCATI <raffaele.recalcati@bticino.it> |
| 5 | * Copyright (C) 2018 Jagan Teki <jagan@amarulasolutions.com> |
Jagan Teki | 1494cc8 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include <common.h> |
Simon Glass | 691d719 | 2020-05-10 11:40:02 -0600 | [diff] [blame] | 9 | #include <init.h> |
Jagan Teki | 1494cc8 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 10 | #include <asm/arch/sys_proto.h> |
Simon Glass | 401d1c4 | 2020-10-30 21:38:53 -0600 | [diff] [blame] | 11 | #include <asm/global_data.h> |
Jagan Teki | 1494cc8 | 2018-05-07 11:21:34 +0530 | [diff] [blame] | 12 | |
| 13 | DECLARE_GLOBAL_DATA_PTR; |
| 14 | |
| 15 | int board_init(void) |
| 16 | { |
| 17 | /* Address of boot parameters */ |
| 18 | gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; |
| 19 | |
| 20 | return 0; |
| 21 | } |
| 22 | |
| 23 | int dram_init(void) |
| 24 | { |
| 25 | gd->ram_size = imx_ddr_size(); |
| 26 | |
| 27 | return 0; |
| 28 | } |