mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-20 11:43:22 +00:00
34 lines
474 B
C
34 lines
474 B
C
|
/*
|
||
|
* Copyright (c) 2017 Tuomas Tynkkynen
|
||
|
*
|
||
|
* SPDX-License-Identifier: GPL-2.0+
|
||
|
*/
|
||
|
#include <common.h>
|
||
|
#include <fdtdec.h>
|
||
|
|
||
|
int board_init(void)
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
int dram_init(void)
|
||
|
{
|
||
|
if (fdtdec_setup_memory_size() != 0)
|
||
|
return -EINVAL;
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
int dram_init_banksize(void)
|
||
|
{
|
||
|
fdtdec_setup_memory_banksize();
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
void *board_fdt_blob_setup(void)
|
||
|
{
|
||
|
/* QEMU loads a generated DTB for us at the start of RAM. */
|
||
|
return (void *)CONFIG_SYS_SDRAM_BASE;
|
||
|
}
|