blob: 6ad7e31092b351bdabb6ad1aee029efb4ffcc0cf [file] [log] [blame]
Tom Riniaf489482018-05-18 17:54:39 -04001// SPDX-License-Identifier: GPL-2.0+
Jagan Tekie0142752018-05-07 11:21:34 +05302/*
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 Tekie0142752018-05-07 11:21:34 +05306 */
7
8#include <common.h>
9#include <asm/arch/sys_proto.h>
10
11DECLARE_GLOBAL_DATA_PTR;
12
13int board_init(void)
14{
15 /* Address of boot parameters */
16 gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
17
18 return 0;
19}
20
21int dram_init(void)
22{
23 gd->ram_size = imx_ddr_size();
24
25 return 0;
26}