1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2017 Rockchip Electronics Co., Ltd
10 #include <asm/arch-rockchip/hardware.h>
12 u32 spl_boot_device(void)
14 return BOOT_DEVICE_MMC1;
17 u32 spl_boot_mode(const u32 boot_device)
19 return MMCSD_MODE_RAW;
22 #define SGRF_DDR_CON0 0x10150000
23 void board_init_f(ulong dummy)
27 ret = spl_early_init();
29 printf("spl_early_init() failed: %d\n", ret);
32 preloader_console_init();
34 /* Disable the ddr secure region setting to make it non-secure */
35 rk_clrreg(SGRF_DDR_CON0, 0x4000);
38 #ifdef CONFIG_SPL_LOAD_FIT
39 int board_fit_config_name_match(const char *name)
41 /* Just empty function now - can't decide what to choose */
42 debug("%s: %s\n", __func__, name);