diff options
author | Caveh Jalali <caveh@chromium.org> | 2021-02-19 02:31:24 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-27 04:04:56 +0000 |
commit | 16a6024a7a38acf9d3eac7e304f30db23b169ff6 (patch) | |
tree | b0efca130645a49e9433596c5074133a3cb1981f /baseboard/brya/baseboard.h | |
parent | 924d0cad36a6a6a1d87df5926a0af8c77ddb244b (diff) | |
download | chrome-ec-16a6024a7a38acf9d3eac7e304f30db23b169ff6.tar.gz |
brya: Add CBI and FW_CONFIG supportstabilize-13821.B-main
This adds support for CBI and the first USB DB type field in FW_CONFIG.
BUG=b:173575131,b:180434685
BRANCH=none
TEST=buildall succeeds
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Change-Id: If1d27fc100db9b814f90a9378d8dd19530a92bf4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2706964
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Sooraj Govindan <sooraj.govindan@intel.com>
Diffstat (limited to 'baseboard/brya/baseboard.h')
-rw-r--r-- | baseboard/brya/baseboard.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/baseboard/brya/baseboard.h b/baseboard/brya/baseboard.h index 189f7f5e26..b70b9de734 100644 --- a/baseboard/brya/baseboard.h +++ b/baseboard/brya/baseboard.h @@ -22,6 +22,11 @@ */ #define NPCX_UART_MODULE2 1 /* 1:GPIO64/65 for UART1 */ +/* EC Defines */ +#define CONFIG_CROS_BOARD_INFO +#define CONFIG_BOARD_VERSION_CBI +#define CONFIG_CRC8 + #define CONFIG_EXTPOWER_GPIO /* Common Keyboard Defines */ @@ -69,6 +74,14 @@ #include "baseboard_usbc_config.h" #include "extpower.h" +/** + * Configure run-time data structures and operation based on CBI data. This + * typically includes customization for changes in the BOARD_VERSION and + * FW_CONFIG fields in CBI. This routine is called from the baseboard after + * the CBI data has been initialized. + */ +__override_proto void board_cbi_init(void); + /* * Check battery disconnect state. * This function will return if battery is initialized or not. @@ -76,6 +89,11 @@ */ __override_proto bool board_battery_is_initialized(void); +/* + * Return the board revision number. + */ +uint8_t get_board_id(void); + #endif /* !__ASSEMBLER__ */ #endif /* __CROS_EC_BASEBOARD_H */ |