Bin Meng | 8a8694d | 2018-09-26 06:55:21 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com> |
| 4 | */ |
| 5 | |
Bin Meng | 8a8694d | 2018-09-26 06:55:21 -0700 | [diff] [blame] | 6 | #include <fdtdec.h> |
Simon Glass | 6980b6b | 2019-11-14 12:57:45 -0700 | [diff] [blame] | 7 | #include <init.h> |
Simon Glass | 3ba929a | 2020-10-30 21:38:53 -0600 | [diff] [blame] | 8 | #include <asm/global_data.h> |
Anup Patel | 0bbe9cf | 2019-02-25 08:14:30 +0000 | [diff] [blame] | 9 | #include <linux/sizes.h> |
| 10 | |
| 11 | DECLARE_GLOBAL_DATA_PTR; |
Bin Meng | 8a8694d | 2018-09-26 06:55:21 -0700 | [diff] [blame] | 12 | |
| 13 | int dram_init(void) |
| 14 | { |
| 15 | return fdtdec_setup_mem_size_base(); |
| 16 | } |
| 17 | |
| 18 | int dram_init_banksize(void) |
| 19 | { |
| 20 | return fdtdec_setup_memory_banksize(); |
| 21 | } |