summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVince Liu <vince-wl.liu@mediatek.corp-partner.google.com>2025-04-08 09:25:51 +0800
committerMatt DeVillier <matt.devillier@gmail.com>2025-04-09 17:30:31 +0000
commitccb987fa66457a8cfcfd74e715363b85280f4580 (patch)
treea06489f7514d085291270ae791a7a882752f2f7d /src
parentaf3076b1f923a1defba52bd8bf173079e5074f9a (diff)
downloadcoreboot-ccb987fa66457a8cfcfd74e715363b85280f4580.tar.gz
coreboot-ccb987fa66457a8cfcfd74e715363b85280f4580.tar.bz2
coreboot-ccb987fa66457a8cfcfd74e715363b85280f4580.zip
soc/mediatek/common: Move DRAMC function declarations to common header
To promote code reuse and maintainability, this commit moves the DRAMC parameter function declarations to the common folder. BUG=b:379008996 BRANCH=none TEST=build passed Signed-off-by: Vince Liu <vince-wl.liu@mediatek.corp-partner.google.com> Change-Id: Iab24f07b4c02da22779ea1c76f3237c144d92b98 Reviewed-on: https://review.coreboot.org/c/coreboot/+/87209 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yidi Lin <yidilin@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/soc/mediatek/common/include/soc/dramc_param_common.h5
-rw-r--r--src/soc/mediatek/mt8186/include/soc/dramc_param.h4
-rw-r--r--src/soc/mediatek/mt8188/include/soc/dramc_param.h6
-rw-r--r--src/soc/mediatek/mt8192/include/soc/dramc_param.h5
-rw-r--r--src/soc/mediatek/mt8195/include/soc/dramc_param.h5
-rw-r--r--src/soc/mediatek/mt8196/include/soc/dramc_param.h6
6 files changed, 5 insertions, 26 deletions
diff --git a/src/soc/mediatek/common/include/soc/dramc_param_common.h b/src/soc/mediatek/common/include/soc/dramc_param_common.h
index a1fac9af85b5..f7cf83abaec0 100644
--- a/src/soc/mediatek/common/include/soc/dramc_param_common.h
+++ b/src/soc/mediatek/common/include/soc/dramc_param_common.h
@@ -103,5 +103,10 @@ struct ddr_base_info {
};
const struct sdram_info *get_sdram_config(void);
+struct dramc_param *get_dramc_param_from_blob(void *blob);
+void dump_param_header(const void *blob);
+int validate_dramc_param(const void *blob);
+int is_valid_dramc_param(const void *blob);
+int initialize_dramc_param(void *blob);
#endif
diff --git a/src/soc/mediatek/mt8186/include/soc/dramc_param.h b/src/soc/mediatek/mt8186/include/soc/dramc_param.h
index 29380c212797..773d6af5b03f 100644
--- a/src/soc/mediatek/mt8186/include/soc/dramc_param.h
+++ b/src/soc/mediatek/mt8186/include/soc/dramc_param.h
@@ -78,8 +78,4 @@ struct dramc_param {
struct dramc_data dramc_datas;
};
-struct dramc_param *get_dramc_param_from_blob(void *blob);
-void dump_param_header(const void *blob);
-int initialize_dramc_param(void *blob);
-
#endif /* __SOC_MEDIATEK_MT8186_DRAMC_PARAM_H__ */
diff --git a/src/soc/mediatek/mt8188/include/soc/dramc_param.h b/src/soc/mediatek/mt8188/include/soc/dramc_param.h
index 740e27b6f7b1..58241f478eac 100644
--- a/src/soc/mediatek/mt8188/include/soc/dramc_param.h
+++ b/src/soc/mediatek/mt8188/include/soc/dramc_param.h
@@ -98,10 +98,4 @@ struct dramc_param {
struct dramc_data dramc_datas;
};
-struct dramc_param *get_dramc_param_from_blob(void *blob);
-void dump_param_header(const void *blob);
-int validate_dramc_param(const void *blob);
-int is_valid_dramc_param(const void *blob);
-int initialize_dramc_param(void *blob);
-
#endif /* __SOC_MEDIATEK_MT8188_DRAMC_PARAM_H__ */
diff --git a/src/soc/mediatek/mt8192/include/soc/dramc_param.h b/src/soc/mediatek/mt8192/include/soc/dramc_param.h
index fca82bee62e1..b0f9f45e678e 100644
--- a/src/soc/mediatek/mt8192/include/soc/dramc_param.h
+++ b/src/soc/mediatek/mt8192/include/soc/dramc_param.h
@@ -73,9 +73,4 @@ struct dramc_param {
struct dramc_data dramc_datas;
};
-struct dramc_param *get_dramc_param_from_blob(void *blob);
-void dump_param_header(const void *blob);
-int validate_dramc_param(const void *blob);
-int is_valid_dramc_param(const void *blob);
-int initialize_dramc_param(void *blob);
#endif /* __SOC_MEDIATEK_MT8192_DRAMC_PARAM_H__ */
diff --git a/src/soc/mediatek/mt8195/include/soc/dramc_param.h b/src/soc/mediatek/mt8195/include/soc/dramc_param.h
index 0885ee0651af..3ca7d81f254c 100644
--- a/src/soc/mediatek/mt8195/include/soc/dramc_param.h
+++ b/src/soc/mediatek/mt8195/include/soc/dramc_param.h
@@ -73,9 +73,4 @@ struct dramc_param {
struct dramc_data dramc_datas;
};
-struct dramc_param *get_dramc_param_from_blob(void *blob);
-void dump_param_header(const void *blob);
-int validate_dramc_param(const void *blob);
-int is_valid_dramc_param(const void *blob);
-int initialize_dramc_param(void *blob);
#endif /* __SOC_MEDIATEK_MT8195_DRAMC_PARAM_H__ */
diff --git a/src/soc/mediatek/mt8196/include/soc/dramc_param.h b/src/soc/mediatek/mt8196/include/soc/dramc_param.h
index 13a4dff0954d..819b1af6ce07 100644
--- a/src/soc/mediatek/mt8196/include/soc/dramc_param.h
+++ b/src/soc/mediatek/mt8196/include/soc/dramc_param.h
@@ -105,10 +105,4 @@ struct dramc_param {
struct dramc_data dramc_datas;
};
-struct dramc_param *get_dramc_param_from_blob(void *blob);
-void dump_param_header(const void *blob);
-int validate_dramc_param(const void *blob);
-int is_valid_dramc_param(const void *blob);
-int initialize_dramc_param(void *blob);
-
#endif /* __SOC_MEDIATEK_MT8196_DRAMC_PARAM_H__ */