summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin Lu <Devin.Lu@quantatw.com>2022-02-14 17:22:52 +0800
committerCommit Bot <commit-bot@chromium.org>2022-02-17 05:24:06 +0000
commit547d8f2ea1a7819de022c72d3b4d2a6b3a68d412 (patch)
treee52efa7450bd2c0010c04c8b87a15a5f8f7fabdc
parent611079e62220f051d1e0c1e667e80bf052845a03 (diff)
downloadchrome-ec-547d8f2ea1a7819de022c72d3b4d2a6b3a68d412.tar.gz
baseboard/brya: Add SSFC entry
This patch adds SSFC entry for board variants. BUG=b:219450750 BRANCH=none TEST=buildall Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I15790834cd9a4f6b9740c097aa2de8f71e628871 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3459594 Reviewed-by: caveh jalali <caveh@chromium.org>
-rw-r--r--baseboard/brya/cbi.c6
-rw-r--r--baseboard/brya/cbi.h6
2 files changed, 12 insertions, 0 deletions
diff --git a/baseboard/brya/cbi.c b/baseboard/brya/cbi.c
index 791abbab88..ded310bffc 100644
--- a/baseboard/brya/cbi.c
+++ b/baseboard/brya/cbi.c
@@ -28,6 +28,10 @@ __overridable void board_init_fw_config(void)
{
}
+__overridable void board_init_ssfc(void)
+{
+}
+
/*
* Read CBI from I2C EEPROM and initialize variables for board variants.
*/
@@ -46,6 +50,8 @@ static void cbi_init(void)
board_init_fw_config();
+ board_init_ssfc();
+
/* Allow the board project to make runtime changes based on CBI data */
board_cbi_init();
}
diff --git a/baseboard/brya/cbi.h b/baseboard/brya/cbi.h
index 10ecfd87e7..2ad70aff96 100644
--- a/baseboard/brya/cbi.h
+++ b/baseboard/brya/cbi.h
@@ -29,4 +29,10 @@ __override_proto void board_cbi_init(void);
*/
__override_proto void board_init_fw_config(void);
+/**
+ * Initialize the SSFC from CBI data. If the CBI data is not valid, set the
+ * SSFC to the board specific defaults.
+ */
+__override_proto void board_init_ssfc(void);
+
#endif /* __CROS_EC_BASEBOARD_CBI_H */