u-boot-brain/board/imgtec/xilfpga/xilfpga.c
Simon Glass 088454cde2 board_f: Drop return value from initdram()
At present we cannot use this function as an init sequence call without a
wrapper, since it returns the RAM size. Adjust it to set the RAM size in
global_data instead, and return 0 on success.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
2017-04-05 13:59:20 -04:00

25 lines
467 B
C

/*
* Imagination Technologies MIPSfpga platform code
*
* Copyright (C) 2016, Imagination Technologies Ltd.
*
* Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
*
* SPDX-License-Identifier: GPL-2.0+
*
*/
#include <common.h>
DECLARE_GLOBAL_DATA_PTR;
/* initialize the DDR Controller and PHY */
int initdram(void)
{
/* MIG IP block is smart and doesn't need SW
* to do any init */
gd->ram_size = CONFIG_SYS_SDRAM_SIZE; /* in bytes */
return 0;
}