]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | // SPDX-License-Identifier: GPL-2.0+ |
1d3d0f1f WW |
2 | /* |
3 | * Copyright (C) 2015-2016 Wills Wang <[email protected]> | |
1d3d0f1f WW |
4 | */ |
5 | ||
6 | #include <common.h> | |
9b4a205f | 7 | #include <init.h> |
401d1c4f | 8 | #include <asm/global_data.h> |
1d3d0f1f WW |
9 | #include <linux/sizes.h> |
10 | #include <asm/addrspace.h> | |
11 | #include <mach/ddr.h> | |
12 | ||
088454cd SG |
13 | DECLARE_GLOBAL_DATA_PTR; |
14 | ||
f1683aa7 | 15 | int dram_init(void) |
1d3d0f1f WW |
16 | { |
17 | ddr_tap_tuning(); | |
088454cd SG |
18 | gd->ram_size = get_ram_size((void *)KSEG1, SZ_256M); |
19 | ||
20 | return 0; | |
1d3d0f1f | 21 | } |