diff options
author | Angel Pons <th3fanbus@gmail.com> | 2022-09-26 16:26:30 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-09-27 16:19:09 +0000 |
commit | c6df44b95957014f50be59f622ad6baf20a97a28 (patch) | |
tree | 0a96a594d1e15cf347f6be120149aaf5e3a8d653 /src/ec/lenovo/h8/h8.c | |
parent | acc91c335b6d0e0b9162966368bdc92a59522064 (diff) |
ec/lenovo/h8: Add Kconfig option for Fn-Ctrl swap
Having to use a runtime configurable option backend like CMOS just to
specify the value of the "fn_ctrl_swap" option is annoying. Introduce
a new Kconfig option to allow specifying the fallback value, which is
only used when the option backend cannot provide a value.
Change-Id: I00bb3cd60c443fc0c8adb82e8e0c436dfc5de24b
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/67836
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/ec/lenovo/h8/h8.c')
-rw-r--r-- | src/ec/lenovo/h8/h8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c index bbe6490f0c..3df20c14f3 100644 --- a/src/ec/lenovo/h8/h8.c +++ b/src/ec/lenovo/h8/h8.c @@ -311,7 +311,7 @@ static void h8_enable(struct device *dev) if (conf->has_uwb) h8_uwb_enable(get_uint_option("uwb", 1)); - h8_fn_ctrl_swap(get_uint_option("fn_ctrl_swap", 0)); + h8_fn_ctrl_swap(get_uint_option("fn_ctrl_swap", CONFIG(H8_FN_CTRL_SWAP))); h8_sticky_fn(get_uint_option("sticky_fn", 0)); |