1 // SPDX-License-Identifier: GPL-2.0+ 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 * 9 */ 10 11 #include <common.h> 12 #include <init.h> 13 #include <asm/global_data.h> 14 15 DECLARE_GLOBAL_DATA_PTR; 16 17 /* initialize the DDR Controller and PHY */ dram_init(void)18int dram_init(void) 19 { 20 /* MIG IP block is smart and doesn't need SW 21 * to do any init */ 22 gd->ram_size = CONFIG_SYS_SDRAM_SIZE; /* in bytes */ 23 24 return 0; 25 } 26