ec/lenovo/pmh7: Add CFR objects for existing options
Add a header with CFR objects for existing configuration options, so that supported boards can make use of them without duplication. TEST=build/boot lenovo/t480 w/edk2 payload Change-Id: I8f5c335a8b9d1697b77b3c3542bd96f98583dbf6 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/88394 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com>
This commit is contained in:
parent
45d9973a6d
commit
d9169ef617
1 changed files with 36 additions and 0 deletions
36
src/ec/lenovo/pmh7/cfr.h
Normal file
36
src/ec/lenovo/pmh7/cfr.h
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
/*
|
||||
* CFR enums and structs for Lenovo PMH7 EC
|
||||
*/
|
||||
|
||||
#ifndef _LENOVO_PMH7_CFR_H_
|
||||
#define _LENOVO_PMH7_CFR_H_
|
||||
|
||||
#include <drivers/option/cfr_frontend.h>
|
||||
|
||||
/* Touchpad */
|
||||
static const struct sm_object touchpad = SM_DECLARE_ENUM({
|
||||
.opt_name = "touchpad",
|
||||
.ui_name = "Touchpad",
|
||||
.ui_helptext = "Enable or disable the touchpad",
|
||||
.default_value = 1,
|
||||
.values = (const struct sm_enum_value[]) {
|
||||
{ "Disabled", 0 },
|
||||
{ "Enabled", 1 },
|
||||
SM_ENUM_VALUE_END },
|
||||
});
|
||||
|
||||
/* Trackpoint */
|
||||
static const struct sm_object trackpoint = SM_DECLARE_ENUM({
|
||||
.opt_name = "trackpoint",
|
||||
.ui_name = "Trackpoint",
|
||||
.ui_helptext = "Enable or disable the trackpoint",
|
||||
.default_value = 1,
|
||||
.values = (const struct sm_enum_value[]) {
|
||||
{ "Disabled", 0 },
|
||||
{ "Enabled", 1 },
|
||||
SM_ENUM_VALUE_END },
|
||||
});
|
||||
|
||||
#endif /* _LENOVO_PMH7_CFR_H_ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue