blob: 51dfe23f94d0711a073c83d436e689436dd1956d [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0
Simon Glass78a20d22017-01-16 07:04:08 -07002/*
3 * Copyright (c) 2016 Google, Inc
Simon Glass78a20d22017-01-16 07:04:08 -07004 */
5
6#include <common.h>
Simon Glass97589732020-05-10 11:40:02 -06007#include <init.h>
Simon Glass3ba929a2020-10-30 21:38:53 -06008#include <asm/global_data.h>
Simon Glass78a20d22017-01-16 07:04:08 -07009
10DECLARE_GLOBAL_DATA_PTR;
11
12int dram_init(void)
13{
14 gd->ram_size = 1ULL << 31;
15 gd->bd->bi_dram[0].start = 0;
16 gd->bd->bi_dram[0].size = gd->ram_size;
17
18 return 0;
19}