smaeul-u-boot/board/sunxi/board-riscv.c
Samuel Holland 09e4ce4e25 sunxi: Add a U-Boot port for the Allwinner D1 Nezha
Signed-off-by: Samuel Holland <samuel@sholland.org>
2022-05-26 22:25:59 -05:00

24 lines
387 B
C

#include <common.h>
#include <cpu.h>
#include <spl.h>
DECLARE_GLOBAL_DATA_PTR;
void *board_fdt_blob_setup(int *err)
{
*err = 0;
return (void *)(ulong)gd->arch.firmware_fdt_addr;
}
int board_init(void)
{
/* https://lore.kernel.org/u-boot/31587574-4cd1-02da-9761-0134ac82b94b@sholland.org/ */
return cpu_probe_all();
}
uint32_t spl_boot_device(void)
{
return BOOT_DEVICE_MMC1;
}