diff options
author | Marco Chen <marcochen@google.com> | 2020-08-10 12:19:10 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-13 22:26:17 +0000 |
commit | 0212d4a3ce01452ddaba46f076f90e9a5e90e589 (patch) | |
tree | 9afc036ff84e5807f9bcd7faaf7e94e0bb3f7725 /include/cros_board_info.h | |
parent | dc7e87f2503eab5ef0f5cf4d66286c52ec647751 (diff) | |
download | chrome-ec-0212d4a3ce01452ddaba46f076f90e9a5e90e589.tar.gz |
cbi: add Second Source Factory Cache (SSFC) CBI field
SSFC field will be leveraged to record what second source is used in the
DUT by probing components in the factory or RMA.
Firmware code should refer to this field to judge what driver should be
configured for a specific component. For example, the board code can
arrange what sensor driver should be set into motion_sensors array if
there are multiple sources of base or lid sensor.
As the definition of FW_CONFIG, it describe which "features" the
firmware code should enable or disable. For example, whether lid / base
sensors should be enabled or not but not care about what second source
is in this DUT.
BRANCH=none
BUG=b:163285687
TEST=call `cbi-util` to create the cbi image with SSFC and show created
content.
TEST=`make buildall -j`
TEST=`make runhosttests -j`
Change-Id: Icb4aa00ae47ab025198e7fd5edd6aab96a4bf53e
Signed-off-by: Marco Chen <marcochen@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2344268
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include/cros_board_info.h')
-rw-r--r-- | include/cros_board_info.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/cros_board_info.h b/include/cros_board_info.h index 57839ba4a5..ed5967b0d6 100644 --- a/include/cros_board_info.h +++ b/include/cros_board_info.h @@ -44,7 +44,8 @@ struct cbi_data { /** * Board info accessors * - * @param version/sku_id/oem_id/id/fw_config [OUT] Data read from EEPROM + * @param version/sku_id/oem_id/id/fw_config/pcb_supplier/ssfc [OUT] Data read + * from EEPROM * @return EC_SUCCESS on success or EC_ERROR_* otherwise. * EC_ERROR_BUSY to indicate data is not ready. */ @@ -54,6 +55,7 @@ int cbi_get_oem_id(uint32_t *oem_id); int cbi_get_model_id(uint32_t *id); int cbi_get_fw_config(uint32_t *fw_config); int cbi_get_pcb_supplier(uint32_t *pcb_supplier); +int cbi_get_ssfc(uint32_t *ssfc); /** * Get data from CBI store |