diff options
-rw-r--r-- | baseboard/zork/cbi_ec_fw_config.c | 9 | ||||
-rw-r--r-- | baseboard/zork/cbi_ec_fw_config.h | 16 |
2 files changed, 25 insertions, 0 deletions
diff --git a/baseboard/zork/cbi_ec_fw_config.c b/baseboard/zork/cbi_ec_fw_config.c index d8101855f7..0eebc188f4 100644 --- a/baseboard/zork/cbi_ec_fw_config.c +++ b/baseboard/zork/cbi_ec_fw_config.c @@ -78,3 +78,12 @@ enum ec_cfg_lid_angle_tablet_mode_type ec_config_has_lid_angle_tablet_mode( return ((get_cbi_fw_config() & EC_CFG_LID_ANGLE_TABLET_MODE_MASK) >> EC_CFG_LID_ANGLE_TABLET_MODE_L); } + +/* + * ec_config_lte_present() will return 1 if present else 0. + */ +enum ec_cfg_lte_present_type ec_config_lte_present(void) +{ + return ((get_cbi_fw_config() & EC_CFG_LTE_PRESENT_MASK) + >> EC_CFG_LTE_PRESENT_L); +} diff --git a/baseboard/zork/cbi_ec_fw_config.h b/baseboard/zork/cbi_ec_fw_config.h index 90940b1019..38c4c2bda2 100644 --- a/baseboard/zork/cbi_ec_fw_config.h +++ b/baseboard/zork/cbi_ec_fw_config.h @@ -98,6 +98,21 @@ enum ec_cfg_lid_angle_tablet_mode_type { GENMASK(EC_CFG_LID_ANGLE_TABLET_MODE_H,\ EC_CFG_LID_ANGLE_TABLET_MODE_L) +/* + * LTE Modem Present (1 bit) + * + * ec_config_lte_present() will return 1 if present else 0. + */ +enum ec_cfg_lte_present_type { + LTE_NONE = 0, + LTE_PRESENT = 1, +}; +#define EC_CFG_LTE_PRESENT_L 29 +#define EC_CFG_LTE_PRESENT_H 29 +#define EC_CFG_LTE_PRESENT_MASK \ + GENMASK(EC_CFG_LTE_PRESENT_H,\ + EC_CFG_LTE_PRESENT_L) + uint32_t get_cbi_fw_config(void); enum ec_cfg_usb_db_type ec_config_get_usb_db(void); @@ -108,5 +123,6 @@ enum ec_cfg_pwm_keyboard_backlight_type ec_config_has_pwm_keyboard_backlight( void); enum ec_cfg_lid_angle_tablet_mode_type ec_config_has_lid_angle_tablet_mode( void); +enum ec_cfg_lte_present_type ec_config_lte_present(void); #endif /* _ZORK_CBI_EC_FW_CONFIG__H_ */ |