summaryrefslogtreecommitdiff
path: root/baseboard/brya/cbi.c
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2021-04-20 01:02:56 -0700
committerCommit Bot <commit-bot@chromium.org>2021-04-21 02:04:30 +0000
commit0f69cef4c4871d70f959eff2e54761acc0e0921b (patch)
tree34782820490c2196a8639a7b2c3b15566cd440be /baseboard/brya/cbi.c
parentd77890f15553f9448bd0da19c2bcff76d61980ee (diff)
downloadchrome-ec-0f69cef4c4871d70f959eff2e54761acc0e0921b.tar.gz
brya: Define fw_config at board level
This updates the brya FW config fields based on the brya/config.star definitions. FW config fields and values are now defined at the project level rather than the program level. In other words each board (variant) defines its own FW config and no longer relies on baseboard definitions. BRANCH=none BUG=b:180434685 TEST=USB C1 port still works on brya for PD charging and SS data Change-Id: I055b0e2b051b7d41bbe116455274fe8b4a785741 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2837417 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'baseboard/brya/cbi.c')
-rw-r--r--baseboard/brya/cbi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/baseboard/brya/cbi.c b/baseboard/brya/cbi.c
index 295dea26a3..a0a7275a7c 100644
--- a/baseboard/brya/cbi.c
+++ b/baseboard/brya/cbi.c
@@ -3,7 +3,6 @@
* found in the LICENSE file.
*/
-#include "cbi_ec_fw_config.h"
#include "common.h"
#include "cros_board_info.h"
#include "hooks.h"
@@ -23,6 +22,10 @@ __overridable void board_cbi_init(void)
{
}
+__overridable void board_init_fw_config(void)
+{
+}
+
/*
* Read CBI from I2C EEPROM and initialize variables for board variants.
*/
@@ -39,7 +42,7 @@ static void cbi_init(void)
CPRINTS("Board ID: %d", board_id);
- init_fw_config();
+ board_init_fw_config();
/* Allow the board project to make runtime changes based on CBI data */
board_cbi_init();