summaryrefslogtreecommitdiff
path: root/src/soc/qualcomm/sc7180/qclib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/qualcomm/sc7180/qclib.c')
-rw-r--r--src/soc/qualcomm/sc7180/qclib.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/soc/qualcomm/sc7180/qclib.c b/src/soc/qualcomm/sc7180/qclib.c
index e05a24f029..b9f5d370a3 100644
--- a/src/soc/qualcomm/sc7180/qclib.c
+++ b/src/soc/qualcomm/sc7180/qclib.c
@@ -24,3 +24,13 @@ const char *qclib_file(enum qclib_cbfs_file file)
return qclib_file_default(file);
}
}
+
+int qclib_soc_override(struct qclib_cb_if_table *table)
+{
+ /* Lazor boards need a hack to limit DDR frequency on certain memory parts to work
+ around a stability issue. */
+ if (CONFIG(BOARD_GOOGLE_LAZOR))
+ table->global_attributes |= QCLIB_GA_DDR_FMAX_LIMIT_HYNIX8GB;
+
+ return 0;
+}