Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Zubair Lutfullah Kakakhel | 1d153b3 | 2016-07-29 15:11:20 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Imagination Technologies MIPSfpga platform code |
| 4 | * |
| 5 | * Copyright (C) 2016, Imagination Technologies Ltd. |
| 6 | * |
| 7 | * Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> |
| 8 | * |
Zubair Lutfullah Kakakhel | 1d153b3 | 2016-07-29 15:11:20 +0100 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #include <common.h> |
| 12 | |
Simon Glass | 39f90ba | 2017-03-31 08:40:25 -0600 | [diff] [blame] | 13 | DECLARE_GLOBAL_DATA_PTR; |
| 14 | |
Zubair Lutfullah Kakakhel | 1d153b3 | 2016-07-29 15:11:20 +0100 | [diff] [blame] | 15 | /* initialize the DDR Controller and PHY */ |
Simon Glass | d35f338 | 2017-04-06 12:47:05 -0600 | [diff] [blame] | 16 | int dram_init(void) |
Zubair Lutfullah Kakakhel | 1d153b3 | 2016-07-29 15:11:20 +0100 | [diff] [blame] | 17 | { |
| 18 | /* MIG IP block is smart and doesn't need SW |
| 19 | * to do any init */ |
Simon Glass | 39f90ba | 2017-03-31 08:40:25 -0600 | [diff] [blame] | 20 | gd->ram_size = CONFIG_SYS_SDRAM_SIZE; /* in bytes */ |
| 21 | |
| 22 | return 0; |
Zubair Lutfullah Kakakhel | 1d153b3 | 2016-07-29 15:11:20 +0100 | [diff] [blame] | 23 | } |