From 547d8f2ea1a7819de022c72d3b4d2a6b3a68d412 Mon Sep 17 00:00:00 2001 From: Devin Lu Date: Mon, 14 Feb 2022 17:22:52 +0800 Subject: 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 Change-Id: I15790834cd9a4f6b9740c097aa2de8f71e628871 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3459594 Reviewed-by: caveh jalali --- baseboard/brya/cbi.c | 6 ++++++ baseboard/brya/cbi.h | 6 ++++++ 2 files changed, 12 insertions(+) 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 */ -- cgit v1.2.1