mirror of
https://github.com/smaeul/u-boot.git
synced 2025-09-15 22:46:01 +01:00
As part of bringing the master branch back in to next, we need to allow for all of these changes to exist here. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
31 lines
479 B
C
31 lines
479 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
#include <dm.h>
|
|
#include <ram.h>
|
|
#include <asm/global_data.h>
|
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
int board_init(void)
|
|
{
|
|
gd->bd->bi_boot_params = gd->ram_base + 0x100;
|
|
|
|
return 0;
|
|
}
|
|
|
|
int dram_init(void)
|
|
{
|
|
struct udevice *dev;
|
|
int err;
|
|
|
|
/*
|
|
* This will end up calling cadence_ddr_probe(),
|
|
* and will also update gd->ram_size.
|
|
*/
|
|
err = uclass_get_device(UCLASS_RAM, 0, &dev);
|
|
if (err)
|
|
debug("DRAM init failed: %d\n", err);
|
|
|
|
return err;
|
|
}
|