From d6647b08b276b8c5bacfe2dc10ec91a6a4503a9e Mon Sep 17 00:00:00 2001 From: Kever Yang Date: Fri, 15 Nov 2019 11:04:37 +0800 Subject: ram: rockchip: add common code for sdram driver There are some function like os_reg setting, capacity detect functions, can be used as common code for different Rockchip SoCs, add a sdram_common.c for all these functions. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- drivers/ram/rockchip/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/ram/rockchip/Kconfig') diff --git a/drivers/ram/rockchip/Kconfig b/drivers/ram/rockchip/Kconfig index 4f274e01b3..dcc06b3fd3 100644 --- a/drivers/ram/rockchip/Kconfig +++ b/drivers/ram/rockchip/Kconfig @@ -5,6 +5,12 @@ config RAM_ROCKCHIP help This enables support for ram drivers Rockchip SoCs. +config ROCKCHIP_SDRAM_COMMON + bool "Enable rockchip sdram common driver" + depends on TPL_RAM || SPL_RAM + help + This enable sdram common driver + if RAM_ROCKCHIP config RAM_ROCKCHIP_DEBUG -- cgit