aboutsummaryrefslogtreecommitdiff
path: root/src/soc/qualcomm/sc7180/qclib.c
diff options
context:
space:
mode:
authorSudheer Kumar Amrabadi <samrabad@codeaurora.org>2023-03-15 15:17:36 +0530
committerJulius Werner <jwerner@chromium.org>2023-03-17 00:34:08 +0000
commit0225e80061af6f4cac590c4fafc925050319d6e2 (patch)
treed1fbe859fac03014f601aea009cb1ebf5dbda697 /src/soc/qualcomm/sc7180/qclib.c
parentde2e716856485189cc995ac94169ce7d46ee3aa1 (diff)
qualcomm/common: Pass FMAX_LIMIT flag for Lazor board to QcLib
This patch passes a hint flag to QcLib on Lazor boards to tell it to limit the DDR frequency for certain memory parts (8GB Hynix) to work around a board-specific stability issue. BRANCH=trogdor BUG=b:267387867 TEST=Validated on qualcomm sc7180 development board Change-Id: I45915cf93d2a57ff0c9710f2ac36dfb665eff1c6 Signed-off-by: Sudheer Kumar Amrabadi <samrabad@codeaurora.org> Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/73727 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Shelley Chen <shchen@google.com>
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;
+}