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