summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/common
diff options
context:
space:
mode:
authorCrystal Guo <crystal.guo@mediatek.corp-partner.google.com>2024-11-20 10:40:57 +0800
committerYu-Ping Wu <yupingso@google.com>2024-11-21 13:46:47 +0000
commitfeddd37297d2157504540aa861e86e7e2aeba782 (patch)
tree219b6baa9521f361cf055d19112a7d3c99562ad8 /src/soc/mediatek/common
parent992e09a1d5e0501711ee76083d9d00828fcbddd7 (diff)
soc/mediatek: Rename dpm to dpm_v1
MT8196 equips new DPM hardware which is different from precedent SoCs. Therefore, we need implement a new DPM loader (said version 2) to run the blob. Considering the version iteration, rename the original dpm to dpm_v1. TEST=Build pass. BUG=b:317009620 Change-Id: I07afb8f5c23e96aad3c6cb0887cb7efd16ebf296 Signed-off-by: Crystal Guo <crystal.guo@mediatek.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/85211 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Reviewed-by: Yidi Lin <yidilin@google.com>
Diffstat (limited to 'src/soc/mediatek/common')
-rw-r--r--src/soc/mediatek/common/dpm_4ch.c2
-rw-r--r--src/soc/mediatek/common/dpm_v1.c (renamed from src/soc/mediatek/common/dpm.c)2
-rw-r--r--src/soc/mediatek/common/include/soc/dpm_v1.h (renamed from src/soc/mediatek/common/include/soc/dpm.h)6
3 files changed, 5 insertions, 5 deletions
diff --git a/src/soc/mediatek/common/dpm_4ch.c b/src/soc/mediatek/common/dpm_4ch.c
index f13337d8b7..6b15411300 100644
--- a/src/soc/mediatek/common/dpm_4ch.c
+++ b/src/soc/mediatek/common/dpm_4ch.c
@@ -3,7 +3,7 @@
#include <console/console.h>
#include <delay.h>
#include <device/mmio.h>
-#include <soc/dpm.h>
+#include <soc/dpm_v1.h>
#include <soc/dramc_soc.h>
#include <soc/spm.h>
#include <soc/symbols.h>
diff --git a/src/soc/mediatek/common/dpm.c b/src/soc/mediatek/common/dpm_v1.c
index 0bcf409399..4691b35569 100644
--- a/src/soc/mediatek/common/dpm.c
+++ b/src/soc/mediatek/common/dpm_v1.c
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <device/mmio.h>
-#include <soc/dpm.h>
+#include <soc/dpm_v1.h>
#include <soc/mcu_common.h>
#include <soc/symbols.h>
diff --git a/src/soc/mediatek/common/include/soc/dpm.h b/src/soc/mediatek/common/include/soc/dpm_v1.h
index e72b6a1f3d..65623a2671 100644
--- a/src/soc/mediatek/common/include/soc/dpm.h
+++ b/src/soc/mediatek/common/include/soc/dpm_v1.h
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef __SOC_MEDIATEK_COMMON_DPM_H__
-#define __SOC_MEDIATEK_COMMON_DPM_H__
+#ifndef __SOC_MEDIATEK_COMMON_DPM_V1_H__
+#define __SOC_MEDIATEK_COMMON_DPM_V1_H__
#include <soc/addressmap.h>
#include <soc/mcu_common.h>
@@ -53,4 +53,4 @@ int dpm_init(void);
int dpm_4ch_para_setting(void);
int dpm_4ch_init(void);
-#endif /* __SOC_MEDIATEK_COMMON_DPM_H__ */
+#endif /* __SOC_MEDIATEK_COMMON_DPM_V1_H__ */