xilfpga.c (52c411805c090999f015df8bdf8016fb684746d0) xilfpga.c (088454cde245b4d431ce0181be8b3cbceea059d6)
1/*
2 * Imagination Technologies MIPSfpga platform code
3 *
4 * Copyright (C) 2016, Imagination Technologies Ltd.
5 *
6 * Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
7 *
8 * SPDX-License-Identifier: GPL-2.0+
9 *
10 */
11
12#include <common.h>
13
1/*
2 * Imagination Technologies MIPSfpga platform code
3 *
4 * Copyright (C) 2016, Imagination Technologies Ltd.
5 *
6 * Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
7 *
8 * SPDX-License-Identifier: GPL-2.0+
9 *
10 */
11
12#include <common.h>
13
14DECLARE_GLOBAL_DATA_PTR;
15
14/* initialize the DDR Controller and PHY */
16/* initialize the DDR Controller and PHY */
15phys_size_t initdram(void)
17int initdram(void)
16{
17 /* MIG IP block is smart and doesn't need SW
18 * to do any init */
18{
19 /* MIG IP block is smart and doesn't need SW
20 * to do any init */
19 return CONFIG_SYS_SDRAM_SIZE; /* in bytes */
21 gd->ram_size = CONFIG_SYS_SDRAM_SIZE; /* in bytes */
22
23 return 0;
20}
24}