Pragnesh Patel | e00653c | 2020-05-29 11:33:35 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2020 SiFive, Inc |
| 4 | * Pragnesh Patel <pragnesh.patel@sifive.com> |
| 5 | */ |
| 6 | |
| 7 | #include <dm.h> |
| 8 | #include <log.h> |
| 9 | |
Bin Meng | 2b2d9c4 | 2020-08-02 23:09:03 -0700 | [diff] [blame] | 10 | int spl_soc_init(void) |
Pragnesh Patel | e00653c | 2020-05-29 11:33:35 +0530 | [diff] [blame] | 11 | { |
| 12 | int ret; |
| 13 | struct udevice *dev; |
| 14 | |
| 15 | /* DDR init */ |
| 16 | ret = uclass_get_device(UCLASS_RAM, 0, &dev); |
| 17 | if (ret) { |
| 18 | debug("DRAM init failed: %d\n", ret); |
| 19 | return ret; |
| 20 | } |
| 21 | |
| 22 | return 0; |
| 23 | } |