diff options
author | Denis Brockus <dbrockus@google.com> | 2022-03-02 13:38:07 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-03-24 17:48:57 +0000 |
commit | cdf3f66c0c6c5d2f543fc4120efcb737a2dbf346 (patch) | |
tree | 477f15703fe259be21fb082d17bf5e34147df11e /zephyr/Kconfig.cbi | |
parent | bcb1f72b43c28db85df566dec866c9706942bd43 (diff) | |
download | chrome-ec-cdf3f66c0c6c5d2f543fc4120efcb737a2dbf346.tar.gz |
zephyr: CBI documentation
BRANCH=none
BUG=b:222105950, b:226143500
TEST=none
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: Ibf7f8be8aae82fa776f6165ef9d82a6aa3ab76cc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3500076
Tested-by: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.cbi')
-rw-r--r-- | zephyr/Kconfig.cbi | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/zephyr/Kconfig.cbi b/zephyr/Kconfig.cbi new file mode 100644 index 0000000000..7236916938 --- /dev/null +++ b/zephyr/Kconfig.cbi @@ -0,0 +1,51 @@ +# Copyright 2022 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +config PLATFORM_EC_BYPASS_CBI_EEPROM_WP_CHECK + bool "Bypass CBI EEPROM Write Protect" + help + Bypass the CBI EEPROM write protect checks. This should ONLY be + defined during bringup, and should never be defined on a shipping or + release platform. + + When defined, ectool can be used to reprogram all CBI fields, + regardless of the state of the hardware write protect. + +config PLATFORM_EC_EEPROM_CBI_WP + bool "EC can independently set the CBI EEPROM WP signal" + help + Define this if the EC can independently set the CBI EEPROM WP + signal. The accompanying hardware must ensure that the CBI WP gets + latched and is only reset when EC_RST_ODL is asserted. + select PLATFORM_EC_BYPASS_CBI_EEPROM_WP_CHECK + +choice PLATFORM_EC_CBI_STORAGE_TYPE + prompt "Select CBI storage Type" + optional + help + CBI is a means for accessing board information, typically set + during the factory process. This allows selection of the physical + storage of CBI source. + + See here for detailed information on CBI: + + https://chromium.googlesource.com/chromiumos/docs/+/HEAD/design_docs/cros_board_info.md + +config PLATFORM_EC_CBI_EEPROM + bool "CBI EEPROM support" + depends on PLATFORM_EC_I2C + help + Enables Chromium OS Board Info (CBI) from EEPROM. + + One must specify both I2C_PORT_EEPROM and I2C_ADDR_EEPROM_FLAGS to the + CBI EEPROM's i2c port and 7-bit i2c address. + +config PLATFORM_EC_CBI_GPIO + bool "CBI GPIO support" + help + Enables Chromium OS Board Info (CBI) from strapping pins. EC reads + the BOARD ID and SKU ID from GPIOs and then substantiate in-memory + CBI for AP to query. + +endchoice |