xref: /OK3568_Linux_fs/u-boot/drivers/ram/rockchip/sdram_rk3568.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * (C) Copyright 2020 Rockchip Electronics Co., Ltd.
4  */
5 
6 #include <common.h>
7 #include <debug_uart.h>
8 #include <dm.h>
9 #include <ram.h>
10 #include <syscon.h>
11 #include <asm/io.h>
12 #include <asm/arch/clock.h>
13 #include <asm/arch/hardware.h>
14 #include <asm/arch/rk_atags.h>
15 #include <asm/arch/cru_rk3568.h>
16 #include <asm/arch/grf_rk3568.h>
17 
18 #ifdef CONFIG_TPL_BUILD
19 #ifndef CONFIG_TPL_TINY_FRAMEWORK
20 #error please defined CONFIG_TPL_TINY_FRAMEWORK for RK3568 !!!
21 #endif
22 #endif
23 
24 #ifdef CONFIG_TPL_BUILD
25 
26 /* return: 0 = success, other = fail */
sdram_init(void)27 int sdram_init(void)
28 {
29 	return (-1);
30 }
31 #endif /* CONFIG_TPL_BUILD */
32