u-boot/board/gaisler/grsim_leon2/grsim_leon2.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

29 lines
379 B
C

/*
* GRSIM/TSIM board
*
* (C) Copyright 2007
* Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <asm/leon.h>
int initdram(void)
{
/* Does not set gd->ram_size here */
return 0;
}
int checkboard(void)
{
puts("Board: GRSIM/TSIM LEON2\n");
return 0;
}
int misc_init_r(void)
{
return 0;
}