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