blob: 71497b8ab1e8672f8cbe584f18ec8131b9a7001b [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
Simon Glass97589732020-05-10 11:40:02 -06008#include <init.h>
Jagan Tekie0142752018-05-07 11:21:34 +05309#include <asm/arch/sys_proto.h>
Simon Glass3ba929a2020-10-30 21:38:53 -060010#include <asm/global_data.h>
Jagan Tekie0142752018-05-07 11:21:34 +053011
12DECLARE_GLOBAL_DATA_PTR;
13
14int board_init(void)
15{
16 /* Address of boot parameters */
17 gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
18
19 return 0;
20}
21
22int dram_init(void)
23{
24 gd->ram_size = imx_ddr_size();
25
26 return 0;
27}