From 42258e399d3c8143e37a740a10adfe972340107a Mon Sep 17 00:00:00 2001 From: Pratikkumar Prajapati Date: Tue, 15 Aug 2023 11:53:17 -0700 Subject: soc/intel/common: Make common cpu_cl_clear_data() weak Not all SOC follow the same programming to clear crashlog data. So make common implementation of cpu_cl_clear_data() weak. BUG=b:262501347 TEST=Able to build google/rex. Change-Id: Ic2b4631d57703abff0ab1880fb272ef67bb1b8e9 Signed-off-by: Pratikkumar Prajapati Reviewed-on: https://review.coreboot.org/c/coreboot/+/77237 Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik --- src/soc/intel/common/block/crashlog/crashlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/intel/common/block') diff --git a/src/soc/intel/common/block/crashlog/crashlog.c b/src/soc/intel/common/block/crashlog/crashlog.c index fa3603334b..4412cbb174 100644 --- a/src/soc/intel/common/block/crashlog/crashlog.c +++ b/src/soc/intel/common/block/crashlog/crashlog.c @@ -149,7 +149,7 @@ int cpu_cl_mailbox_cmd(u8 cmd, u8 param) return 1; } -int cpu_cl_clear_data(void) +int __weak cpu_cl_clear_data(void) { return cpu_cl_mailbox_cmd(CPU_CRASHLOG_CMD_CLEAR, 0); } -- cgit v1.2.3