Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Zubair Lutfullah Kakakhel | ebf2b9e | 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 | ebf2b9e | 2016-07-29 15:11:20 +0100 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #include <common.h> |
Simon Glass | 691d719 | 2020-05-10 11:40:02 -0600 | [diff] [blame] | 12 | #include <init.h> |
Simon Glass | 401d1c4 | 2020-10-30 21:38:53 -0600 | [diff] [blame] | 13 | #include <asm/global_data.h> |
Zubair Lutfullah Kakakhel | ebf2b9e | 2016-07-29 15:11:20 +0100 | [diff] [blame] | 14 | |
Simon Glass | 088454c | 2017-03-31 08:40:25 -0600 | [diff] [blame] | 15 | DECLARE_GLOBAL_DATA_PTR; |
| 16 | |
Zubair Lutfullah Kakakhel | ebf2b9e | 2016-07-29 15:11:20 +0100 | [diff] [blame] | 17 | /* initialize the DDR Controller and PHY */ |
Simon Glass | f1683aa | 2017-04-06 12:47:05 -0600 | [diff] [blame] | 18 | int dram_init(void) |
Zubair Lutfullah Kakakhel | ebf2b9e | 2016-07-29 15:11:20 +0100 | [diff] [blame] | 19 | { |
| 20 | /* MIG IP block is smart and doesn't need SW |
| 21 | * to do any init */ |
Tom Rini | aa6e94d | 2022-11-16 13:10:37 -0500 | [diff] [blame] | 22 | gd->ram_size = CFG_SYS_SDRAM_SIZE; /* in bytes */ |
Simon Glass | 088454c | 2017-03-31 08:40:25 -0600 | [diff] [blame] | 23 | |
| 24 | return 0; |
Zubair Lutfullah Kakakhel | ebf2b9e | 2016-07-29 15:11:20 +0100 | [diff] [blame] | 25 | } |