diff options
author | Patrick Georgi <pgeorgi@google.com> | 2017-08-24 23:10:53 +0200 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-08-30 03:58:28 -0700 |
commit | 09136dea764dbe482392c29b3c8d1763149df3e6 (patch) | |
tree | b6cff30ac999c763082c285f6bd3ef7ef0016c5d /include | |
parent | f1dfc4cbac2140f51f4a40fec790755ca7d4fafe (diff) | |
download | chrome-ec-09136dea764dbe482392c29b3c8d1763149df3e6.tar.gz |
ec_features / coral: Allow disabling keyboard backlight feature
Allow reporting that keyboard backlight doesn't exist even when the code
is compiled in. Useful if there are multiple device models that should
share firmware.
BUG=b:64705535
BRANCH=none
TEST=none
Change-Id: I9c1fc370aedf66ef856a571f73831095d27e3d39
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://chromium-review.googlesource.com/633926
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/board_config.h | 6 | ||||
-rw-r--r-- | include/config.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/board_config.h b/include/board_config.h index f408db8cd6..f3f42ea795 100644 --- a/include/board_config.h +++ b/include/board_config.h @@ -61,4 +61,10 @@ void board_before_rsmrst(int rsmrst); */ void chip_pre_init(void); +#ifdef CONFIG_EC_FEATURE_BOARD_OVERRIDE +/* function for board specific overrides to default feature flags */ +uint32_t board_override_feature_flags0(uint32_t flags0); +uint32_t board_override_feature_flags1(uint32_t flags1); +#endif + #endif /* __CROS_EC_BOARD_CONFIG_H */ diff --git a/include/config.h b/include/config.h index 6d7c8439d3..270783ef48 100644 --- a/include/config.h +++ b/include/config.h @@ -1010,6 +1010,12 @@ /* EC capable of sensor speeds up to 200000 mHz */ #define CONFIG_EC_MAX_SENSOR_FREQ_MILLIHZ 200000 +/* + * Allow board to override the feature bitmap provided through host command + * and ACPI. + */ +#undef CONFIG_EC_FEATURE_BOARD_OVERRIDE + /* Support EC chip internal data EEPROM */ #undef CONFIG_EEPROM |