Matt DeVillier has submitted this change. ( https://review.coreboot.org/c/coreboot/+/87209?usp=email )
Change subject: soc/mediatek/common: Move DRAMC function declarations to common header ......................................................................
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 --- M src/soc/mediatek/common/include/soc/dramc_param_common.h M src/soc/mediatek/mt8186/include/soc/dramc_param.h M src/soc/mediatek/mt8188/include/soc/dramc_param.h M src/soc/mediatek/mt8192/include/soc/dramc_param.h M src/soc/mediatek/mt8195/include/soc/dramc_param.h M src/soc/mediatek/mt8196/include/soc/dramc_param.h 6 files changed, 5 insertions(+), 26 deletions(-)
Approvals: Yidi Lin: Looks good to me, approved build bot (Jenkins): Verified
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 a1fac9a..f7cf83a 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 @@ };
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 29380c2..773d6af 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_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 740e27b..58241f4 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_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 fca82be..b0f9f45 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_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 0885ee0..3ca7d81 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_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 13a4dff..819b1af 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_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__ */