mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 08:57:58 +00:00
e87c869db3
Add support for Schneider Electric RZ/N1D and RZ/N1S boards, which are based on the Reneasas RZ/N1 SoC devices. The intention is to support both boards using a single defconfig, and to handle the differences at runtime. Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org> Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
31 lines
499 B
C
31 lines
499 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
#include <common.h>
|
|
#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;
|
|
}
|