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