summaryrefslogtreecommitdiff
path: root/drivers/ram
diff options
context:
space:
mode:
authorKever Yang <kever.yang@rock-chips.com>2020-07-20 18:34:12 +0800
committerKever Yang <kever.yang@rock-chips.com>2020-07-22 20:22:33 +0800
commitb32858ca510183f61c803595492230ea840e5499 (patch)
tree6b7ae2f4bd8a53395b4c8f0c69d29d3e1017b42c /drivers/ram
parent40794c825f17881180852d4d010cacb3b45ce08e (diff)
rockchip: ram: fix debug funcfion define when RAM_ROCKCHIP_DEBUG not set
The empty function define should not be in the header file, or else the build will error with function multi definition after CONFIG_RAM_ROCKCHIP_DEBUG is disabled. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'drivers/ram')
-rw-r--r--drivers/ram/rockchip/sdram_common.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/ram/rockchip/sdram_common.c b/drivers/ram/rockchip/sdram_common.c
index 6bc51572b2..b3e7421d08 100644
--- a/drivers/ram/rockchip/sdram_common.c
+++ b/drivers/ram/rockchip/sdram_common.c
@@ -117,6 +117,19 @@ void sdram_print_stride(unsigned int stride)
printf("no stride\n");
}
}
+#else
+inline void sdram_print_dram_type(unsigned char dramtype)
+{
+}
+
+inline void sdram_print_ddr_info(struct sdram_cap_info *cap_info,
+ struct sdram_base_params *base)
+{
+}
+
+inline void sdram_print_stride(unsigned int stride)
+{
+}
#endif
/*