summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8173/include
diff options
context:
space:
mode:
authorXi Chen <xixi.chen@mediatek.com>2021-03-03 18:04:28 +0800
committerHung-Te Lin <hungte@chromium.org>2021-03-08 03:16:19 +0000
commita3b19441f6956c09e175973899f92f8774090582 (patch)
tree55b3123e0cef8af39e5305f77f7a4f131e019cd3 /src/soc/mediatek/mt8173/include
parent05764cd6c913deab616d958838f5000ed8d0fbad (diff)
soc/mediatek/mt8173,mt8183: revise SOC DRAM implementation
Many header files and helper macros have been moved to the common folder and we want to use them in mt8173/mt8183 DRAM calibration code. Signed-off-by: Xi Chen <xixi.chen@mediatek.com> Change-Id: Ifa483dcfffe0e1383cb46811563c90f0ab484d5d Reviewed-on: https://review.coreboot.org/c/coreboot/+/51224 Reviewed-by: Hung-Te Lin <hungte@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek/mt8173/include')
-rw-r--r--src/soc/mediatek/mt8173/include/soc/dramc_pi_api.h8
-rw-r--r--src/soc/mediatek/mt8173/include/soc/dramc_soc.h (renamed from src/soc/mediatek/mt8173/include/soc/dramc_common.h)4
-rw-r--r--src/soc/mediatek/mt8173/include/soc/emi.h1
3 files changed, 5 insertions, 8 deletions
diff --git a/src/soc/mediatek/mt8173/include/soc/dramc_pi_api.h b/src/soc/mediatek/mt8173/include/soc/dramc_pi_api.h
index 7ced6629e7..8ead39208a 100644
--- a/src/soc/mediatek/mt8173/include/soc/dramc_pi_api.h
+++ b/src/soc/mediatek/mt8173/include/soc/dramc_pi_api.h
@@ -3,6 +3,8 @@
#ifndef _DRAMC_PI_API_H
#define _DRAMC_PI_API_H
+#include <soc/dramc_common.h>
+#include <soc/dramc_soc.h>
#include <soc/emi.h>
#include <console/console.h>
@@ -165,10 +167,4 @@ void dramk_check_dq_win(struct dqs_perbit_dly *p, u8 dly_step, u8 last_step, u32
void tx_delay_for_wrleveling(u32 channel, struct dqs_perbit_dly *dqdqs_perbit_dly,
u8 *ave_dqdly_byte, u8 *max_dqsdly_byte);
-#if CONFIG(DEBUG_DRAM)
-#define dramc_dbg_msg(_x_...) printk(BIOS_DEBUG, _x_)
-#else
-#define dramc_dbg_msg(_x_...)
-#endif
-
#endif /* _PI_API_H */
diff --git a/src/soc/mediatek/mt8173/include/soc/dramc_common.h b/src/soc/mediatek/mt8173/include/soc/dramc_soc.h
index 950cb62f9a..4f792234d3 100644
--- a/src/soc/mediatek/mt8173/include/soc/dramc_common.h
+++ b/src/soc/mediatek/mt8173/include/soc/dramc_soc.h
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef _DRAMC_COMMON_H_
-#define _DRAMC_COMMON_H_
+#ifndef _DRAMC_SOC_H_
+#define _DRAMC_SOC_H_
enum {
CHANNEL_A = 0,
diff --git a/src/soc/mediatek/mt8173/include/soc/emi.h b/src/soc/mediatek/mt8173/include/soc/emi.h
index 1cc2577a94..46d99fac84 100644
--- a/src/soc/mediatek/mt8173/include/soc/emi.h
+++ b/src/soc/mediatek/mt8173/include/soc/emi.h
@@ -4,6 +4,7 @@
#define SOC_MEDIATEK_MT8173_EMI_H
#include <soc/dramc_common.h>
+#include <soc/dramc_soc.h>
#include <types.h>
/* DDR type */