diff options
-rw-r--r-- | board/nipperkin/board_fw_config.c | 14 | ||||
-rw-r--r-- | board/nipperkin/board_fw_config.h | 34 |
2 files changed, 23 insertions, 25 deletions
diff --git a/board/nipperkin/board_fw_config.c b/board/nipperkin/board_fw_config.c index 82b291e639..c9fa01bc7a 100644 --- a/board/nipperkin/board_fw_config.c +++ b/board/nipperkin/board_fw_config.c @@ -6,13 +6,6 @@ #include "base_fw_config.h" #include "board_fw_config.h" -bool board_is_convertible(void) -{ - return (get_fw_config_field(FW_CONFIG_FORM_FACTOR_OFFSET, - FW_CONFIG_FORM_FACTOR_WIDTH) - == FW_CONFIG_FORM_FACTOR_CONVERTIBLE); -} - bool board_has_kblight(void) { return (get_fw_config_field(FW_CONFIG_KBLIGHT_OFFSET, @@ -28,3 +21,10 @@ enum board_usb_a1_retimer board_get_usb_a1_retimer(void) { return USB_A1_RETIMER_PS8811; }; + +bool board_has_privacy_panel(void) +{ + return (get_fw_config_field(FW_CONFIG_KEYBOARD_OFFSET, + FW_CONFIG_KEYBOARD_WIDTH) == + FW_CONFIG_KEYBOARD_PRIVACY_YES); +} diff --git a/board/nipperkin/board_fw_config.h b/board/nipperkin/board_fw_config.h index 1dbb510965..77306ccb6f 100644 --- a/board/nipperkin/board_fw_config.h +++ b/board/nipperkin/board_fw_config.h @@ -3,35 +3,33 @@ * found in the LICENSE file. */ -#ifndef _GUYBRUSH_BOARD_FW_CONFIG__H_ -#define _GUYBRUSH_BOARD_FW_CONFIG__H_ +#ifndef _NIPPERKIN_BOARD_FW_CONFIG__H_ +#define _NIPPERKIN_BOARD_FW_CONFIG__H_ /**************************************************************************** - * Guybrush CBI FW Configuration + * Nipperkin CBI FW Configuration */ /* - * USB Daughter Board (2 bits) + * Keyboard Backlight (1 bit) */ -#define FW_CONFIG_USB_DB_OFFSET 0 -#define FW_CONFIG_USB_DB_WIDTH 2 -#define FW_CONFIG_USB_DB_A1_PS8811_C1_PS8818 0 +#define FW_CONFIG_KBLIGHT_OFFSET 0 +#define FW_CONFIG_KBLIGHT_WIDTH 1 +#define FW_CONFIG_KBLIGHT_NO 0 +#define FW_CONFIG_KBLIGHT_YES 1 /* - * Form Factor (1 bits) + * Bit 1 ~ 6 not related to EC function */ -#define FW_CONFIG_FORM_FACTOR_OFFSET 2 -#define FW_CONFIG_FORM_FACTOR_WIDTH 1 -#define FW_CONFIG_FORM_FACTOR_CLAMSHELL 0 -#define FW_CONFIG_FORM_FACTOR_CONVERTIBLE 1 /* - * Keyboard Backlight (1 bit) + * Keyboard (1 bit) */ -#define FW_CONFIG_KBLIGHT_OFFSET 3 -#define FW_CONFIG_KBLIGHT_WIDTH 1 -#define FW_CONFIG_KBLIGHT_NO 0 -#define FW_CONFIG_KBLIGHT_YES 1 +#define FW_CONFIG_KEYBOARD_OFFSET 7 +#define FW_CONFIG_KEYBOARD_WIDTH 1 +#define FW_CONFIG_KEYBOARD_PRIVACY_YES 0 +#define FW_CONFIG_KEYBOARD_PRIVACY_NO 1 +bool board_has_privacy_panel(void); -#endif /* _GUYBRUSH_CBI_FW_CONFIG__H_ */ +#endif /* _NIPPERKIN_BOARD_FW_CONFIG__H_ */ |