summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8183
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/mt8183
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/mt8183')
-rw-r--r--src/soc/mediatek/mt8183/Kconfig7
-rw-r--r--src/soc/mediatek/mt8183/include/soc/dramc_pi_api.h9
2 files changed, 2 insertions, 14 deletions
diff --git a/src/soc/mediatek/mt8183/Kconfig b/src/soc/mediatek/mt8183/Kconfig
index 5a0a765548..324d511b85 100644
--- a/src/soc/mediatek/mt8183/Kconfig
+++ b/src/soc/mediatek/mt8183/Kconfig
@@ -6,6 +6,7 @@ config SOC_MEDIATEK_MT8183
select ARCH_ROMSTAGE_ARMV8_64
select ARCH_VERSTAGE_ARMV8_64
select ARM64_USE_ARM_TRUSTED_FIRMWARE
+ select HAVE_DEBUG_RAM_SETUP
select HAVE_UART_SPECIAL
select COMPRESS_BOOTBLOCK
select SOC_MEDIATEK_COMMON
@@ -22,12 +23,6 @@ config VBOOT
select VBOOT_SEPARATE_VERSTAGE
select VBOOT_RETURN_FROM_VERSTAGE
-config DEBUG_DRAM
- bool "Output verbose DRAM related debug messages"
- default n
- help
- This option enables additional DRAM related debug messages.
-
config MT8183_DRAM_EMCP
bool
default n
diff --git a/src/soc/mediatek/mt8183/include/soc/dramc_pi_api.h b/src/soc/mediatek/mt8183/include/soc/dramc_pi_api.h
index b1a0c74f14..5ee6300efb 100644
--- a/src/soc/mediatek/mt8183/include/soc/dramc_pi_api.h
+++ b/src/soc/mediatek/mt8183/include/soc/dramc_pi_api.h
@@ -4,17 +4,10 @@
#define _DRAMC_PI_API_MT8183_H
#include <types.h>
+#include <soc/dramc_common.h>
#include <soc/emi.h>
#include <console/console.h>
-#define dramc_err(_x_...) printk(BIOS_ERR, _x_)
-#define dramc_show(_x_...) printk(BIOS_INFO, _x_)
-#if CONFIG(DEBUG_DRAM)
-#define dramc_dbg(_x_...) printk(BIOS_DEBUG, _x_)
-#else
-#define dramc_dbg(_x_...)
-#endif
-
#define DATLAT_TAP_NUMBER 32
#define HW_REG_SHUFFLE_MAX 4