mirror of
https://xff.cz/git/u-boot/
synced 2025-09-30 23:11:32 +02:00
When bringing in the series 'arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"' I failed to notice that b4 noticed it was based on next and so took that as the base commit and merged that part of next to master. This reverts commitc8ffd1356d
, reversing changes made to2ee6f3a5f7
. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
46 lines
780 B
C
46 lines
780 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright (C) 2018 MediaTek Inc.
|
|
* Author: Ryder Lee <ryder.lee@mediatek.com>
|
|
*/
|
|
|
|
#include <clk.h>
|
|
#include <common.h>
|
|
#include <hang.h>
|
|
#include <init.h>
|
|
#include <spl.h>
|
|
|
|
#include "init.h"
|
|
|
|
void board_init_f(ulong dummy)
|
|
{
|
|
int ret;
|
|
|
|
ret = spl_early_init();
|
|
if (ret)
|
|
hang();
|
|
|
|
/* enable console uart printing */
|
|
preloader_console_init();
|
|
|
|
/* soc early initialization */
|
|
ret = mtk_soc_early_init();
|
|
if (ret)
|
|
hang();
|
|
}
|
|
|
|
u32 spl_boot_device(void)
|
|
{
|
|
#if defined(CONFIG_SPL_SPI)
|
|
return BOOT_DEVICE_SPI;
|
|
#elif defined(CONFIG_SPL_MMC)
|
|
return BOOT_DEVICE_MMC1;
|
|
#elif defined(CONFIG_SPL_NAND_SUPPORT)
|
|
return BOOT_DEVICE_NAND;
|
|
#elif defined(CONFIG_SPL_NOR_SUPPORT)
|
|
return BOOT_DEVICE_NOR;
|
|
#else
|
|
return BOOT_DEVICE_NONE;
|
|
#endif
|
|
}
|