summaryrefslogtreecommitdiff
path: root/board/dewatt/board_fw_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/dewatt/board_fw_config.c')
-rw-r--r--board/dewatt/board_fw_config.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/board/dewatt/board_fw_config.c b/board/dewatt/board_fw_config.c
index c919d82851..e6dbcadb92 100644
--- a/board/dewatt/board_fw_config.c
+++ b/board/dewatt/board_fw_config.c
@@ -8,9 +8,7 @@
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);
+ return 1;
}
bool board_has_kblight(void)
@@ -21,22 +19,10 @@ bool board_has_kblight(void)
enum board_usb_c1_mux board_get_usb_c1_mux(void)
{
- int usb_db = get_fw_config_field(FW_CONFIG_USB_DB_OFFSET,
- FW_CONFIG_USB_DB_WIDTH);
- if (usb_db == FW_CONFIG_USB_DB_A1_PS8811_C1_PS8818)
- return USB_C1_MUX_PS8818;
- if (usb_db == FW_CONFIG_USB_DB_A1_ANX7491_C1_ANX7451)
- return USB_C1_MUX_ANX7451;
- return USB_C1_MUX_UNKNOWN;
+ return USB_C1_MUX_PS8818;
};
enum board_usb_a1_retimer board_get_usb_a1_retimer(void)
{
- int usb_db = get_fw_config_field(FW_CONFIG_USB_DB_OFFSET,
- FW_CONFIG_USB_DB_WIDTH);
- if (usb_db == FW_CONFIG_USB_DB_A1_PS8811_C1_PS8818)
- return USB_A1_RETIMER_PS8811;
- if (usb_db == FW_CONFIG_USB_DB_A1_ANX7491_C1_ANX7451)
- return USB_A1_RETIMER_ANX7491;
return USB_A1_RETIMER_UNKNOWN;
};