blob: 0b68bbde50fcb8cdf979aac8c9749220ba608a44 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Zubair Lutfullah Kakakhelebf2b9e2016-07-29 15:11:20 +01002/*
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 Kakakhelebf2b9e2016-07-29 15:11:20 +01009 */
10
11#include <common.h>
Simon Glass691d7192020-05-10 11:40:02 -060012#include <init.h>
Zubair Lutfullah Kakakhelebf2b9e2016-07-29 15:11:20 +010013
Simon Glass088454c2017-03-31 08:40:25 -060014DECLARE_GLOBAL_DATA_PTR;
15
Zubair Lutfullah Kakakhelebf2b9e2016-07-29 15:11:20 +010016/* initialize the DDR Controller and PHY */
Simon Glassf1683aa2017-04-06 12:47:05 -060017int dram_init(void)
Zubair Lutfullah Kakakhelebf2b9e2016-07-29 15:11:20 +010018{
19 /* MIG IP block is smart and doesn't need SW
20 * to do any init */
Simon Glass088454c2017-03-31 08:40:25 -060021 gd->ram_size = CONFIG_SYS_SDRAM_SIZE; /* in bytes */
22
23 return 0;
Zubair Lutfullah Kakakhelebf2b9e2016-07-29 15:11:20 +010024}