Simon Glass | 1b40863 | 2017-01-16 07:04:08 -0700 | [diff] [blame] | 1 | /* |
2 | * Copyright (c) 2016 Google, Inc | ||||
3 | * | ||||
4 | * SPDX-License-Identifier: GPL-2.0 | ||||
5 | */ | ||||
6 | |||||
7 | #include <common.h> | ||||
8 | |||||
9 | DECLARE_GLOBAL_DATA_PTR; | ||||
10 | |||||
11 | int dram_init(void) | ||||
12 | { | ||||
13 | gd->ram_size = 1ULL << 31; | ||||
14 | gd->bd->bi_dram[0].start = 0; | ||||
15 | gd->bd->bi_dram[0].size = gd->ram_size; | ||||
16 | |||||
17 | return 0; | ||||
18 | } |