summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorPratikkumar Prajapati <pratikkumar.v.prajapati@intel.com>2023-08-15 11:53:17 -0700
committerSubrata Banik <subratabanik@google.com>2023-09-17 04:48:05 +0000
commit42258e399d3c8143e37a740a10adfe972340107a (patch)
treeac7858f8cd98bc145c0cdff01b3dabb373e321e6 /src/soc
parentab1605e91bd8a04f21f3d3cd81f63eb390ea6b9f (diff)
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 <pratikkumar.v.prajapati@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/77237 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subratabanik@google.com>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/common/block/crashlog/crashlog.c2
1 files changed, 1 insertions, 1 deletions
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);
}